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

后端 未结 3 1035
心在旅途
心在旅途 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.

    0 讨论(0)
  • 2021-01-31 05:28

    This was very helpful for me. It is essentially the multi-target approach but you customize it for a company and you upload to their account.

    https://developer.apple.com/videos/play/wwdc2019/304/ See from the 17 minute mark.

    To summarize, you partner with the company you are developing for, from their Apple Connect account, they assign you as the developer and marketing role for the specific apps you are developing for them. You upload your builds to their account. They get ultimate decision of when they will release it and who will test it with TestFlight.

    0 讨论(0)
  • 2021-01-31 05:40

    I did this differently at my last company, where we generated around 8 apps from one primary source repository.

    We created one project that required one external class, call it Config. That class vended the unique info that makes each app unique.

    Then to spin one app you create your App project, include the common "library", provide the Config.m file (Config.h is common), add the unique images etc.

    0 讨论(0)
提交回复
热议问题