Search code examples
xcodeenvironmentinfo-plist

Custom environment variable in XCode 4 - ${CUSTOM_VAR}


Where to set my custom variable?

I want to use it in info.plist file. For example:

Bundle name = ${BUNDLE_NAME}
Bundle identifier = com.mycompany.${BUNDLE_NAME}

Solution

  • You need to add "Configuration Settings File" with keys and values the you want to add/override like:

    BUNDLE_NAME = custom
    

    Then, in the project info pane under configurations you need to pick the configuration to modify and select your newly created configuration file.