Apple notarization : it sucks
Par zogzog, mercredi 17 avril 2019 à 19:18 :: Dev
I've been trying to notarize my Fart3000.app the whole afternoon... I was following these directions: hardened-runtime-and-app-notarization . Everything seemed to work ,
xcrun altool --notarization-info blahblah
was displaying
Status: success Status Message: Package Approved
At first I was happy , until I tried to staple it:
xcrun stapler staple -v Fart3000.app
CloudKit query for Fart3000.app (2/1cff807b7db46318f4c15d93199fc6b3bf454edb) failed due to "record not found". Could not find base64 encoded ticket in response for 2/1cff807b7db46318f4c15d93199fc6b3bf454edb The staple and validate action failed! Error 65.
Strange isn't it ? The app is a fat binary with i386 and x86_64 arch. It turned out that if I build only the 64-bit file, then the stapling succeeds...
I don't reality need to built 32-bit versions of the App, so not a big sacrifice, but still it does not smell good, one tools says package approved and the other fails with a stupid and wrong message.
As a bonus, "altool" is a java application so it takes ages to start...