
Xcode detects if a signing certificate is missing or invalid in your keychain when the corresponding certificate is in your developer account. This can happen if you accidentally remove the signing certificate or its private key from your keychain.
Important: Re-creating your development or distribution certificates doesn’t affect apps that you’ve submitted to the App Store nor does it affect your ability to update them.
You can import developer accounts from a backup.
You can email the creator of the signing certificate and install it on your Mac.
In the project editor with the target selected, click Signing & Capabilities, and click the Settings disclosure triangle.
A warning appears if the certificate for your Mac is in your developer account but the signing certificate is not in your keychain. This may occur if you created the certificate on another Mac you use for development.
Click Revoke.
Xcode re-creates the development certificate and updates the Xcode-managed provisioning profile.
If you don’t use automatic signing, sign in to your developer account and regenerate related provisioning profiles.
Use Accounts preferences to reset the signing certificate.