notarytool is giving me HTTP status error

I am using the xcrun notarytool submit --apple-id xxxxx@gmail.com --password xxxxx--team-id xxxxxx --output-format json --wait --no-progress /my/dmg/file

to notarize my DMG file. But it always gives me back the error,

Error: HTTP status code: 403. A required agreement is missing or has expired. This request requires an in-effect agreement that has not been signed or has expired. Ensure your team has signed the necessary legal agreements and that they are not expired.

I did log in my developer account and found no place to sign any agreement. Actually in the morning when I logged in the developer account, it indeed pop up the agreement for me to sign and I did sign it. But now it seems I don't have any more agreements to sign. So, any ideas about what I should do?

Answered by DTS Engineer in 871637022

Thanks for your post.

When you encounter a 403 error indicating that a required agreement is missing or has expired during the notarization process with , it can sometimes be a bit misleading or confusing as to exactly which agreement needs attention. You said on your post you already agreed to one.

I would suggest to go to appleid.apple.com and sign in with your Apple ID. Sometimes, agreements related to the Apple Developer Program are separate from those shown in Xcode. Additionally, visit developer.apple.com, sign in, and check for any pending legal agreements that might need signing. Look through recent emails from Apple, especially those from or , for any requests to review or agree to new terms.

In Xcode, go to , sign out of your Apple ID, and then sign back in. Also, consider signing out of your Apple ID on your Mac via (or ) and signing back in. Ensure you're using the latest version of Xcode and that all command line tools are updated. Run to ensure you have the latest tools. After completing the above steps, try running your notarization command again. If you are part of multiple teams, ensure you are using the correct team ID and that your app distribution provisioning profile is active.

Is the notary tool process now functioning correctly?

Albert Pascual
  Worldwide Developer Relations.

Accepted Answer

Thanks for your post.

When you encounter a 403 error indicating that a required agreement is missing or has expired during the notarization process with , it can sometimes be a bit misleading or confusing as to exactly which agreement needs attention. You said on your post you already agreed to one.

I would suggest to go to appleid.apple.com and sign in with your Apple ID. Sometimes, agreements related to the Apple Developer Program are separate from those shown in Xcode. Additionally, visit developer.apple.com, sign in, and check for any pending legal agreements that might need signing. Look through recent emails from Apple, especially those from or , for any requests to review or agree to new terms.

In Xcode, go to , sign out of your Apple ID, and then sign back in. Also, consider signing out of your Apple ID on your Mac via (or ) and signing back in. Ensure you're using the latest version of Xcode and that all command line tools are updated. Run to ensure you have the latest tools. After completing the above steps, try running your notarization command again. If you are part of multiple teams, ensure you are using the correct team ID and that your app distribution provisioning profile is active.

Is the notary tool process now functioning correctly?

Albert Pascual
  Worldwide Developer Relations.

Thanks a lot for the answer. Magically it is working now. I am not sure which magic is doing the trick as I basically tried all the web based tricks you mentioned, i.e., logging in and out to appleid.apple.com and the developer.apple.com website. However, in fact, I was not seeing any new agreement to sign. But I remember that yesterday when doing all this, I was seeing some warning message in my developer account saying some agreement to sign. Though, there was no link for me to click to sign the agreement. So I ended up waiting for a day till this morning when I tried again. Then when I log in the developer.apple.com and I am not seeing the warning message and the notary tool is working. I guess it is probably something to do with the weird caching either with my account or my local browser, no idea. or probably just a matter of waiting a bit. Anyhow, it is working now.

I did not try anything on the xcode side, though.

Thank you!

Thanks for the post and I'm happy is working again. I think, yet I do not know, when you accepted the last agreement took sometime for the cache to be invalidated in your request to work again.

In any case, happy you are back and working!

Albert Pascual
  Worldwide Developer Relations.

notarytool is giving me HTTP status error
 
 
Q