Reputation: 11753
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
Reputation: 678
Method working in 2024, Xcode 15. (You must have "Automatically manage signing" disabled.)
Upvotes: 0
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
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
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