I removed and re-added the account that owned the signing certificate in the XCode -> Preferences -> Accounts menu. You can remove the account by highlighting it and then hitting the minus (-) button, and re-add it using the + button.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags: