Codesign error crash when launching notarized app

I have filed a DTS regarding this issue, but if there is any community members who can assist me, I would appreciate it. I am eager to get an update out of my application.


Issue: I can successfully notarize my application. I have Sparkle and several ffmpeg dylibs in my application bundle's Frameworks folder. When I notarize and distribute my app to another Catalina or Mojave system, I get a "DYLD, [0x5] Code Signature" and the crash report says the following:


Dyld Error Message:

Library not loaded: @rpath/libavcodec.dylib

Referenced from: /Applications/MyApp.app/Contents/MacOS/MyApp

Reason: no suitable image found. Did find:

/Applications/MyApp.app/Contents/MacOS/../Frameworks/libavcodec.dylib: code signature invalid for '/Applications/MyApp.app/Contents/MacOS/../Frameworks/libavcodec.dylib'


/Applications/MyApp.app/Contents/MacOS/../Frameworks/libavcodec.dylib: stat() failed with errno=1


I get no errors running when I check the code sign using 'codesign -dvv myApp.app' or when I check the app bundle using 'spctl -a -t exec -vv myApp.app'


I have read Eskimo's post on code signing and have tried to apply those recommendations without any luck. Also, is there anyway I can defeat this message on a mac OS system? I don't want to defeat the security subsystem, but is there a temporary recommendation until I can solve this?

Replies

I have read Eskimo's post on code signing


Which one? There are dozens. They all say the same thing.


First question, is this dylib, in fact, signed?

I have filed a DTS regarding this issue

I’ll be helping Kolya via that incident.

Share and Enjoy

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

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