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
- Create a bundle identifier, change it in the -info.plist
- Create a new app with a new name, change bundle Display Name and icon
- Make a #define or such to not show ads
- Upload to App Store
Have I missed anything?
- Create new bundle identifier
- Create one more .plist file for your app (you may duplicate existing one)
- Change application name, bundle identifier and so on in new .plist file
- Add another target (you may duplicate existing)
- Find in target settings "Info.plist" entrie and change it to new one
- Add some user defined flag in targets settings to mark what one of them is LITE and another is not LITE
- 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.
精彩评论