After the IOS development environment is changed, re-create the Provisioning Profile certificate.

Source: Internet
Author: User
Tags key string

After the IOS development environment is changed, re-create the Provisioning Profile certificate.

I changed my MACOs and tried Provisioning Profile certificate again. Apple's certificate was complicated and complicated. Every time I made it, it was quite troublesome, And the Provisioning Profile certificate was bound to the device, therefore, after changing the development environment, you need to recreate it.

The Provisioning Profile certificate is an apple-specific thing, generally called a PP certificate, which binds AppID, developer certificate, and device together.

Delete the original Provisioning Profile:

Skip this step if the original Provisioning Profile certificate is still available on other devices.

I can't help but tell you how difficult XCode is to use. Various common functions are hidden, and I almost asked to manually delete them in the directory.

1. Click Xcode;

2. Select the menu Preferences;

3. Click the Accounts tab;

4. Select an account for Apple IDs and click View Details;

Okay. Delete the original Provisioning Profile certificate.

Create a new Provisioning Profile certificate:

The original developer certificate is about to expire. I directly Revoke the original developer certificate, so it starts with the developer certificate.

1. developer certificate creation: log on to the Developer Center, find the certificate configuration section, select Certificates, and click the plus sign in the upper right corner:

Two operations are required to publish the certificate and the developer certificate. The developer certificate is used for real-machine debugging and the issued certificate is used for submission to the AppStore.

Next, you will be prompted to create the CSR file, that is, the certificate signature request file.

In this step, you need to create a CSR file locally and use the key string assistant software on your computer. For details, refer:

You can write your own email address. It is best to specify the device name and the publishing/Development Certificate.

Make each certificate once in the CSR file as much as possible and separate common names, because this common name is the name of the key in the certificate.

Save the CSR file and submit it in the Developer Center.

After the certificate is submitted, a cer certificate is generated and valid for one year.

Click DownLoad and double-click Install.

You can view the key list in the software. The private key name is a common name in the CSR request file (remind you of the naming method. If you do not agree, delete it again ).

2. Create a Provisioning Profile certificate: At this point, the certificate has not been fully integrated. To submit an AppStore, you still need a PP certificate.

Click Provisioning Profiles, and then click the plus sign in the upper right corner.

This process also needs to be performed twice to create the pp certificate for development and the published PP certificate respectively.

The next option will automatically check your AppID. You can also select the wildCard format from the drop-down list.

Note: The certificates in wildCard format are not pushed, and PassCard and other service applications are selected with caution.

Continue, there is a difference here, because the developer certificate of the PP certificate requires real machine debugging, so we need to bind the real machine, because I have added some devices before, therefore, you can directly select and add all of them here. If not, you need to copy the real machine's udid and add it here. This step is not included in the published PP file.

Enter the name of a PP certificate, generate the certificate, download and save the certificate, and double-click it to add it to Xcode. In this way, when debugging or publishing a real machine, different PP certificates correspond to different certificates.

In XCode Project Settings, Provisioning Profile can select your certificate.

OK. certificate creation is complete!

 

Record, for better yourself!

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.