Skip to main content
A provisioning profile lists the exact certificates allowed to sign with it. Xcode shows this error when the identity it picked from the keychain isn’t on that list. The certificate may be valid. It’s just not one this profile was made for.

Common causes

  • The profile was created before you made a new certificate (after a revoke, an expiry or a new machine), so it still lists only the old one.
  • CI imported one certificate but installed a profile that was made for another person’s or another machine’s development certificate.
  • The build picked the wrong identity type, such as an Apple Development identity with an App Store profile.
  • Several copies of the same profile exist on the machine, and Xcode used an older one.

See what the profile expects

On a Mac, decode the profile and list the certificates inside it:
Then list the identities the keychain can actually sign with:
The certificate subject from the profile must match one of those identities, including the team ID.

Fix it

  1. In your Apple developer account, open the profile under Profiles and edit it so it includes the certificate you sign with. Save, then download it again. Editing creates a new copy, and the old file on your machine stays stale.
  2. Remove old copies of the profile from the machine so only the new one is used.
  3. Make sure the build asks for the matching identity type: Apple Distribution for App Store and TestFlight profiles, and Apple Development for development profiles.

In CI

Keep the certificate and the profile together as a pair in your secrets. When you change one, regenerate and store the other in the same step. Install only that profile on the runner, and set the profile name or UUID explicitly when you sign manually, so the runner can’t pick up something else. If the error started right after a “maximum number of certificates” cleanup, the profile still points at a certificate you revoked. See Maximum number of certificates generated.

Where box fits

box keeps no certificates or profiles. box build --device-build returns an unsigned Release build for you to sign with your own pair. box exec runs your own archive or signing script on the Mac with files from your project folder, and returns what it writes to $BOX_OUT. See Build and Exec. Related: Upload an IPA without Xcode, Ship an iOS app from Linux, Xcode build not found. Start with $10 of credit, good for 1 year.