Reputation: 14934
I've search the web but couldn't find a solution exactly for my problem. I've created a Development Provisioning Profiles
in iOS Provisioning Portal
and added it to my iMac. I can successfully deploy applications to my iPhone.
Now I'm trying to deploy the same application from my MacBook Pro. I've installed the profile but gets an error:
XCode could not find a valid private certificate/valid key-pair for this profile in your keychain
I think that I need a private key from my iMac which I have to import to my MacBook Pro. Right? My question is, where can I find that private key?
Upvotes: 0
Views: 1780
Reputation: 165
You can still use your keychain to create the CSR, and then upload it on the new provisioning portal. Just did it the other day.
Upvotes: 0
Reputation: 1614
Revoke the current certificate then follow the prompts regarding keychain Access when you go create new and then you should be fine.
Upvotes: 1
Reputation: 2849
When you have generated your certificate, Apple requires you to use Keychain Access for generating a certificate signing request (CSR). When you've done this, a private key has been generated in your keychain. You got the error above because you don't have transfered this private key between your Macs.
Here is the guide to do so (the link is for mac, but it's the same manipulation). From your iMac :
Open Keychain Access in the /Applications/Utilities folder.
Select the signing certificates you want to export.
Choose File > Export items.
Choose Personal Information Exchange (.p12) as the file format and click Save.
Enter a password and click OK when done.
Transfer the p12 on your macbook, and :
Extracted from :
Upvotes: 2