Adding a Conditional Build Setting

Customize the build process by choosing conditions under which particular build setting specifications apply.

bullet
To add a conditional build setting
  1. Select a project or target in the project editor.

  2. Click Build Settings.

  3. Select the build setting to which you want to add a conditional definition.

    In the screenshot, the Debug setting for the Generate Profiling Code build option is selected.

    ../Art/select_build_setting_2x.png
  4. Click the Add button (+) for the build setting.

  5. Choose a condition from the pop-up menu in the left column.

    ../Art/choose_ios_sdk_build_setting_option_2x.png
  6. Choose a value from the pop-up menu in the right column.

    ../Art/sdk_build_setting_yes_2x.png

Conditional build setting definitions allow you to add build setting values that apply only when one or more conditions are met. You can add a conditional build setting at the project level and target level.

You can remove a conditional build setting by selecting it and clicking the Remove button (-).