Could it be the size of the zip?
I think that’s it. Historically there have been 32-bit limits on zip archives. These were fixed with ZIP64 but it’s possible that notarytool
didn’t get the memo.
To test this I created a 4.3 GB file full of random numbers:
% dd if=/dev/random of=random.dat bs=1024 count=4199218
I added it to my app and then resigned it.
% mv random.dat Test718887.app/Contents/Resources
% codesign -s "Developer ID Application" -f -o runtime Test718887.app
I then zipped and notarised it as above. This time around, I saw the error you’re seeing:
% notarytool-submit Test718887.zip
Conducting pre-submission checks for Test718887.zip and initiating connection to the Apple notary service...
Error: Test718887.zip must be a zip archive (.zip), flat installer package (.pkg), or UDIF disk image (.dmg)
Note notarytool-submit
is an alias that expands to xcrun notarytool submit CREDENTIALS
.
That seems kinda wonky to me and I recommend that you file a bug about it. Please post your bug number, just for the record.
As to a workaround, that depends on the final distribution plan for you app. Do you intend to distribute it to your users as a zip archive? Or perhaps on a disk image?
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"