Anatomy of an IOS certificate Debug and release issue

Source: Internet
Author: User

I. Introduction of Members
1. Certification (certificate)
Certificate is the qualification of computer development certification, each developer account has a set, divided into two kinds:
1) Developer Certification (development certificate)
Install on the PC to provide permissions: The developer tests the device for real-world testing.
Copies can be generated for multiple computers to be installed;
2) Distribution Certification (release certificate)
Install on your PC to provide permission to publish iOS programs: Developers can make beta and release programs.
Cannot generate a copy, only the computer that configures the certificate can be used; (the copy is introduced in the following keychain)

2. Provisioning profile (authorization file)
Authorization file is authorized for devices such as ipod Touch, IPad, iphone, the file is the device's Udid and the app Id of the program, Even if the authorized device can install or debug the bundle identifier program that corresponds to the app ID recorded in the authorization file. The
Developer account will choose the app ID when creating the authorization file (add the app ID in the developer account, single) and Udid (add up to 100, multi-select in the developer account under devices). The
Authorization file is divided into two types, corresponding to the corresponding certificate use:
1) Developer Provisioning profile (Development authorization file)
is used on a computer with a development certificate or copy, The developer chooses the authorization file to install the program to a device in the authorization file record through the computer, and can perform a real-machine test.
Note: Make sure that the computer has permissions to debug, that is, the development certificate or copy is installed, the bundle identifier of the program in the development tool and the app ID of the authorization file used are consistent; the udid of the device connected to the debug is recorded in the selected authorization file.
2) Distribution Provisioning profile (Release authorization file)
makes the beta and release programs on the computer that has the publishing certificate (that is, the computer that configures the certificate). The
release is the program file that is published to the App Store, the developer account selects the store option when creating the authorization file, selects the app Id, does not need to select Udid;
Beta is the program file that the tester can sync to the device before it is released. The developer account selects Adhoc when creating the authorization file, selects the app ID and Udid, and only the selected UDID device may install programs that are made through the authorization file.
3. Keychain (Development key)
If the installation certificate is successful, Keychain will be generated under the certificate. A copy of the certificate mentioned above is a computer that is configured to export keychain (that is, the. p12 file) to another machine, so that other machines get the permissions of the certificate. Developer certification can make copies keychain distributed to other computers to be installed so that they can be tested on the real machine.
Note: Distribution certification can only be used by computers that have a certificate configured, so even if the export export keychain is installed on another computer, it is not possible for other computers to have certificate permissions.

Overview of the IOS development and deployment process

The following table provides a quick list of steps for the IOS development process, how to obtain the required certificates, and the prerequisites for each step.

For more information about each of these steps, see Prepare for building, debugging, or deploying an IOS application.

Step number

Steps

Position

Prerequisite

1.

Join the Apple developer program.

Apple Developer Site

No

2.

Registers a unique Device identifier (UDID) for an IOS device.

IOS Configuration Portal

Apple developer ID (1th Step)

3.

Generate a Certificate signing request (CSR) file (*.certsigningrequest).

In Mac OS, use the Keychain Access program
In Windows, use OpenSSL
No

4.

Generate IOS Developer/distribution Certificate (*.cer).

IOS Configuration Portal

Apple developer ID (1th Step)
CSR file (step 3rd)
5.

Convert IOS Developer/distribution certificate to P12 format.

(Post AppStore Use this to identify which company or person you are,

Includes development and release of two versions)

In Mac OS, use the Keychain Access program
In Windows, use OpenSSL
Apple developer ID (1th Step)
IOS Developer/Distribution Certificate (4th step)
6.

Build the application ID. (marked with two different applications)

IOS Configuration Portal

Apple developer ID (1th Step)

7.

The build Configuration profile (*.mobileprovision) contains a set of data

Information that enables developers and devices to be connected to an approved IOS

The team is bound together and can enable the device for testing it

Contains a set of IOS development certificates, several device IDs, and one application

ID, and it must be installed in each of your applications that you wish to run

Devices on the other hand, the distribution profile may contain device data

Information, depending on whether you want a special release or a pass-through for a particular device

Create an app package from the Apple app Store. Apple only accepts

Applications created with the app Store distribution profile, but with

Created by the App Store configuration file

IOS Configuration Portal

Apple developer ID (1th Step)
UDID for IOS devices (2nd step)
Application ID (6th step)
8.

Build the application.

Flash Builder

Apple developer ID (1th Step)
P12 Developer/Distribution Certificate (step 5th)
Application ID (6th step)
9.

Deploy the application.

Itunes

Configuration profile (step 7th)
Application Package (step 8th)

Before you build, debug, or deploy an IOS application

Before you build an iOS app using Flash Builder and deploy it on an iOS device or before you submit to the Apple App Store, perform the following steps:

Join the Apple IOS developer program.
You can sign in or create an Apple ID with an existing Apple ID. The Apple Developer Registration Wizard will guide you through the necessary steps.
Registers the device's unique device identifier (UDID).
This step applies only if you are deploying your application to an IOS device other than the Apple App Store. If you want to deploy applications on multiple IOS devices, register the UDID for each device.
Get UDID for your IOS device
Connect your IOS device to your development computer and start iTunes. The attached IOS device will appear under the Devices section in ITunes.
Click the device name to display a summary of your IOS device.
On the Summary tab, click Serial number to display the 40-character UDID for your IOS device.
You can use the keyboard shortcut CTRL + C (Windows) or Cmd+c (MAC) to copy the UDID from ITunes.
UDID of registered devices
Sign in to the IOS configuration portal with your Apple ID and register the UDID for that device.
Generate a Certificate signing request (CSR) file (*.certsigningrequest).
A CSR will be generated to obtain the IOS Developer/distribution certificate. You can generate a CSR by using Keychain access on your Mac or OpenSSL on Windows. When you generate a CSR, you only need to provide a user name and email address, and you don't need to provide any information about the application or device.
Generating a CSR creates a public key, a private key, and a *.certsigningrequest file. The public key is included in the CSR and the private key is used to sign the request.
For more information about generating a CSR, see Generate a Certificate signing request.
Generate an iOS developer certificate or an iOS distribution certificate (*.cer) as needed.
Note: A developer certificate is required to deploy the application to the device. To deploy an application to the Apple app Store, you need to distribute the certificate.
Generate an IOS developer certificate
Sign in to the IOS configuration portal with your Apple ID and select the Development tab.
Click Request Certificate, and then browse to the CSR file that you generated and saved (3rd step) on your computer.
Select the CSR file and click Submit.
On the Certificates page, click Download.
Save the downloaded file (*.developer_identity.cer).
Generate an IOS distribution certificate
Sign in to the IOS configuration portal with your Apple ID and select the Distribution tab
Click Request Certificate, and then browse to the CSR file that you generated and saved (3rd step) on your computer.
Select the CSR file and click Submit.
On the Certificates page, click Download.
Save the downloaded file (*.distribution_identity.cer).
Convert the iOS Developer certificate or iOS distribution certificate to the P12 file format (*.P12).
Convert the iOS Developer certificate or iOS distribution certificate to the P12 format so that Flash Builder can digitally sign the iOS app. Converting to P12 format causes the IOS Developer/distribution certificate to be combined with the associated private key in one file.
Note: If you use AIR Debug Launcher (ADL) to test an application on the desktop, you do not need to convert the IOS Developer/distribution certificate to the P12 format.
Use Keychain access on your Mac or OpenSSL on Windows to generate a personal information exchange (*.P12) file. For more information, see Convert a developer certificate to a P12 file.
Build the application ID by doing the following:
Sign in to the IOS configuration portal with your Apple ID.
Go to the Application ID page, and then click New Application ID.
In the Administration tab, enter a description for the application, generate a new bundle seed ID, and enter the bundle identifier.
Each application has a unique application ID, which you can specify in the application descriptor XML file. The application ID contains an Apple-supplied 10-character "bundle seed ID" and a "bundle identifier" suffix that you specify. The bundle identifier that you specify must match the application ID in the application descriptor file. For example, if the application ID is com.mydomain.*, the ID in the application descriptor file must start with Com.mydomain.
Important: The wildcard bundle identifiers help you develop and test IOS applications, but cannot be used to deploy applications to the Apple app Store.
Generate a developer configuration profile or distribution configuration profile (*.mobileprovision).
Note: The developer configuration profile is required to deploy the application to the device. To deploy an application to the Apple app Store, you need to distribute the configuration profile. Use the distribution configuration profile to sign the application.
Generate a developer configuration profile
Sign in to the IOS configuration portal with your Apple ID.
Go to Certificates > configuration, and then click New Profile.
Enter a profile name, select the IOS developer certificate, the application ID, and the UDID where you want to install the application.
Click Submit.
Download the generated Developer Configuration profile (*.mobileprovision) and save it on your computer.
Generate Distribution Configuration profile
Sign in to the IOS configuration portal with your Apple ID.
Go to Certificates > configuration, and then click New Profile.
Enter a profile name and select the IOS distribution certificate and application ID. If you want to test your application before deployment, specify the UDID of the device in which you want to perform the test.
Click Submit.
Download the generated configuration profile (*.mobileprovision) and save it on your computer.
Files selected when you test, debug, or install an IOS application

To run, debug, or install an application that is tested on an IOS device, select the following file in the Run/Debug Configuration dialog box:

IOS Developer Certificate in P12 format (5th step)
Application descriptor XML file containing the application ID (6th step)
Developer Configuration Profiles (7th step)
For more information, see Debug an app on an Apple iOS device and install an app on an Apple iOS device.

Files selected when you deploy an application to the Apple app Store

To deploy the application to the Apple App Store, select package type as the final release package for the Apple App Store in the Export Release version dialog box, and then select the following files:

IOS distribution Certificate in P12 format (5th step)
Application descriptor XML file containing the application ID (6th step)
Note: You cannot use the wildcard application ID when submitting an application to the Apple app Store.
Distribution Configuration profile (step 7th)

Anatomy of an IOS certificate Debug and release issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.