Home/Troubleshooting/Xcode: No signing certificate found, or provisioning profile doesn't include signing certificate

Xcode: No signing certificate found, or provisioning profile doesn't include signing certificate

Updated · airankrush

Symptom

When archiving or building, Xcode reports No signing certificate found or Provisioning profile doesn't include signing certificate, or a command-line build says no valid signing identity was found. The same project signs fine on your original computer.

Possible causes (most common first)

  1. The certificate was created on another computer and its private key stayed in that computer's keychain. This Mac has the certificate but not the private key, so it cannot sign with it.
  2. No Apple Account has been added in Xcode yet, or the project has the wrong Team selected.
  3. With manual signing, the provisioning profile was generated with a different certificate, or the certificate has expired or been revoked.
  4. The login keychain is locked, so an unattended command-line build cannot read the private key.

Troubleshooting steps (easiest first)

  1. See what this machine actually has

    Run security find-identity -v -p codesigning in Terminal. It lists only identities that have both certificate and private key and can be used for signing. If the result is 0, or the one you need is missing, the problem is here and not in the project settings.

  2. Add your account in Xcode and pick the right Team

    Add your Apple Account under Xcode → Settings → Accounts, then choose the correct Team in the project's Signing & Capabilities. For personal or small-team projects, turn on automatic signing management and let Xcode request certificates and provisioning profiles itself. That removes most mismatch problems.

  3. Missing private key: create a new certificate or export from the original computer

    In Accounts, select the team and click Manage Certificates. The plus button in the bottom-left corner creates a new signing certificate on this machine, with the private key stored straight into the local keychain. To keep using an existing distribution certificate, open the same screen on the original computer, right-click the certificate and choose export. You get a password-protected .p12 file; transfer it to the remote Mac and double-click it to import it into the login keychain. Steps are in the Apple developer documentation. Apple warns there that anyone holding this file and its password can sign in your name, so send the file and the password separately.

  4. Provisioning profile mismatch: regenerate it

    With manual signing, edit the provisioning profile in the Apple Developer portal, tick the certificate you are using now, download it again and select it in Xcode. See Apple's account help. Clean the build once after the change, then archive.

  5. Command-line builds: nobody is there to click the keychain prompt

    The first time a private key is used for signing, macOS asks whether to allow access to the keychain. Build once by hand through the remote desktop, enter this Mac's login password in the prompt and choose Always Allow. After that, automated builds no longer stop there waiting for a person.

When to contact support directly

Signing is between your Apple Developer account and your project; we cannot handle certificate or provisioning profile problems for you. Only system-level faults need us: the keychain will not open or keeps rejecting the login password, or Xcode cannot reach Apple's developer services while the browser works. Contact support on Contact support with your machine ID, macOS and Xcode versions, and a screenshot of the error with account details hidden. Do not send .p12 files, certificate passwords or account passwords.

FAQ

I imported my distribution certificate into the rented machine. What should I do when the rental ends?

Before the rental ends, delete the imported certificate and private key in Keychain Access and remove the account under Accounts in Xcode. The machine is fully erased after it is reclaimed, but clearing it yourself first is the safer habit. If you are still worried, revoke and reissue the certificate in the developer portal afterwards.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All troubleshooting pages