2 iOS developer certificates with the same name

We have a little problem here, and I hope you guys can help me!

Situation: We are enrolled in the Apple Developer Program (to distribute applications on the App Store). Starting last week, we are also participating in the Enterprise Program (for internal distribution of applications).

Problem: We started to develop and create applications. But we did not know that we needed to use two different developer certificates for different Programs. Now we have 2 certificates with the same name, and Xcode issues an error message every time we want to create an application that says: "the certificate cannot be assigned exactly."

Question: How to change the name of one of the developer certificates?

Thanks so much for your help in advance.

+8
ios iphone enterprise iphone-developer-program
source share
2 answers

You already have a key entry keyring by default. Thus, you can add one certificate to the keychain for entry. And then create a new saperate keychain file with a different name and add a second certificate to this keychain. Now, in the Xcode target configuration, find the keyring certificate path that will be used for the target and select the appropriate keychain path.

eg. For one certificate path ......... / login / .....

For another way to change the certificate for ........ / mynewkeychain / ......

+2
source share

I feel your pain since I was in the same situation before. You cannot easily change certificate names. Apple usually does not allow this. Dhawal's answer is correct as you will need to put your certificates in different key chains.

If you want to script your build process, before calling xcodebuild you need to unlock and lock the corresponding security unlock-keychain . So there is only one certificate that you want to sign up with.

There are two very good projects that simplify keychain management and construction:

+1
source share

All Articles