개발관련/Mac

set info.plist preprocessor

자두맛쭝이 2012. 7. 17. 11:27

* Preprocessing Info.plist files in Xcode Using the C Preprocessor

1. open project Info

2. goto Build->Packaging

3. check Preprocess Info.plist File

- do this for both the Debug & Release configurations.

4. set Info.plist Other Preprocessor Flags : -C

5. set Info.pList Preprocessor Definitions : PLIST_PREPROSSOR


code.





CFBundleDevelopmentRegion
English
CFBundleExcutable
...
#ifdef PLIST_PREPROSSOR
1.5.0
#else
1.2.0
#endif
...


* Note that after adding the preprocessor definitions, info.plist file will no

longer open as a property list. You'll need to right-click on the info.plist and select 

Open As > Source Code File.


[reference]

Xcode Build Setting Reference http://developer.apple.com/library/mac/#documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html


Technical Note. Preprocessing Info.plist files in Xcode

http://developer.apple.com/library/mac/#technotes/tn2175/_index.html


furbo.org - Mac App store guide

http://furbo.org/2011/03/09/mac-app-store-guide/