Check if your account is active (Command + ,) - Select Accounts - Check your account status
Make sure everything is ok in your "Code Signing" in Build Settings
If everything is ok, and still have the problem, restart Xcode
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: