iOS Development certificate and packaging issues

Source: Internet
Author: User

Haven't written a blog for a long time, read the last original blog release date is October 18, 2013, this day should be closed before the development of the last year, dazzling big half a year passed, is definitely also full of weeds, need to re-sow the cultivation, or autumn came to everyone fruitful, It's too late to be shy in your own pocket.

First, the certificate choice:

In iOS development it is often necessary to package the tests, packaging needs matching certificates (certificates) and profiles (Provisioning Profiles). In Project project and Target's build srttings, code signing selects the corresponding certificate and description file:

Choose a description file in provisioning profiles, generally there are three kinds:



The General certificate and the description file name when the default with the project title + corresponding function abbreviation, as above, Tianxiangadhoc is the online test environment certificate, Tianxiangdistribution is the certificate that is selected when publishing AppStore, Tanxiangdev is the test environment certificate.

Code Signing identily is the corresponding certificate, general automatic can be selected, Xcode will automatically help you match the appropriate certificate, but note that project and target need to change.


Two, automatic compilation packaging:

After choosing the certificate and the description file, can be packaged below, there is another to note, if the project to use Dlog, submit AppStore need in the edit scheme inside the archive under the build configuration changed to release mode, This way, log will not output in the background:


When you need to select a device for a package build, you can no longer use iOS Simulator, choose your test machine or select iOS Device if you don't have a test machine, then select Archive under the navigation bar product and then Xcode will automatically pack:


The following screen will automatically appear when the package is complete:



Then click Distribution and there will be 3 options below:


The first option is when you formally submit the AppStore audit, the second option is to give the test packaging time to choose, the third option is a suffix. xcarchive file, and then export the IPA package. After selecting the second item will also pop up to let you choose a profile, this time you can choose the dev or adhoc as needed, but need to be consistent with the certificate profile selected in the project:

Choose Export after selecting, and then give the package a name to choose a save where, click Save package even if done:



PostScript: The Apple Developer Account feature is already integrated in Xcode, and you only need to enter the developer account and password and he will automatically download the certificate and profile for you.

Click Xcode to select Preferences:


Then click Accounts, enter your Apple ID and password, and then click View Details:


Then click on the bottom left corner of the refresh button, click Done after the refresh, the top is a certificate, the following is a description file, each time you add a new device, you need to re-

Down the certificate:


If there are any mistakes in the hope that everyone is not stingy with the keyboard welcome criticism pointed out. That ' s All,think reading!



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.