简体   繁体   中英

Building app for App Store and Enterprise Distribution

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...?

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

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM