hi, When I try to run myApp, one of the dynamic libraries fails to load,and app exit, because it was blocked by code signing.myApp has been signed and notarized,and both valid. Here is the message I get:
apple@appledeiMac ~ % /Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/mCloud ; exit;
dyld: Library not loaded: @executable_path/../Frameworks/libbase.1.dylib
Referenced from: /Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/mCloud
Reason: no suitable image found. Did find:
/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib: code signing blocked mmap() of '/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib'
/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib: stat() failed with errno=1
/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib: code signing blocked mmap() of '/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib'
/Users/apple/Desktop/workspace/code/myApp.app/Contents/MacOS/../Frameworks/libbase.1.dylib: stat() failed with errno=1
file system relative paths not allowed in hardened programs
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.
I'm using Qt5.14.2 ,macOs 10.15.7,xcode 11.5.
Thanks,
Ulyssess