Profile doesn't include certificate

2019-06-24 03:31发布

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?

3条回答
淡お忘
2楼-- · 2019-06-24 04:14

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.

查看更多
神经病院院长
3楼-- · 2019-06-24 04:14

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

查看更多
手持菜刀,她持情操
4楼-- · 2019-06-24 04:25

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.

查看更多
登录 后发表回答