Notarized app created with pyinstaller will not open on different computer

I created my app on a Mac (OS 11.6.1) using Python 3.9 and the pyinstaller package. I was able to go through the notarization and stapling steps okay. Moreover, typing

spctl --assess --type execute -vvv '/Users/fishbacp/Desktop/dist/main_app.app'

resulted in /Users/fishbacp/Desktop/dist/main_app.app: accepted source=Notarized Developer ID origin=Developer ID Application: John Doe (XXXXXXXXXX)

I tried to launch the app on someone else's machine (OS 12.0.1) after unzipping it. The icon bounced around in the system tray for a few seconds before disappearing.

If it helps at all, the app runs fine on my machine, but the icon appearance changes after a few seconds from what I chose it to be to the python matplotlib icon shown below:

I created my app on a Mac (OS 11.6.1) using Python 3.9 and the pyinstaller package.

You should escalate this via the support channel for the third-party tools you’re using. That tool should produce an app that’s passes notarisation and Gatekeeper. If it doesn’t, I’m happy to help the tools vendor investigate what’s gone wrong (either here on DevForums or, better yet, as part of a DTS tech support incident).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

What entitlements are you using? Pyinstaller requires com.apple.security.cs.allow-unsigned-executable-memory.

Save this to the file entitlements.plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>com.apple.security.app-sandbox</key><true/>
        <key>com.apple.security.cs.allow-unsigned-executable-memory</key><true/>
    </dict>
</plist>

Pass this file to pyinstaller with the --osx-entitlements-file entitlements.plist option.

Pass the same file to the codesign utility with the --entitlements entitlements.plist option.

Notarized app created with pyinstaller will not open on different computer
 
 
Q