I have set different build settings for different build schemes in my XCode to test demo app and appstore app.
To do this, I have created different provisioning profiles with different bundle identifiers for debug and release schemes.
Added different app icons for debug and appstore builds to differentiate them. Everything works perfectly as expected. The problem occurred when I added new target for watch app. When we add a watch target, we have to set main app bundle identifier for WatchApp(WKAppBundleIdentifier) and watch app bundle identifier for WatchAppExtension(WKCompanionAppBundleIdentifier) in their respective property lists(plist). Here we do not have option to set different bundle identifiers for different schemes and the error when we switch to different scheme and compile.
Its really helpful and saves my time if anyone suggests better solution.
Thanks, Sandeep
You can achieve it by adding user-defined strings in build settings. Here is a complete tutorial. Hope it helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With