Hi,
Unless I add the com.apple.security.cs.disable-library-validation entitlement, my application won't run with the hardened runtime. When I try to run it, one of the dynamic libraries fails to load, because it was blocked by code signing. Here is the message I get:
dyld: Library not loaded: @executable_path/../Frameworks/libsndfile.1.dylib
Referenced from: /***/./TwistedWave.app/Contents/MacOS/TwistedWave
Reason: no suitable image found. Did find:
/***/./TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib: code signing blocked mmap() of '/***/./TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib'
/***/./TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib: stat() failed with errno=1
/***/TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib: code signing blocked mmap() of '/***/TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib'
/***/TwistedWave.app/Contents/MacOS/../Frameworks/libsndfile.1.dylib: stat() failed with errno=1
The application is signed, and I have verified that this particular library was signed:
$ codesign -v -v TwistedWave.app/Contents/Frameworks/libsndfile.1.dylib
TwistedWave.app/Contents/Frameworks/libsndfile.1.dylib: valid on disk
TwistedWave.app/Contents/Frameworks/libsndfile.1.dylib: satisfies its Designated Requirement
What is happening, and what should I do about it?
I was able to get the application notarized with the com.apple.security.cs.disable-library-validation entitlement.
Thanks,
Thomas