I work on an open source weather app for macOS. I would like to sign it for distribution. I used to do this with a shell script using xcodebuild, codesign and altool using this process: https://scriptingosx.com/2019/09/notarize-a-command-line-tool
Obviously I now need to convert to use notarytool.
I use the following steps:
xcrun notarytool store-credentials
xcodebuild -with -authenticationKeyID and -allowProvisioningUpdates
xcrun codesign -s "$dev_teamid" --entitlements
codesign -dv --verbose=4
/usr/bin/ditto -c -k --keepParent
xcrun notarytool submit --wait --keychain-profile
xcrun notarytool log
xcrun stapler staple
I ran with the credentials for Developer ID Application: (not Apple Development Certificate)
All steps seem to run fine.
The notarytool log shows: "statusSummary": "Ready for distribution”
Yet when I try to run I get the message The application can’t be opened.
When I click on the ? in the upper right corner, I get an empty window that pops up.
Combing through the Console, these two messages jump out:
Checking profile: Mac Team Provisioning Profile: com.heat.Meteorologist
com.heat.Meteorologist: Unsatisfied entitlements: com.apple.developer.weatherkit
What step have I missed?
Thank you.