Complete Text tutorial on generating, setting, and applying Apple xcode certificates

Source: Internet
Author: User
Tags key string

Share with you the generation, setup, and application of xcode certificates. If the compilation fails as follows, I will teach you.

Development Environment:

Mac OS lion 10.7.4

Xcode 4.3.3

1. Click the key icon.

2. on the menu bar, select the "keystore Certificate" tab for key string access and disable all the following two items.

3. Generate a certificate request: access the keystore certificate assistant keystore with a key string to request a certificate from the certificate authority.

4. Enter two email addresses and common names. The email address is your registered appleid.

A) enter the name you registered on the Apple website for a common name. You have not tried other names.

B) Select "store to disk ". The saved name should be: certificatesigningrequest. certsigningrequest

C) after the key is saved to the disk, two keys, one public key and one private key, should be generated in the access window of your key string. The red part is the common name you entered above.

5 generate a certificates Certificate

A) log on to the Developer Center. If you do not know the path, click the following link:

Https://developer.apple.com/ios/manage/overview/index.action

B) Select the certificates tab on the left and request certificate on the right. Select a file at the bottom of the pop-up page and upload the certificate request (certificatesigningrequest. certsigningrequest). After submission, the Download button is displayed. Do not download it after generation.

6. Set Devices

A) Select devices on the left side of the page to add your device.

A) enter the name of your mobile phone. (You can view the name of your mobile phone in the general-purpose notebook on your mobile phone)

B) enter your udid (connect your mobile phone to your computer, open xcode login window using organizer, and select devices in the displayed window). The bottom line of identifier is the udid.

7. Set app IDS

A) Select app IDs on the left of the page,

B) Select the new app ID on the right of the page to open the page, as shown in,

C) input an appid descriptor. This descriptor has no practical significance. It is used to describe what your app ID is for, for example, "mydebug ", enter your application ID in the following box, usually with "com. english domain name.. Submit after setting.

Note!"*" Indicates that all programs can be compiled using this certificate, if the certificate is used only for programs with the same name as the certificate, instead of the "*" sign. However, if you need to compile a program that sends push notification messages or requires game center services, it must be set to the same name as your program. You cannot use "*".

8. On the open page, select your certificate type. The first and last items cannot be selected because my ID uses *

9 set pass type IDs

A) Select pass type IDs on the left side of the page and enter a name and ID respectively. Enter the name as needed. The ID must start with pass.

B) after submission, select configure for configuration.

C) after you click Configure, you may need to click it again, which is equivalent to refreshing.

D) on the open page, click "continue", and select a file to upload your request certificate (certificatesigningrequest. certsigningrequest). The download button will appear after submission. Similarly, do not download it now.

10 generate Profile

A) Select provisioning on the left side of the page to set the following items. profile name is the name of the certificate, for example, "mydebug". If the app ID is unique, no other options are available.

B. Return to the certificates tab after submission.

Note!If the status after submission is pending or not active, refresh the page again. If the status is not correct, check the preceding steps.

 

11 download the applewwdrca. Cer Certificate

A) Open the certificates tab and download the applewwdrca. Cer certificate,

 

B) after the download, double-click the installation button and select "Log on" for the key string type"

12 download the ios_development.cer certificate for installation, as shown in figure

The following two certificates will appear after installation. For clarity, the two keys generated above are deleted and never deleted on your machine.

13 download the pass IDs Certificate

Open the pass type tab to download and install the SDK.

14 download the Certificate for compilation

A) Open provisioning to download the certificate. Do not double-click the certificate to install it. The installation method is as follows:

B) connect your iPhone to your computer;

C) drag your xcode icon to the doc;

D) drag your certificate to xcode and release it immediately.

E) In the devices tab of the organizer window, your certificate name will appear in the following two locations. The status will be green. Once the certificate is set up, we will continue to use the certificate.

15. Open xcode to create a project.

A) Find the xxxx-info.list file on the left, set the value of bundle identifier on the right, and set the original XXXX. $ {product_name: rfc1034identifier} is replaced with the value set on the page, such as COM. english domain name. $ {product_name: rfc1034identifier1}

B) Select the project icon on the left, as shown in. Set your certificate, as shown in the Red Line Section on the right.

16 select your device in the upper left corner of xcode, and then click the triangle on the far left. Then, your program will appear on your iPhone.

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.