Make sure the checkbox is ticked under Automatically manage signing which you will find in the Signing and Capabilities section. See if the Deployment Target and Xcode version match. You can go to the "Show the report navigator and see the signing update has been finished.
Topic:
Code Signing
SubTopic:
Certificates, Identifiers & Profiles
Tags: