Reputation: 552
I'm developing a universal iOS app. I generally test it both on Simulator and devices. I would also like to have the ability to use the production version of the app, so that I can use the released version as a "normal" user.
But when I build and run the app from Xcode, the App Store installed copy of the app is replaced with the development version of the app.
Is it possible to have both the development and the production (App Store hosted) version of the app simultaneously available on an iOS device?
Upvotes: 7
Views: 1576
Reputation: 2015
Apps are distinguished from each other with Bundle Identifier. Two different apps having the same bundle identifier would be treated as the same by the iOS subsystem (for example like in your case, where you have a production and a development version of the same app).
Thus, when you are installing the development version via Xcode, it replaces the App Store (or Test Flight) version.
You can work around this by changing to a different bundle identifier in your Xcode project. Change the field as shown below:
P.S.: Don't forget to revert back to the correct value of the bundle identifier in Xcode after you are done testing the development version.
Upvotes: 6