Building app for App Store and Enterprise Distribution

不羁的心 提交于 2020-01-03 13:16:08

问题


I have an application that will be distributed internally to 100's of employees but also distributed externally to the App Store.

I've already signed up for the regular iOS developer membership as well as the Enterprise developer program.

However, I'm trying to figure out how to have xcode switch between building a debug build, and internal build and an app store build.

Specifically, provisioning profiles apply to a specific App ID. I had to create two different app ids in the developer portal but my application only has 1 app id (obviously).

Any ideas how to have one project that could selectively build different configs...?

回答1:


You'll have to use different targets. This gives you different configurations, and you can also set different app ids/bundle identifiers.




回答2:


I agree with the Answer by @mrueg, but, if for whatever reason, you need to keep the same App-Id, you can release one signed with the normal distruibution certificate for release on the app store, then go back to Xcode, create a new archive but signed with the enterprise distrubution certificate.

You might want to also consider the B2B Program, where I don't think you would need to mess around with mutiple certificates.




回答3:


Just archive the project, open Xcode organizer, select the archive, then select to distribute the archive, choose the option you wanted. ad-hoc, enterprise, app store, these options all there. remember to code resigning properly.




回答4:


You just need one App ID.

  1. For Internal distribution, you need to set up all devices in apple developers. http://developer.apple.com/library/ios/#recipes/ProvisioningPortal_Recipes/CreatingaDistributionProvisioningProfile/CreatingaDistributionProvisioningProfile.html

  2. For External distribution, you just need to download the app by applestore.



来源:https://stackoverflow.com/questions/15605566/building-app-for-app-store-and-enterprise-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!