Reputation: 19507
I am trying to create an ad hoc distribution of my App to send to a colleague.
I am getting the following error when trying to Archive my project for distribution:
Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
These are the steps which I have followed:
Now when I run i get this above error.
Upvotes: 2
Views: 18429
Reputation: 7459
Step 1:Open Certificate.p12 file on your machine (of course through key chain access) and install again by double click.
Step 2: It is now imported into your Key Chain.
Step 3: Go to your project and set Code Signing Identity properly with your developer profile. You'll get resolved this problem.
Upvotes: 0
Reputation: 1159
It appears as if the profile has not been selected. Still "iPhone developer" is selected. Sometimes when I change it in my project properties, it doesn't automatically get reflected in target properties, so double click on your target and set the profile there.
Some more steps you may have not done:
Upvotes: 4