Build specific inclusion of file

Discussion in 'iPhone/iPad Programming' started by sujithkrishnan, Dec 5, 2008.

  1. macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    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...
     
  2. macrumors 603

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #2
    Put a different define in each of your build settings, and an #ifdef around the include in your source files.

    .
     
  3. thread starter macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #3
    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..
     

Share This Page