Basing a Build Configuration on a Configuration File
In the project editor, select the project for which you want to use a build configuration file.
Click Info at the top of the project editor.
In the Configurations section, navigate to the build configuration you want to base on a configuration file.
Choose a configuration file from the pop-up menu in the right column.
Configure a uniform set of build setting definitions across any number of targets or projects by using a configuration file. A configuration file is a plain text file with a list of build setting definitions, one per line. You can base a build configuration only on a configuration file that is in your project, not on an external file.
When you base a target or project’s build configuration on a configuration file, that build configuration automatically inherits the build setting definitions in that configuration file (and any configuration files it includes). If you then modify the value of any of those build settings in the target or project, the new value is used instead of the value in the configuration file.
Build settings defined at the target level override any values assigned to those build settings at the project level. Therefore, target-level configurations take precedence over any project-level configurations.
The video shows basing the Debug build configuration on a file called
Config.xcconfig at the project level.
© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-01-09)