For me, restarting Xcode and my Mac didn't work.
For some reason, I had been signed out of Xcode. I clicked Manage Accounts, then signed in with my Apple ID and it worked
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: