No accounts with App Store Connect access - unable to authenticate with app store connect

Suddenly today I'm getting this error when I click "Distribute App" in Xcode 12.5:

No App Store Connect account:

No accounts with App Store Connect access have been found for the team "XXXXXXXXXXXX". App Store Connect access is required for App Store Connect distribution.

Then it lists my several accounts below, and next to each, under "Issue", it says "Unable to authenticate with App Store Connect".

I can login to AppStoreConnect via the website, with no issues, and my account is the account owner.

There are no updated terms or developer agreements etc to accept and no banking or tax info to update.

I tried deleting the account from Xcode and re-adding it. It adds without trouble, but then fails at this point.

Ideas?

Replies

Closing and Restarting Xcode solved it for me - and many others - see https://developer.apple.com/forums/thread/133759 .