开发者

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, an开发者_运维百科d 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?


  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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜