PDA

View Full Version : Build specific inclusion of file




sujithkrishnan
Dec 5, 2008, 08:37 AM
Hi all.


I am building my application in two different ways based on extrenal parameters. But i imported a file (buiid2ViewController.h) in commonViewController class using #import build2ViewController.


how to execute #import build2ViewController macro ONLY for build2, not for build1


Any inputs plz...



firewood
Dec 5, 2008, 08:53 AM
Put a different define in each of your build settings, and an #ifdef around the include in your source files.

.

sujithkrishnan
Dec 22, 2008, 03:03 AM
Put a different define in each of your build settings, and an #ifdef around the include in your source files.

.

What kind of DEFINE ???? can u help me with a snippet?
u mean any build settings??

NOTE:I am having diff Info.plist for diff builds..