I added a new feature into an app which I’m updating for the app store. When I tried to run it on my iPhone, I ran into a popup error saying “A valid provisioning profile for this executable”. So, I went into the organizer, and both my Developer and Distribution profile are both active and showing up just fine. So, I tried re-adding my developer and distribution certs to the Keychain Access. I noticed 2 duplicates in there, and they only stated my first and last name. I deleted one of each. Now, when I try to run the program, it says “Code Sign error: The identity ‘iPhone Distribution’ doesn’t match any valid certificate/private key pair in the default keychain”. One of the files I accidentally deleted in the Keychain Access was probably my private key.
I tried re-adding each one agin in the Keychain Access. My provisioning profiles are both showing up in the Organizer as well. Where should I go from here?
Thank you!
Edit: I checked the profiles again in the organizer, and when I highlight my distribution profile, it says “Xcode could not find a private key/certificate pair for this profile in your keychain”.
Sounds like you need to recreate your public & private key pair (if you didn’t have them backed up anywhere) and then recreate your provisioning profiles. A pain to do, but the profiles are tied to your keys.