Problem notarizing .dmg file with macOS app bundle: "The staple and validate action failed! Error 65"

We were signing and notarizing our dmg files (containing an universal app bundle) just fine until it failed this same month, from our xcrun notarytool history:

    --------------------------------------------------
    createdDate: 2023-02-03T14:01:28.116Z
    id: ....
    name: FILE.dmg
    status: Invalid
    --------------------------------------------------
    createdDate: 2022-12-12T22:20:17.885Z
    id: ...
    name: FILE.dmg
    status: Accepted
    --------------------------------------------------
...

Today we're trying to notarize a dmg and we continue with this error:

When calling xcrun notarytool submit --wait:

Submission ID received
  id: 3c6xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Upload progress: 100,00 % (18,2 MB of 18,2 MB)   
Successfully uploaded file
  id: 3c6xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  path: /Users/.../FILE.dmg
Waiting for processing to complete.
Current status: Invalid..........
Processing complete
  id: 3c6xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
  status: Invalid

When using xcrun stapler staple:

CloudKit query for FILE.dmg (2/883xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) failed due to "Record not found".
Could not find base64 encoded ticket in response for 2/883xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The staple and validate action failed! Error 65.

We tried to update our "Developer ID Application" certificate but the problem is still there. Do you know if this is a temporal problem? Or why could be this happening? Why this was working until last year 2022?

Answered by DTS Engineer in 744578022

Error 65 means that stapler was unable to find a ticket to staple to your item. That’s because your notarisation request failed, as indicated by the status: Invalid result. You should fetch the notary log and find out why it failed.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

Error 65 means that stapler was unable to find a ticket to staple to your item. That’s because your notarisation request failed, as indicated by the status: Invalid result. You should fetch the notary log and find out why it failed.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Problem notarizing .dmg file with macOS app bundle: "The staple and validate action failed! Error 65"
 
 
Q