I'm trying to run an application on my iPhone, but I'm having problems with the code signing identity.
Actually I have two certificate in my keychains, one for the distribution, and one for developing that does not have the private key.
I tried to download again the certificate from developer.apple.com but I still can't have the private key.
In fact I can't select the iPhone developer profile from Target -> Build settings -> Code signing Identity because I get the error:
Profile doesn't match any valid certificate/private key pair in your keychains.
Moreover in the organizer the status of the developer profile is:
Valid signing identity not found.
Do you have any suggestion?
If you had an older machine where you had created a CSR and downloaded the certificate originally, then export the certificate from its keychain. Save it as a .p12 file and then copy it to your new machine on which you are working currently. Double click the .p12 file to install it to your keychain. Expand and see if you see the private key.
If this is the original machine and you still do not have a private key in your keychain, you would have to request for a new certificate.