Getting started with iOS development: real machine testing

Source: Internet
Author: User
Tags custom name

After successfully joining the IOS Developer Program, the developer must first perform a real machine test. The following describes how to implement a real machine test.

The following describes how to test a real machine, as shown in:



In general, there are six steps:

1. Obtain the development certificate Development Certificate;

2. Add the device to be used for testing;

3. Create a new app ID;

4. Create a configuration file;

5. install various files created and downloaded on the website in MAC and xcode.

6. Connect the device to Mac, make certain changes to the app configuration in xcode, and then run the real machine test.

The following describes the configuration process in detail:


Step 1: log on to pai.apple.com and go to the following page:


On the right side of the page, there are several options for iOS Developer Program. Select the first IOS provisioning portal, that is, the IOS configuration portal. The following page is displayed:



Step 2: Click certificates on the left to add certificate. As shown in:


The page details the specific adding process. The basic steps are as follows:

1. Open keychain access in Mac. This software is in the utility.

2. on the menu bar, choose keychain access> certificate assistant> request a certificate from a Certificate Authority;


3. A dialog box is displayed as follows:

Enter your Apple id email in the user email address and your custom name in the common name, that is, the common name. Then leave the following blank. Select saved to disk, and then save it on the desktop. Then, upload the file on the website to create a certificate.

Remember to download WWDR intermediate certificate.


Step 3: Add a device. As shown in:

Enter the device name (custom) and device ID (udid), which can be viewed in iTunes. Connect to the device and open iTunes to go to the device page, click serial number in the device information to view the udid and click Copy. Other charges are not required.


Step 4: Create an app ID and enter the following table:


You can create an app ID for a software, or use it for multiple software. The key lies in the bundle identifier filling. The basic format is com. domainname. appname. This domainname can be entered at will, but this appname is the name of the application you created in xcode. The trick here is to replace it with the "*" sign. In this way, you only need to enter com. domainname. In the bundle identifier in xcode, and you can use it in any application. That's it. Here is the bundle.
Identifier does not have to be formatted. You can set it to anyname. appname. com is not needed.

Step 5: Create a configuration file. This is very simple, not to mention. It is just after the creation.

Step 6: Install the certificate. Double-click the downloaded applewwdrca. Cer to open the keychain access and install it. Then add the certificate ios_development.cer

Step 7: Install the configuration file in xcode. For example, click provisioning profiles in the library, click Import, and select *. mobileprovision File Import.


Step 8: The test is finished. You 'd better turn xcode off before testing, so that your device can be confirmed in origanizer, and the device will be highlighted with a green light. Make two changes to the software configuration in xcode:

1. Change bundle identifier to the bundle identifier you set earlier.

2. Change the Code Sign in building setting to your device and select your device as the test device.

Then you can test it on the device.

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.