Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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}
like image 957
brigadir Avatar asked Nov 09 '11 08:11

brigadir


1 Answers

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.

like image 137
Farcaller Avatar answered Nov 10 '22 02:11

Farcaller