How do I build multiple versions of the same iOS application for OEMs

后端 未结 3 1040
心在旅途
心在旅途 2021-01-31 04:51

I have an existing iOS application that I need to be able to build and release multiple versions of for different clients.

This application interfaces with hardware that

3条回答
  •  长情又很酷
    2021-01-31 05:18

    Create multiple targets that use different Info.plist files. The biggest difference will be different bundle identifiers. You can also define different preprocessor macros that will control the conditional compilation of various chunks of code.

    Alternatively/additionally, you can put your build configuration settings (including the changing location of the Info.plist file) into *.xcconfig files and reference those in your project, info, configurations area. Then, you can build a different version of your app by simply by changing your scheme. Putting build configration settings into files is a huge win for configuration control too.

    Here's a link to setting up *.xcconfig files: http://itcoding.blogspot.com/2011/03/using-xcconfig-abandoning-build-panel.html. I've seen other articles like this as well -- but this one will get you started.

    Good luck.

提交回复
热议问题