Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code signing error in macOS Sierra #51

Open
eugenesvk opened this issue Sep 3, 2016 · 4 comments
Open

Code signing error in macOS Sierra #51

eugenesvk opened this issue Sep 3, 2016 · 4 comments

Comments

@eugenesvk
Copy link

In macOS Sierra 10.12 Beta (16A312a) when I encounter an error in a console which used to be just colored wonderfully in red by your library, I instead get the following error:

dyld: warning: could not load inserted library '/usr/local/lib/stderred/libstderred.dylib' into library validated process because no suitable image found.  Did find:
        /usr/local/lib/stderred/libstderred.dylib: code signing blocked mmap() of '/usr/local/lib/stderred/libstderred.dylib'

Any idea how to fix this and make the library work again? Thank you

@cehoffman
Copy link
Collaborator

I'm currently running on Sierra and have not changed my install using DYLD_INSERT_LIBRARIES. You can check the way I set it up in my shell configuration files

@eugenesvk
Copy link
Author

I've tried this again hoping for a magical auto-fix :), but the issue is still there. After some googling I've downloaded that 9G abomination that is XCode to create a developer code signing certificate to sign the three created libraries (libpolyfill.dylib, libstderred.dylib, and libtest_stderred.dylib) with sudo codesign --force --deep --sign "Mac Developer" -o library /path/to/dylib (I've tried different options, with/without --force, with/without -o or --deep etc), but all I'm just getting is a slightly modified error
(by the way, the library IS working for regular output, but for some commands like git status it gives out these errors, so it's really unusable)

dyld: warning: could not load inserted library '/usr/local/lib/stderred/libstderred.dylib' into library validated process because no suitable image found. Did find:
/usr/local/lib/stderred/libstderred.dylib: code signature in >
(/usr/local/lib/stderred/libstderred.dylib) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not

Any idea on how to fix this code signing issue?

@jmcollin78
Copy link

Hi @eugenesvk , i'm currently running in the same kind of trouble. Did you finally find a solution ?

@eugenesvk
Copy link
Author

@jmcollin78 no :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants