Dynamic bundle identifiers in Xcode: Using xcconfig for different configurations

Generally in Xcode you have two configurations: Debug and Release. It's often a good idea to have a different bundle identifier for each configuration so that your debug builds don't replace the release builds on your device. Normal setup For a single target I usually start with three xcconfig files: Base.xcconfig , Debug.xcconfig and Release.xcconfig . Base.xcconfig is for build settings shared…