A build setting provides information necessary for building the product of a target. For each task performed during the build process—such as compiling Swift code—build settings control how that task is performed.
There are hundreds of configurable build settings. To learn more about each setting, go to Build settings reference.
Build settings have default values, based on the product architecture and SDK. These defaults can be overridden by defining project-level values and target-level values.
Build settings values are often literal values, but they can cross-reference other build settings.
Build settings can be conditionalized based on factors such as the build configuration, architecture, and SDK.
You configure build settings in the Build Settings pane of the project editor.
Each build setting has the following attributes:
Attribute | Description | Example | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Title | A human-readable name for the build setting that appears in the Build Setting pane. |
| |||||||||
Name | The name for the build setting that appears in the Quick Help inspector, appears in build configuration (xcconfig) files, and used by the |
| |||||||||
Value type | Each build setting requires a specific type of value. There are numerous value types, but the following are the most common:
Value types are displayed in the Quick Help inspector when a build setting is selected in the project editor. |
| |||||||||
Value | A value of the specified type. |
|