title: Code Sign error: The identity 'iPhone Developer' doesn't match any valid certificate/private key pair in the default keychain
body: <p>I am trying to create an ad hoc distribution of my App to send to a colleague.</p>
  
  <p>I am getting the following error when trying to Archive my project for distribution:</p>
  
  <blockquote>
    <p>Code Sign error: The identity 'iPhone
    Developer' doesn't match any valid
    certificate/private key pair in the
    default keychain</p>
  </blockquote>
  
  <p>These are the steps which I have followed:</p>
  
  <ol>
  <li>I have registered the device in the provisioning portal.</li>
  <li>I have generated a certificate signing request in keychain.</li>
  <li>Using this I have created a DISTRIBUTION certificate in the portal and dragged in keychain and I can see the key under the name.</li>
  <li>I have then created a DISTRIBUTION profile in the portal and downloaded it and dragged it into Xcode organiser.  It appears to be valid in Organiser as there are no warnings.</li>
  <li>Now in the project properties I have choosen this profile in the code signing identity.</li>
  </ol>
  
  <p>Now when I run i get this above error.</p>