iOS Create a test certificate

Source: Internet
Author: User

Although iOS7 can be tested on a real machine without a certificate, many operations still have to have a certificate in order to operate normally;

Preparation: You have to have a developer account first;

Generating a test certificate requires three steps:

1. Generate a certificate file

2. Create bundle identifiers

3. Create a Profile

Here's a formal start to create a certificate:

First, create a certificate file

1. Open the Keychain Access program in a computer program

2. Click "Keychain access → certificate assistant → request a certificate from a certification authority" in the top left corner

3. Here's the quickest way to select "Save to Disk"

Finally, a CSR file is generated

Second, create bundle identifiers

1. Log in to https://developer.apple.com using your own developer account

2. Click member Center

3. Click Certificates,identifiers&profiles

4. Click iOS apps→identifiers

5. Click on the app IDs and click "+" in the top right corner to add the app ID

6. This page only fills in two places, the name fills in the description to the app ID, the Bundle ID fills in freely

7. Once the bundle ID is created, the page will automatically return to the main page, click Certificates→development, and click "+" in the top right corner to add the certificate.

8. The first is a test certificate, the second is a push certificate, continue ...

9. Until this page appears, click Choose File, and then select the CSR file that you generated in the first step

10. When the display indicates that the certificate was generated successfully, click Download, download the certificate

11. Open Keychain Access and select "Login" and "My Certificate" to drag the downloaded certificate to the Keychain access interface.

12. Open the project you want to test, then open the configuration file →info→bundle identifier, modify the bundle ID for the bundle ID you wrote above

13. Click Build Settings→code signing→code Signing Identity to add the certificate downloaded above

Iii. Generating a description file

1. Bring up the previous website interface, click Provisioning Profiles→development, click "+" in the upper right corner to add a profile

2. Select the first

3. This page select the app ID you created above

4. Select your own certificate (you can also choose All)

5. Select the device that allows testing (up to 100 devices allowed)

6. Give the description file a name, generate a profile, and download

7. Locate the downloaded profile in the Finder and double-click it to automatically jump to the project that changed the test certificate, click Build Settings→code signing→provisioning Profile, select the description file that you just downloaded, The certificate is added here, but there are several places where you need to change the bundle ID

7.1info→bundle identifier, this place will be changed automatically.

7.2general→identity, the general will automatically change over here;

7.3Build settings→ Search "bundle" →packaging→product bundle identifier, you have to change it manually.

At this point, you can start testing with the real machine.

iOS Create a test certificate

Related Article

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.