Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
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...
 
Put a different define in each of your build settings, and an #ifdef around the include in your source files.

.
 
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..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.