Building lite version in 5 easy steps

My new application will be released in the coming days and I plan to release it in two versions – paid and ad-supported free version.

Here is how you can create your lite version in XCode 4 in five easy steps:

  1. Duplicate your current target and rename it to something like YourAppName LiteXCode 4 duplicate target
  2. In YourAppName Lite target go to Build Settings and change Product Name to YourAppName LiteXCode 4 update product name
  3. In YourAppName Lite target edit Other C Flags and for all available configurations add the following value -DLITE_VERSION=1. This setting will be later on used in your code for conditional compilation.XCode 4 update Other C flags to lite version
  4. In YourAppName Litetarget go to summary pane and change your “lite” application icon.XCode 4 lite version icon
  5. In your code whenever you want to execute code only for lite version do the following:
    #ifdef LITE_VERSION
    AdWhirlView *adWhirlView = [AdWhirlView requestAdWhirlViewWithDelegate:self];
    adWhirlView.frame = CGRectMake(0, 480 - 50, 320, 50);
    [self.view addSubview:adWhirlView];
    #endif
Be Sociable, Share!
This entry was posted in iPhone, Others and tagged , , , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

One Trackback

  1. [...] http://xperienced.com.pl/blog/building-lite-version-in-5-easy-steps KategorieniPhone/iPad, News Tags: iOS, iPad, iPhone, usefull Kommentare (0) Trackbacks (0) Einen Kommentar schreiben Trackback [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">