title: How to archive a new target in Xcode
body: <p>I created a new target in my Xcode project with the intention of using it to build a "beta" version of my application instead of using a single target and swapping environment variables and other things constantly when I do my builds. </p>
  
  <p>The new target is a different version and build number than my original target, and it uses a different bundle identifier. I am trying to archive the new target and upload the .ipa file to my device management software to distribute the app to my users, but when I upload the .ipa file, it appears to be an archive of the first target because it lists the first target's bundle Id, version and build numbers instead. Are targets allowed to be used this way? I have the beta target selected when I click archive but I'm not sure what else I could be doing wrong.</p>
  
  <p>Also let me know if there is any additional information or screenshots I can provide and I would be happy to do so.</p>