Charlie
Charlie

Reputation: 11787

Xcode keeps generating developer certificate (no key)?

I'm trying to start from scratch with all my keys for iOS development by deleting them, recreating them, and downloading and installing the new ones.

The problem is that I keep deleting the iPhone Developer: MyName certificate (no private key associated with it), but when I run Xcode, it generates a new one.

Is there a better way to start from scratch with all these certificates and profiles?

Upvotes: 1

Views: 2801

Answers (3)

Jeroen Coupé
Jeroen Coupé

Reputation: 1404

I think I had the same problem recently. When you delete it you probably are in the Category 'All Items' in the Keychain Access tool. This means the the private key doesn't get shown/deleted. You should try deleting it from the certificates view. After I did that it never reappeared. :-).

edit: Seems to be a common problem ;-)

Upvotes: 1

Nick Lockwood
Nick Lockwood

Reputation: 40995

I had the same problem. I think if Xcode finds the old certificates on your iPhone or in any of the mobileprovision files for the apps in your organiser then it re-imports them.

try deleting all the provisioning profiles from xcode and from your iPhone. Eventually if you delete all references to the certificates it will stop restoring them.

Upvotes: 3

Oscar Gomez
Oscar Gomez

Reputation: 18488

XCode will generate one by default, that as you may see in the developer portal cannot be edited and says "Managed by XCode", you can use that one if you wish for testing, and then simply select the one you wish to use in your target code signing settings.

To start from scratch:

1) Delete and create a new certificate
2) Create a new profile with this certificate

Upvotes: 2

Related Questions