Library not loaded … code signing blocked on macos 10.15.4

Hello,



I am getting an error when running my app on macos 10.15.4

The error is:


dyld: Library not loaded: @rpath/Frameworks/libQt5Solutions_SingleApplication-head.1.dylib
    Referenced from: /Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/Myapp
    Reason: no suitable image found.  Did find:
/Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/../Frameworks/libQt5Solutions_SingleApplication-head.1.dylib: code signing blocked mmap() of '/Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/../Frameworks/libQt5Solutions_SingleApplication-head.1.dylib'
/Users/raulsanchez/Documents/workspace/Myapp.app/Contents/MacOS/../Frameworks/libQt5Solutions_SingleApplication-head.1.dylib: stat() failed with errno=1
    zsh: abort    


I have deleted and reinstalled my certificate but still same error. I don't see any error while signing the application

The command I am using for signing is:

codesign -v --force --verify --deep --sign <certificate> --timestamp --options runtime <app>



Any ideas please?



Thanks in advance

Replies

Any ideas please?


Read any one of dozens of identical posts and follow instructions.

Any ideas please?

Do not sign with

--deep
. For an explanation as to why, see
--deep
Considered Harmful.

For advice on how you should sign your app, see Signing a Mac Product For Distribution. For a specific example, see Manual Code Signing Example.

For advice on how to test this properly, see Testing a Notarised Product.

Finally, is your app using entitlements that must be whitelisted by a provisioning profile?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Finally modifying the entitlements added when signing fixed this issue