IOS development certificate and packaging problems

Source: Internet
Author: User

IOS development certificate and packaging problems

I haven't written a blog for a long time. I read that the last original blog was published on February 1, October 18, 2013. It should have been written before the closed development last year, and half a year has passed, the land is certainly full of weeds and needs to be planted and cultivated again. Otherwise, when the fall comes, everyone will be fruitful, and it will be too late when they are shy.

1. Certificate selection:

In iOS development, you often need to package a certificate and a Provisioning Profiles for testing ). Select the corresponding certificate and description file for Code Signing in Build srtning of the PROJECT and TARGET:

Select the description file in Provisioning Profiles. There are generally three types: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140730/20140730085845133.png" alt = "\">


Generally, when the certificate and description file are named, the project name + corresponding function abbreviation is used by default. The same as the top-up, tianxiangADHoc is the online test environment certificate, and tianxiangDistribution is the certificate selected when the AppStore is published, tanxiangdev is the test environment certificate.

Code Signing Identily is the corresponding certificate. Generally, you can select Automatic. Xcode will automatically help you match the appropriate certificate, but note that both the PROJECT and TARGET must be changed.


Ii. automatic compilation and packaging:

After selecting the certificate and description file, you can package the file below. Note that if DLog is used in the project, when submitting an AppStore, you need to change the Build Configuration under Archive in Edit Scheme to the release mode, so that the log will not be output in the background:


You need to select a Device when packaging and compiling, and you cannot use iOS Simulator. You need to select your testing machine or ios Device if there is no testing machine, and then select Archive under the Product in the navigation bar, then Xcode will automatically package:


After packaging, the following page is displayed:



Click Distribution. Three options are available below:


The first option is selected when you formally submit the AppStore for review, the second option is selected for testing packaging, and the third option is generated with a suffix. xcarchive file, and then export the ipa package. After the second option is selected, the description file of the selected option is displayed. You can select dev or ADHoc as needed, but it must be consistent with the certificate description file selected in the project:

After the selection, select Export to Export, and then give the package a name and select a place to Save the package. Click Save to complete the packaging:



Note: Xcode has integrated the Apple developer account function. You only need to enter the developer account and password, which will automatically download the certificate and description file for you.

Click Xcode and select Preferences:


Click Accounts, enter your Apple iD and password, and then click View Details:


Click the refresh button in the lower left corner. After refresh, Click Done. The above is the certificate, and the following is the description file. After each new device is added, you also need to refresh it here.

Down the certificate:


If you have any mistakes, I hope you will not hesitate to criticize the keyboard. That "s All, Think you Reading!



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.