I do not want to maintain two sets of code. I just need to limit some features in the Lite version and add some advertisements on it.
How to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create multiple targets.
You can vary build configurations by right-clicking on a target and selecting Get Info. From there, you can do things like change which
Info.plistfile it’s looking at (to do things like add “Lite” to the name and change the icon/load images) and set compiler flags so that you can#ifdefin places.If there are lots of files that are only applicable in the full version, then you can right-click on them and remove them from the Lite target to make a smaller app.
I’ve experimented with various alternatives, such as multiple configurations, and I keep coming back to multiple targets. I usually have at least three defined – Development, Ad hoc and App Store, each with their own particular settings.