title: Xcode could not find a valid private-key certificate pair for this profile in your keychain
body: <p>[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]</p>
  
  <p>Several days ago I created a profile and was successfully able to use it to run app on my iPhone.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>The certificate is showing as being valid in Keychain Access.</p>
  
  <p>Any suggestions?</p>
  
  <p>Added Later: trying this Q&amp;A from Apple:</p>
  
  <p><a href="https://web.archive.org/web/20141029102125/http://developer.apple.com/library/ios/qa/qa1618/_index.html" rel="nofollow noreferrer">https://web.archive.org/web/20141029102125/http://developer.apple.com/library/ios/qa/qa1618/_index.html</a></p>
  
  <p>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?</p>