Search code examples
ioscode-signingios-provisioningprovisioning-profile

iOS provisioning code signing problems. How can I wipe everything out and start over?


I am having real trouble with provisioning and code signing issues. I have migrated to a new computer and have a bunch of "Valid signing identity not found" messages. In repeated attempts to fix distribution code signing I have managed to lose my developer code signing as well.

I am the first to admit that the root problem is my complete and utter failure to grasp the concepts of code signing, provisioning, and all related subjects. I am asking a separate question on SO to address this.

THIS question is to ask for concrete steps to wipe my provisioning and code signing mess completely clean. I am running Xcode 4.3 and have 2 live apps in the App Store that I do not want to interrupt the distribution of. Please help.

Update: I have imported my private key from the old mac, and it is showing in Keychain Access. When I try to request a certificate according to Apple docs, I don't get a "Let me specify key/value" checkbox, and when I try to save it to disk anyways I get the error "the specified item could not be found in the keychain". Arrgh.


Solution

  • Step 1: Open XCode. In the Organizer, delete all provisioning profiles.

    Step 2: Open Keychain Access (Utilities>Keychain Access); delete all certificates related to developer/distribution and the WWDCCA (or whatever it's called) intermediate certificate.

    Step 3: Re-download and resign. Make sure you export and import your private key from your old machine to your new one.

    If you need instructions on how to set up code signing, you can look at my answer to this question: Code Signing Error.

    Cheers!