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 · 2 comments

Comments

Projects
None yet
2 participants
@eugenesvk

eugenesvk commented Sep 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@cehoffman

cehoffman Jan 20, 2017

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

Collaborator

cehoffman commented Jan 20, 2017

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

This comment has been minimized.

Show comment
Hide comment
@eugenesvk

eugenesvk Sep 4, 2017

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?

eugenesvk commented Sep 4, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment