Just got my brand new M1 Max laptop and am excited to get with the times and use notary tool
instead of altool
as recommended by the mothership but when I try to notarize the same file that altool
notarizes successfully it fails.
Here is is my sucessful altool
command:
xcrun altool --notarize-app --primary-bundle-id "My Kool Tool" --username "***@***.com" -p "@keychain:ac_notary" --asc-provider XXXXXXXXXXXX --file *.zip && rm *.zip
and this is the notary tool
command that fails on the same file:
xcrun notarytool submit *.zip --keychain-profile "XXXXXX Apple Developer" --wait && rm *.zip
Here is the output:
Conducting pre-submission checks for archive.zip and initiating connection to the Apple notary service...
Submission ID received
id: e20c0438-5576-4361-a11a-2efeb8exxxxx
Successfully uploaded file
id: e20c0438-5576-4361-a11a-2efeb8exxxxx
path: /Users/***/Documents/archive.zip
Waiting for processing to complete.
Current status: Invalid..........
Processing complete
id: e20c0438-5576-4361-a11a-2efeb8exxxxx
status: Invalid
and the log:
xcrun notarytool log e20c0438-5576-4361-a11a-2efeb8exxxxx --keychain-profile "XXXXXX Apple Developer"
{
"logFormatVersion": 1,
"jobId": "e20c0438-5576-4361-a11a-2efeb8exxxxx",
"status": "Invalid",
"statusSummary": "Archive contains critical validation errors",
"statusCode": 4000,
"archiveFilename": "archive.zip",
"uploadDate": "2021-12-07T18:57:23.193Z",
"sha256": "505d76b420d46bfd01d56c724de1c8d20121d75b0ca6cee96a51549708ec46ee",
"ticketContents": null,
"issues": [
{
"severity": "error",
"code": null,
"path": "archive.zip",
"message": "Package archive.zip has no signed executables or bundles. No tickets can be generated.",
"docUrl": null,
"architecture": null
}
]
}
again, the same file notarizes with altool
so it is properly signed
It is worth noting that if I don't include the --asc-provider
in the altool
command it fails so maybe I just need to do the same with the notary tool but
can't find any documentation on how to do that.
Help Obi Wan