title: Xcode won't choose correct Provisioning Profile
body: <p>I have an app with a distribution certificate with an app id. I have downloaded the distribution profile into my organizer and set the bundle id in info.plist to the app id. However, when I try to archive the project, I get </p>
  
  <blockquote>
    <p>Code Sign error: Provisioning profile '...' specifies the Application Identifier '...' which doesn't match the current setting 'mybundleid'. </p>
  </blockquote>
  
  <p>Xcode is looking at a different provisioning profile and saying it's wrong, but I don't want to look at that provisioning profile, I want it to look at a different one. In Build Settings, it even says "(currently matching...) to my correct provisioning profile, so I don't get what's going on.</p>
  
  <p>I also did try removing the wrong profile, but then it gave me another error that the provisioning profile did not exist.</p>
  
  <p>Does anyone know what I'm missing here? Thanks.</p>