[Before immediately marking as a duplicate, I've read through a few others with the same problem description but don't have a solution after applying answers from them]
Several days ago I created a profile and was successfully able to use it to run app on my iPhone.
Now however I am using a different laptop for development and am unable to progress as I keep getting a "Xcode could not find a valid private-key certificate pair for this profile in your keychain".
I have tried with the same iPhone/profile combination as I used previously, in additional I have another iPhone and have generated a new profile with that device's id. However I get the same message with that profile/phone too.
From other postings on this site seems people got this problem when the profile had not been dragged/dropped in the Library section of Organizer - I dragged the profiles on Xcode and there is a resulting Provisioning Profiles section containing the relevant profile in both the Library section and Devices section of Organizer.
The certificate is showing as being valid in Keychain Access.
Any suggestions?
Added Later: trying this Q&A from Apple:
https://web.archive.org/web/20141029102125/http://developer.apple.com/library/ios/qa/qa1618/_index.html
They say within Keychain Access click on the .p12 file. What are they talking about, what and where is the .p12 file? Its not shown in their own documentation screen shots and nor does it appear in my Keychain Access. Is it supposed to?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…