title: How to install a certificate in Xcode (preparing for app store submission)
body: <p>I wan't to select my distribution profile in <code>Code Signing Identity</code> in the build tab of targets. But all my certificates (developer, ad hoc, ...) are grayed out. So it seems that the new profile XXX.mobileprovision is not installed. The guidelines say</p>
  
  <blockquote>
    <p>Download the distribution profile and install it in the Xcode Organizer.
    Drag the .mobileprovision file to the Provisioning Profiles list under IPHONE DEVELOPMENT in the Organizer.</p>
  </blockquote>
  
  <p>But nothing happens. No green plus icon appears.</p>
  
  <p>If I double click the profile Xcode shows me an empty file ...</p>
  
  <p>Can someone help me out?</p>
  
  <p>Additional information:</p>
  
  <p>First I created an Ad-Hoc profile (with another bundle identifier), which works (now). The certificate owner and the user name on the Mac are not the same (but the private key was created under this username). In Xcode I can only see the old developer certificate (from the Ad-Hoc profile).</p>
  
  <p>I set the app to <code>Release</code>.</p>