Michel
Michel

Reputation: 11753

Profile doesn't include certificate

Using Xcode 9.1, after building an iOS app, I try to archive it. But I get the following error message:

Provisioning profile "MyAppProfile" doesn't include signing certificate "iPhone Developer: My Name (X1YZ2AB3CD)".

What is the simplest way to solve this?

Upvotes: 4

Views: 8451

Answers (4)

Juanma
Juanma

Reputation: 678

Method working in 2024, Xcode 15. (You must have "Automatically manage signing" disabled.)

  1. Log in and go to https://developer.apple.com/account/
  2. Locate "Certificates, Identifiers & Profiles."
  3. Select "Profiles."
  4. Select the provisioning profile you are using and click to open it.
  5. Select the "Edit" button on the "Generate a Provisioning Profile" page.
  6. At the bottom, you can see the list of certificates.
  7. Select the developer account that is linked with your Xcode which is causing the problem.
  8. After that, you can see the list of devices.
  9. Select the iPhone device that you want to use with this provisioning profile.
  10. Click "save".
  11. Download the new provisioning profile and double-click on it to save it in your Xcode or import it manually.
  12. Now check your Xcode; your new provisioning profile will appear.
  13. Select it, and that's it!

Upvotes: 0

Neeraj Sonaro
Neeraj Sonaro

Reputation: 346

Open key chain in your mac and check your development certificate...I think your certificate is expired using which you have created your Provisioning profile..thats why it is showing "MyAppProfile" doesn't include signing certificate.

1.To solve this issue go to your developer account and download the latest development certificate and add it to keychain and remove all expired certificates from keychain.

                                Or

2.This issue also comes when you have multiple developer accounts in your keychain and the expired developer certificate name is same as that of active developer certificate. After removing the expired certificates, you must restart Xcode to let it reload the remaining certificates.

Upvotes: 2

AmirZ
AmirZ

Reputation: 401

I have just encountered the same problem. What fixed it for me is to go to the xcodeproj file>Select the correct build target>Build settings>Code signing identity>select the correct identity for the build configuration (If you didn't change it in the edit scheme screen, it would be "Release" for archiving).

Upvotes: 0

jegadeesh
jegadeesh

Reputation: 945

Try enabling automatic signing. It will take care these things mostly. The reason for this error is you may have chosen a developer certificate(which the provisioning profile doesn't intended to use with) for distributing/release build.

Upvotes: 1

Related Questions