1. Related Resources
(1) Keychain Program (common Tools-keychain ) for creating certificate requests, installing certificates, exporting private keys, and more
(2) iOS Dev Center:https://developer.apple.com/devcenter/ios/index.action
(3) iOS description portal (iOS provisioning portal), where you configure certificates, profiles, push services, and more:
Https://developer.apple.com/ios/manage/overview/index.action,
(4) iOS program released:http://itunesconnect.apple.com/
2. A word description of the certificate, signature, private key, description file
(1) There are two types of certificates: Developer certificate, publisher certificate. The former is used during development, the latter is released using
(2) Simulator debugging without code signing; Real machine debugging requires developer certificate code signing; Publishing Certificate signing
(3) Code signing needs: Certificate + Private key, indispensable, see 4
(4) The Real machine debugging requires the installation of a profile on the device (provision profile), which contains information: Debugger certificate, authorization debug device inventory, app ID. One application corresponds to a description file.
(5) In general,Xcode needs to be configured with the following code signature:
3. Xcode code Signing brief steps
(1) Create a certificate request with the Keychain program: Certificate Request file (*. certsigningrequest), private key, public key.
(2) Send the certificate request file to Apple, which will create a certificate file (*.cer) for you.
(3) Xcode will use the certificate file and the corresponding private key to sign the code.
Note: The private key can be exported as a copy of P12 file for others to use, see the next section.
4. How to share certificates in team development
In team development, you need to share the certificate file and the private key. If you download only the certificate file from provisioning portal without the private key,Xcode prompts an error:Unable to code design using identities in this team:no private ke Ys available (Unable to code-sign in the team: No valid private key found). Workaround:
(1) Open the Keychain program and select the ' key ' category.
(2) Right-click (or Control-click) the private key (private key) associated with the development certificate, and click ' Export ' to save the Personal information Exchange (. p12) file format . You will be prompted to create a password and require an administrator password to export.
(3) Copy the P12 file to the other machine, you will be prompted to enter the password in the previous step.
RELATED links:
iOS certificate/private key/code Signature/description file
iOS certificate/private key/code Signature/description file