Building iOS Apps for Enterprise Deployment
4 October 2011 (Last edited: 14 June 2012)
Overview
This document describes the steps needed to build an iOS app for Enterprise deployment. Unlike ad-hoc builds, these builds can be installed on any iOS device owned by the enterprise. Ad-hoc builds are usually created for testing an app on a pre-defined set of test devices. When the app is ready for production deployment, an enterprise (in-house) build is created.
Note: You must have the Team Agent role in the iOS Provisioning Portal to create the artifacts needed for this build.
The process for building an Enterprise app is:
1. Create the Distribution Certificate.
2. Create an Enterprise Provisioning Profile. (Go to developer.apple.com and click Member Center.)
3. Build the app using the Enterprise Provisioning Profile.
Following sections explain these steps in further detail.
Create a Distribution Certificate
Distribution certificates are used to sign Enterprise apps. The steps to receive a Distribution Certificate are:
1. Login to the iOS Provisioning Portal with the Agent role.
2. In the Certificates section, go to Distribution tab.
3. Use the Certificate Assistant (available in the Keychain Access application on Mac OS X) to generate a Certificate Signing Request (CSR).
4. Upload the CSR to the iOS Provisioning Portal and download the distribution certificate.
5. Save the certificate on the disk, and open this using Key Chain Access.
6. Xcode can now use this certificate to sign iOS apps.
7. To export this certificate to a different (build) machine, exported it in .p12 format:
a. In Key Chain Access, go to the My Certificates section
b. Right-click on the downloaded certificate and click "Export..."
c. Save the certificate in .p12 format, and provide a secure password while saving.
Create an Enterprise Provisioning Profile
The steps to create an Enterprise Provisioning Profile are:
1. Log in to the iOS Provisioning Portal with the Team Agent role.
2. In the Provisioning section, go to the Distribution tab.
3. Click on New Profile. On the Create iOS Provisioning Profile page
a. Select the Distribution Method as In House
b. Select an appropriate distribution certificate
c. Select App ID
4. Download the provisioning profile.
5. This provisioning profile can be used to build the app for in-house deployment.
Building an App Using an Enterprise Provisioning Profile
The steps to build an app on a machine are:
1. Install the Distribution certificate (.p12 file)
2. Open Xcode. Go to the Organizer window
3. Import the Enterprise Provisioning Profile
4. Open the app’s project file in Xcode
5. Go to Build Settings, Code Signing section
6. Select the certification contained in the Enterprise Provisioning Profile
7. Build the project using Build For > Build for Archiving. This will create the app archive in .ipa file format
8. The .ipa file is ready for enterprise deployment
沒有留言:
張貼留言