I just tried to modify a script I’ve been editing/signing for months and got an error from Script Debugger when I tried to save it.
Code signing failed.
/Users/nicholas/Library/Scripts/script name.app: replacing existing signature
/Users/nicholas/Library/Scripts/script name.app: bundle format is ambiguous (could be app or framework)
In subcomponent: /Users/nicholas/Library/Scripts/script name.app/Contents/Frameworks/Sparkle.framework
Thankfully, I was able to use SD Notary to both sign and notarize the script.
15:03:10.765: Checking if Apple ID, key for app-specific password in login keychain, and team provider are in sync... 15:03:12.197: Creating working copy... 15:03:12.365: Clearing extended attributes... 15:03:12.919: Examining contents... 15:03:13.889: Signing '.../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app/Contents/MacOS/fileop'... 15:03:14.401: Signing '.../Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app'... 15:03:14.813: Signing '.../Contents/Frameworks/Sparkle.framework/Versions/A'... 15:03:15.195: Signing '.../Contents/Frameworks/Sparkle.framework/Resources/Autoupdate.app/Contents/MacOS/fileop'... 15:03:15.534: Signing '.../Contents/Frameworks/Sparkle.framework/Resources/Autoupdate.app'... 15:03:15.887: Signing '.../Contents/Script Debugger.plist'... 15:03:16.225: Signing main file '~/Library/Scripts/<script name> - Working/<script name>.app'... 15:03:16.593: Making zip archive... 15:03:17.245: Uploading file to Apple for notarizing. This can take a while, depending on file size, upload speed, and any other uploads in progress. Do not interrupt this process... 15:04:02.643: Upload result: No errors uploading '/Users/nicholas/Library/Scripts/<script name> - Working/<script name>.zip'. 15:04:02.646: Checking for the result of Apple's process. This usually takes several minutes, but could take even longer... 15:04:33.866: Awaiting result from Apple... 15:05:06.607: Awaiting result from Apple... 15:05:41.610: Awaiting result from Apple... 15:06:19.382: Awaiting result from Apple... 15:06:51.506: Awaiting result from Apple... 15:07:23.339: The submission has been notarized and will now be stapled... 15:07:24.175: Checking result with spctl... 15:07:24.553: Stapling succeeded.
Any idea what SD is doing differently from SD Notary? I don’t actually have Sparkle support so I’d be happy just to get rid of it but I can’t see a way to opt out.