title: How do I make sure a debug build and appstore build are identical?
body: <p>I need to make sure that the same app I sent to a client for testing, can be the exact same app in the AppStore.</p>
  
  <p>My workflow: from XCode I make a debug/test build for my client.
  After testing, if they say "go ahead, release it in the appstore", I would like to upload a binary thats the closest match to the build they just approved. Ideally, it should be identical.</p>
  
  <p>I can solve this in several ways:</p>
  
  <p>1) I use my companys usual distribution profile to make a debug/test build. This requires the client to inform me of every device they might consider installing the test app on. More often than not, they keep adding more and more devices as time goes by, making extra work for me updating the provisioning profile multiple times. Not ideal. The upside is, I can upload the exact same archive to the appstore, using the appstore provisioning profile instead.</p>
  
  <p>2) I use an enterprise profile for making the debug/test app. The upside doing it this way, is the client can install it on as many devices as they need to. No registering of UUIDS is required. The downside: I need to make a new archive, as you cant use the enterprise profile for the appstore. This leaves room for error - and the posibility that the app on the appstore is not exactly as intended.</p>
  
  <p>3) I might ask my client upfront, to supply me all their certificates/profiles etc making me able to build all apps, for testing and the appstore, with their certificate/profiles. This way, its likely their devices are already added to the provisioning profiles, and when the time comes to submit to the appstore, I don't need to make a new archive. I just make a binary from the archive, with their appstore provisioning profile instead.</p>
  
  <p>In short, this is ideally what I need:
  I make a debug/test build, upload it to TestFlight. My client installs it on as many devices as they need to.
  If they dont find any bugs and gives me the go-ahead, I want to be able to upload the exact same build to the appstore. This way, I am sure its the same app they tested/approved, that actually goes in the appstore.</p>
  
  <p>How do I achieve this?</p>