First up, let's make sure that our project's scheme settings are properly archiving the release version of our app and not the debugging one by going into the Mac Toolbar when Xcode is open and selecting Product | Scheme | Edit Scheme:
Once this pane has opened, select the Archive option on the left-hand column and confirm that the Build Configuration is set to Release:
Now, close this and go over to this drop-down menu, which lets you select the device to build and run your app for in Xcode:
Xcode will not allow you to ...