If a signing certificate or private key is missing

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.

If the problem is with a distribution certificate

If the problem is with a development certificate

  1. 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.

  2. 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.

If the problem is with a missing private key

See alsoIf an intermediate certificate authority is missingIf a code signing error occursIf a build has an entitlement error