问题
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.
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
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