Xcode real machine program release test

Source: Internet
Author: User

1. Release testing refers to giving your program

* Your tester, because the program is always to be tested. * before the official release, the customer must first check and accept the applications on their iOS devices (iPhone, ipod, iPad) installation, run. 2. Prerequisites: you have completed the real machine test, which means: 1. You have joined Apple's "iOS Developer Program" and paid $99 for the event.
2. A development certificate is generated on the IOS provisioning portal.

3. Complete Certificate installation in xcode. Menu: window-> organizer, and select devices 3. release process.
Figure: release process 1. Three roles: tester, the tester or your customer; developer, you; program portal, the official website of Apple, log on to your "member center" and you will be able to see,
 

2. The three main steps are shown in the release Step. 1) obtain the tester device udid. 2) generate an ad hoc publishing certificate on the program portal. 3) use this certificate in xcode to package (archive) the above three steps will be detailed later.

 

Assume that your tester (Testers in the team and your customers) has certain experience in using iOS devices, at least iTunes will be used.

To obtain your tester iOS device udid:
1. Insert the iOS device to the PC/MAC with iTunes installed. The overview page of the device is displayed in iTunes., For example,

Here we can see the 12-bit serial number of the device, which is not what we want.

2. Click the serial number. The device overview page displays the device udid., For example,

 
CTRL-C (command-C under MAC) copy down, then QQ or mail to you.
Note: 1) Even if you click udid, the page does not change, but you can copy it.
2) never let people copy characters one by one. It's a pity that people have worked hard. You have to think about how easy it is to make mistakes to copy about 40 characters.
 
After obtaining the udid, you must add it to the device list on the IOS provisioning portal. The specific steps are as follows:
1. log on to the member center)


 

Go to the official website of Apple developers (pai.apple.com) and select Member center, as shown in.

2. log on with your Apple id, as shown in figure

 
(It's a bit wordy )\

3. In the member center, select the IOS provisioning portal, for example,

 


4. Enter the main interface of the provisioning portal, for example,

5. Select "devices" and select "add devices". The page is displayed,

 

Enter the name of a place and the udid you obtained from tester.

There are two types of IOS certificates: one is development certificate, which is used to test your (developer) on a real machine; the other is publishing a certificate, the publishing certificate is divided into the publishing to App Store (not mentioned here) and the publishing test of the ad hoc certificate.

What is the difference between an ad hoc certificate and a development certificate? If your tester (Team testers and customers) can bring the test device to you and directly plug it into your Mac development machine, you can directly "fill" the program, it is enough to have a development certificate without the need for an ad hoc certificate.
What should I do if the tester iOS device cannot allow you to program directly? You must package your program and send it to your tester to install it through iTunes. Then you need an ad hoc certificate.
For specific differences, Let's first look at the ad hoc certificate generation process, which is very similar to the development certificate generation process,
1. Enter the main interface of provisioning portal, for example,

For details about how to enter the main interface of provisioning portal, refer to "iOS program Release Test 2-Get tester device udid ")

2. Select provisioning and then select distribution, as shown in figure

 
This is a difference between the Development Certificate and the generation of the publishing certificate. The difference is described in the article "iOS program Release Test 4-archive release (SHARE.

3. Select "New Profile" and the new certificate publishing page appears, as shown in,

Select "ad hoc" and then select the tester device ID (for how to obtain and add the tester device ID, see "iOS program Release Test 3-Get tester device udid ").
 
4. Download the certificate to your local device,

 
Click "Download" to download the certificate to the local device.
Note: If the status is "pending", refresh it to "active.
 
5. Import the certificate. Double-click, and the xcode (4.0 here) Provisioning interface appears, as shown in,

After the certificate is generated and imported, archive and share are followed.

The last step of the release test is archive. The previous steps are as follows:
Xcode4 real machine program Release Test 1-preparation
Xcode4 real machine program Release Test 2-Get udid
Xcode4 real machine program Release Test 3-generate ad hoc Certificate

The xcode4 help document is described in detail, but it is incorrect.
1. Set "build Settings"It's an official document. Pay attention to the red box and say the opposite.

 
"Skip install" must be selected No. Otherwise, after the following packaging steps, organizer will not see your program, so it will take me some time and there will be a bunch of problems in Foreign Forums, said that I followed the official document and how the organizer could not see the program.

1.1 select an ad hoc CertificateIn the "code signing" column, select the publication certificate (ad hoc) You generated in the article ("iOS program Release Test 3-generate ad hoc Certificate"), such,

 
Select "iPhone distribution" instead of "iPhone development". Otherwise, a certificate error will be reported in the following archive steps.

2,Edit Scheme", Select the menu: product-> edit scheme, as shown in,

 
In the red box, select the iOS device and release.

3. Archive), Select the menu: product-> archive. In the organizer window, you can see your program,

 
Then click "share" to publish (SHARE)

4. Share

 

Select the first "iOS app store package" to generate the. IPA file. Your tester can be installed using iTunes.
If you select the last one, "Archive", you need to install xcode on the other side.

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.