Two versions of iOS app - Free and Paid - how to conditionally change project ID in Xcode?

前端 未结 2 1856
抹茶落季
抹茶落季 2020-12-25 08:54

I have my app with ID com.mydomain.AppName which is a paid version.

I decided to introduce free version as well, and through my cod

2条回答
  •  孤城傲影
    2020-12-25 09:21

    You could achieve this by having different XCode projects - one for each type of app that rely on common code (aka library XCode project(s)). One XCode project would be for paid app, and would have different macros, setup functions. The other XCode project would be for free app. Both the apps's projects can include shared sources - which would be compiled based on macros (PAID or FREE) etc.

提交回复
热议问题