Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make two versions - lite and pro - of the same app

We have an AdWhirl-sponsored version of an app (Moonrise) and would like to offer an ad-free $.99 version.

For maintenance reasons, I'd like to have a single app in which I just change a couple #defines to turn ads on and off.

But how do I compile to two different 'app packages', so to speak, that have different names and bundle identifiers?

I guess I'm just asking for a heads-up before I try it, and if there is a gotcha I should think of. Also, if there is an even easier way of doing it, I'd like to know (as this should be common among devs).

Plan is to

  1. Create a bundle identifier, change it in the -info.plist
  2. Create a new app with a new name, change bundle Display Name and icon
  3. Make a #define or such to not show ads
  4. Upload to App Store

Have I missed anything?

like image 984
Henrik Erlandsson Avatar asked Aug 18 '11 12:08

Henrik Erlandsson


1 Answers

  1. Create new bundle identifier
  2. Create one more .plist file for your app (you may duplicate existing one)
  3. Change application name, bundle identifier and so on in new .plist file
  4. Add another target (you may duplicate existing)
  5. Find in target settings "Info.plist" entrie and change it to new one
  6. Add some user defined flag in targets settings to mark what one of them is LITE and another is not LITE
  7. Configure schemes for different targets

If you will do everything good, you will be able to use single project to build different versions of it.

like image 78
Serhii Mamontov Avatar answered Oct 13 '22 23:10

Serhii Mamontov