[macOS] altool Error: You must first sign the relevant contracts online. (1048)

My environment:
Code Block
Mac mini (2018)
macOS 10.15.4 Beta (19E224g)
Xcode Version 11.3 (11C29)


The macOS app notarization process worked fine for me until some days ago.

When I run xcrun altool to notarize a dmg file using the following command:

Code Block
xcrun altool --notarize-app -u $USERNAME -p $PASSWORD --asc-provider $PROVIDER_SHORT_NAME -f $FILENAME --primary-bundle-id $BUNDLE_ID


I got the following error:
Code Block
...
Package Summary:
1 package(s) were not uploaded because they had problems:
/var/folders/qk/1x13c56s7cz36269tzb_6rwh0000gn/T/9B358F94-90F2-40C1-88AF-75C29435773E/$BUNDLE_ID.itmsp - Error Messages:
You must first sign the relevant contracts online. (1048)
2020-07-13 11:57:10.013 altool[3978:497169] *** Error: You must first sign the relevant contracts online. (1048)


I've checked
https://developer.apple.com/forums/thread/117351
https://developer.apple.com/forums/thread/116570

As eskimo pointed out:
https://developer.apple.com/forums/thread/116570?answerId=373566022#373566022

Contracts (A) — This is the ‘obvious’ cause of this problem, one that I discussed above in point 1 of my 1 Jun post, above.

I've checked Apple Developer Account -> Membership -> Agreements:

Code Block
Agreements (2)
Apple Developer Program License Agreement
Issued June 22, 2020
Accepted July 10, 2020
Apple Developer Agreement
Issued June 07, 2015
Accepted July 10, 2017


So, it's not the case A

Multiple teams and Xcode (B) — If you’re submitting via Xcode, be aware that there is currently a bug whereby, if you’re a member of multiple teams, it selects the ‘wrong’ team and trigger this problem (r. 52206810).

I already specified the right team provider name(--asc-provider $PROVIDER_SHORT_NAME) when notarizing, and I only joined one team, so it's not the case B.

Enterprise teams (C) — There’s an ongoing problem that causes this error for In-House (Enterprise) teams.

Definitely the the case C, I'm in a regular Apple Developer Program team.



Solutions found on the internet isn't work out for me thus far, do anyone have a clue?
See Error 1048 When Notarising.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Hi, @eskimo. After I followed your link.

Retest With a Small Test App

I used a test app for notarization test, like what your said, This is unlikely to fix the problem, but it confirms that there’s an issue with your account, not your product.
There's certainly something wrong with my account.

Double Check Your Agreements

After we open App Store Connect > Agreements, Tax, and Banking, we found we had only the Paid Apps agreement inactive.
We success to notarize our apps after we agreed to the Paid Apps agreement(Active status).

Thus the statement Note You do not need to agree to the Paid Apps agreement to use the notary service. may wrong in such case.

There're three cases for Paid Apps agreement:
  1. Paid Apps agreement has never been agreed, thus Note You do not need to agree to the Paid Apps agreement to use the notary service.

  2. Paid Apps agreement agreed previously, and updated by Apple recently, in which case you should stick to the latest agreement for notarization service to work.

  3. Apple changed its rule, you need to agree all agreements so you can use notarization service.

I don't know which case it belongs to by now, anyway, there is an exception to the statement Note You do not need to agree to the Paid Apps agreement to use the notary service.
[macOS] altool Error: You must first sign the relevant contracts online. (1048)
 
 
Q