Create two iOS Apps in Xcode

前端 未结 3 996
灰色年华
灰色年华 2020-12-29 11:50

Using Xcode (to develop on iOS) I want to create a second project that it is the same as a first project but some classes are differents.

Exactly, I\'m creating an I

3条回答
  •  孤城傲影
    2020-12-29 12:02

    I want to offer a free version and a premium version.

    In this case, you do not need to create two apps in two projects: all you need is a second target for your premium version. Here is a link that explains how to create and manage multiple targets in Xcode.

    The process boils down to adding a target to the project, defining a separate properties plist for it, optionally setting up a preprocessor symbol for conditional compile, and using that symbol to #ifdef portions of your classes not needed in the free version.

    Another common approach to managing free vs. premium offering is to provide a single version for free, and let users upgrade it to premium through an in-app purchase.

提交回复
热议问题