Basing a Build Configuration on a Configuration File

    Steps
  1. In the project editor, select the project for which you want to use a build configuration file.

  2. Click Info at the top of the project editor.

  3. In the Configurations section, navigate to the build configuration you want to base on a configuration file.

  4. Choose a configuration file from the pop-up menu in the right column.

Prerequisite



image: ../Art/BasingaBuildConfigurationonaConfiguration File_button.png

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.