views:

28

answers:

1

What is the recommended way to create a Light version of iPhone App?

I have an x-code project of my iPhone app which I want to charge money for it. In addition to that app, I would like to deploy additional "light" version of this app free of charge which of course will have some limitations.

Best way I can think of is adding a new 'Light' configuration in my existing x-code project and define a constant like LIGHT_VERSION only in this configuration that will be tested in my code.

Will that solution work? or do I have to create a new 'Light' project pointing to all sources and resources of original project?

Any tips will be appreciated.

+1  A: 

YES you can define a preprocessor macro LIGHT_VERSION. Use it with

#ifdef LIGHT_VERSION
#endif

an so to disable/enable features. For more information please look at: stackoverflow - xcodebuild - how to define preprocessor macro?

AlexVogel
So I guess I can also provide a different application name and different App ID to this configuration, right?
Joshua