brigadir
brigadir

Reputation: 6942

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}

Upvotes: 9

Views: 3652

Answers (1)

Farcaller
Farcaller

Reputation: 3070

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.

Upvotes: 8

Related Questions