views:

47

answers:

1

The title says it all really!

I'd like to reference my own variables in my info.plist & build settings files.

Is this possible? Any ideas?

Cheers! Nick.

A: 

I can see any problems with doing this.

Should be as simple as adding an entry to the info plist, and then retrieving it using

[[[NSBundle mainBundle] infoDictionary] objectForKey:myPlistKeyName];
Jasarien
Thanks for your suggestion, but perhaps my question wasn't so clear... I actually want to use a variable in the info.plist file itself, similar to how the ${EXECUTABLE_NAME} variable is often used.
Nick Cartwright
Oh I see... Try looking through the Build Settings reference guide, you might find an answer there (requires login) https://developer.apple.com/iphone/prerelease/library/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/Xcode_Build_Settings.pdf
Jasarien