Ok, thanks for that.
I set up a clean Sonoma 14.4.1 VM, downloaded the DMG from our local build server, installed it and I'm getting the "app can't be opened because the developer cannot be verified"
I verified both the app and the DMG using the commands from the Testing a Notarized Product link you provided.
spctl -a -t exec -vvv /Applications/MyApp.app
/Applications/MyApp.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: ***
spctl -a -t open -vvv --context context:primary-signature ~/Downloads/MyApp.dmg
/Users/flo/Downloads/MyApp.dmg: accepted
source=Notarized Developer ID
origin=Developer ID Application: ***
I found one of your other posts where you wrote about the new syspolicy_check
.
I tried that and I am indeed getting an error:
syspolicy_check distribution MyApp.app
App has failed one or more pre-distribution checks.
---------------------------------------------------------------
Bad Load Command
File: MyApp.app/Contents/MacOS/../Frameworks/libavcodec.dylib
Severity: Fatal
Full Error: /Users/flo/Downloads/MyApp.app/Contents/MacOS/../Frameworks/libavcodec.dylib attempts to
load
/Users/flo/.conan/data/openssl/3.1.3/_/_/package/869f360e5d846618772ce5abc649684a86565498/lib/libswresample.dylib.
Resolved load path: (path not found)
Type: Notary Error
---------------------------------------------------------------
This is a very odd one. The path mentioned is indeed not present on the machine I'm running the app on. But when I run otool, I don't see this path.
otool -L /Users/flo/Downloads/MyApp.app/Contents/Frameworks/libavcodec.dylib
/Users/flo/Downloads/MyApp.app/Contents/Frameworks/libavcodec.dylib (architecture x86_64):
@rpath/libavcodec.dylib (compatibility version 59.0.0, current version 59.37.100)
@rpath/libswresample.dylib (compatibility version 4.0.0, current version 4.7.100)
@rpath/libavutil.dylib (compatibility version 57.0.0, current version 57.28.100)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 902.1.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1000.0.0)
@rpath/libz.dylib (compatibility version 1.0.0, current version 1.3.0)
/System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1069.24.0)
/Users/flo/Downloads/MyApp.app/Contents/Frameworks/libavcodec.dylib (architecture arm64):
@rpath/libavcodec.dylib (compatibility version 59.0.0, current version 59.37.100)
@rpath/libswresample.dylib (compatibility version 4.0.0, current version 4.7.100)
@rpath/libavutil.dylib (compatibility version 57.0.0, current version 57.28.100)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 1500.65.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)
/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox (compatibility version 1.0.0, current version 1000.0.0)
@rpath/libz.dylib (compatibility version 1.0.0, current version 1.3.0)
/System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1971.0.0)
/System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia (compatibility version 1.0.0, current version 1.0.0)
/System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo (compatibility version 1.2.0, current version 1.5.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 1228.0.0)
Can you help me understand the issue better?
Thank you very much!