It looks complicated at first but I'd definitely recommend setting this up if you have any variables in your app that require different environment variables.
It looks complicated at first but I'd definitely recommend setting this up if you have any variables in your app that require different environment variables.
Understanding Configurations and Schemes
Before we proceed, though, it is important to understand Xcode’s Configuration and Schemeconcepts as this technique relies quite heavily on them.
A Configuration defines the set of compiler settings that will to be used. By default, Xcode creates two configurations for you (Debug and Release) when you create a new iOS project. Most of the settings are the same but there are a bunch of settings that vary between a Debug build and aRelease build.
http://www.blackdogfoundry.com/blog/migrating-ios-app-through-multiple-environments/