App is signed and notarized, but still produces the 'The application "***.app" can't be opened.' error in Catalina

I've built my app, signed it with my Developer ID, and had it was successfully notarized. However, when I attempt to launch the app in macOS 10.15.7, I get the 'The application "***.app" can't be opened.' error message.

I ran all the usual checks to make sure the app is signed and notarized properly:

Code Block
% codesign --verbose --verify *.app
XXX.app: valid on disk
XXX.app: satisfies its Designated Requirement
% xcrun stapler validate *.app
Processing: /path/to/*.app
The validate action worked!
% spctl --assess --verbose *.app
XXX.app: accepted
source=Notarized Developer ID

Can someone help me figure out what I am **** wrong here.

Here are the commands which I have executed:

Code Block
Code Signing:
codesign --sign "Developer ID Application: *" --timestamp --options runtime --verbose=4 --strict ./*.app
Create Zip File to send to Apple:
/usr/bin/ditto -ck -rsrc --sequesterRsrc --keepParent ./*.app ./*.zip
Notorize Zip File:
xcrun altool --notarize-app --primary-bundle-id "bundle-id" --username myusername --password mypassword --file ./*.zip
Staple to App File.
xcrun stapler staple ./*.app

Gatekeeper rejections like this are tricky to debug. You can find some hints in this thread. If that doesn’t turn up anything useful, my advice is that you open a DTS tech support incident and I’ll dig into your specific case.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
App is signed and notarized, but still produces the 'The application "***.app" can't be opened.' error in Catalina
 
 
Q