I'm trying to notarize a plug-in for Autodesk Maya (project type: Mach-O Bundle).
Over the past few years I was able to successfully notarize my plug-ins via command line scripts. I usually build the bundles outside XCode with a scripted process which then also automates the notarization procedure. This has been a solid and working workflow.
Since yesterday, October 23rd 2023 the prior working 'altool' is now refused because of the new notarization process which starts November 1st, 2023!!!
While trying to follow the new procedure outlined here: https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow
I performed the following steps:
- Create a ZIP archive suitable for notarization.
/usr/bin/ditto -c -k --keepParent "$APP_PATH" "$ZIP_PATH"
- Upload for notarization.
xcrun notarytool submit $ZIP_PATH --keychain-profile "Notarization" --wait
The result is:
$ xcodebuild[2514:78653] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
$ xcodebuild[2514:78653] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Conducting pre-submission checks for myPlugin.bundle.zip and initiating connection to the Apple notary service...
Submission ID received
id: ***-***
Successfully uploaded file
id: ***-***
path: /Users/***/myPlugin.bundle.zip
Waiting for processing to complete.
Current status: Invalid........
Processing complete
id: ***-***
status: Invalid
My current assumption is that it's necessay to archive the bundle in XCode first as mentioned in the documentation:
"To prepare an app for notarization, you must export the app from Xcode."
But when I try to export the bundle after archiving I am not presented with the necessary options. The Organizer only gives me the button to Distribute Content which leads to another window allowing me to select either Build Products (which only exports the archive's built products) or Archive (which only creates a copy). Unfortunately neither then contains the necessary ExportOptions.plist, which is required as by the documentation.
I would very much appreciate of someone could shed some light on what's necessary to perform a successful notarization. Thank you.
My current assumption is that it's necessay to archive the bundle in Xcode first
No. The doc is misleading here. It should say “To prepare an app that’s built using an Xcode project for notarisation”. That comment doesn’t apply to apps, or other code, built outside of Xcode.
For advice for how to sign and package code outside of Xcode, see:
I’m not sure why the notary service doesn’t like your current product. I recommend that you fetch the notary log and see what it’s complaining about. See Fetching the Notary Log.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"