iOS add test equipment and debugging

Source: Internet
Author: User

Go to: http://www.lidaze.com/

In the previous blog, have already bought a good Development account, since all paid, do something meaningful!
To use a real-machine test, you need to prepare the following:

1. Certificate: The file installed on the computer cer , only the computer with the certificate installed, can do the real machine debugging
2.APP ID: Is the application Bundle ID , each application has a unique Bundle ID , but we do not need to add for each application, we can use the wildcard character: * number
3. Test equipment UDID: Each device has a unique identification code, called Udid, we need to add the test device Udid to the account, otherwise it will not be tested
4. Description file: Inside contains: 证书 , App ID , 测试设备UDID . is used to describe which computer can be tested, which one can be tested, which application can test

I. Adding a certificate
  1. First, we need to log in to the Developer Center: Developer Center, note that you need to use a paid account
  2. Go to the following page and click on the selected area to prepare for the certificate generation
  3. We can see the development of three kinds of direction, we will naturally choose iOS开发 the direction of the content, Apple has told us the operation of the process, respectively:,,, 证书 应用程序标识 测试设备 描述文件 We follow the steps to do it, clickCertificates
  4. Select Certificates Pending , click on the right Certificate Signing Request , or 右上角的添加按钮 , you can add the certificate
  5. Select the certificate for the true machine debug, the following option is to add a remote push certificate, and later in the article to introduce
  6. Just click on the button below this page Continue to continue the operation
  7. This page Balabalabala a lot, the direct Continue button continues, ignoring it
  8. Here we need to create a certificate on the computer and upload it. Find the application in the Mac computer trader, 钥匙串 find it in the menu, 证书助理 and then select 从证书颁发机构请求证书 , as follows:
  9. The point is to choose to store to the local disk, other content is free, you like it.
  10. After that, a suffix is generated: .certSigningRequest the file is saved to the desktop
  11. Just create the certificate on the computer, need to upload, go back to just the webpage, select the Choose File... button, upload the certificate just generated
  12. Click the Generate button to generate the certificate we need
  13. After the build, click the Download button, download the certificate to local, ready to use later!

Note: An account can only generate a real-computer debug certificate, and many people only need to use this one.
The certificate has been generated, and the next thing to do is register the app ID.



Two. Register App ID
    1. Click below on the left Identifiers App IDs , then click on the top right corner to 加号按钮 add our app ID
    2. In the Name input box, enter a description of the app ID
    3. Here is the prefix that lets us fill in the app ID, we choose the following fuzzy Fill method, that is, you can use the * number to replace all. You need to enter the exact app ID above. If you choose Explicit App ID , you can test for more functionality, such as Game Center, App Group, Push notifications, and so on. However, the app ID can be used only for one application. We now add a generic, so select the following Wildcard App ID , enter com.公司名.* a similar identifier, or you can use a * number that represents all:
    4. After filling in the above content, slide below, select Continue continue
    5. Here is a confirmation of the selected content, ensure that the content of their choice is correct, click the Submit button to submit

Note: We have just created a generic certificate that cannot be tested for remote push. If you need to test more features, you need to add Explict App ID a type of app ID.
APP ID added successfully, below, we need to add test device.



Three. Adding test equipment
    1. Select the Devices bottom left and All click on the button in the top right corner to 添加 add the real machine device

    2. Here we need to enter the name of the test equipment (content arbitrary) and the udid of the device, then where to see the udid of the device?
      Using the data cable, connect the device to your computer, open XCode it, click Options in the menu bar Window , select Devices options:
    3. Go to the following page, select your device, see on the right Identifier , right click to copy its contents
    4. Then paste the obtained udid into the input box and click the button directly to Continue continue
    5. Confirm that the content is correct, then click Register the button to confirm the registration
    6. At this point, we have added test equipment, we can test it immediately, continue.

Note: Each account can add 100 test equipment, even if the device can not, but also occupy the quota, it will be a year after the completion of automatic emptying.
Below, generate the description file, immediately soon oh.



Four. Generating a profile
    1. Select Provisioning Profiles the following All :
    2. Then click on the button in the top right corner to 添加 create the description file.
    3. What we're going to do is test, so select iOS App Development , then Continue button to continue
    4. In the description file, the app ID is required, and here you select the app ID that we just generated
    5. In the description file, you need a certificate, here you select the certificate we just created
    6. In the description file, you need to test the device, here directly select Select All , you can have all the test equipment can be tested, and then click the Continue button to continue
    7. After adding the required information, enter a description file name, then click the Generate button to generate the profile
    8. After generating the profile, click the Download button, download to local, ready to use

Note: The description file generation needs to: 1.App ID 2.证书 3.添加到此描述文件中的设备 , these three kind, indispensable
OK, both the certificate and the description file are generated, one step ahead, and you're done right away.



Five. Importing certificates and Profiles
    1. Connect your test device to your computer using a data cable, double-click the certificate and profile, install it on your computer and test device, and then you can test
    2. Create an empty project, note: Here the input of the content, need to register with the app ID input has been, if the registration is using a * number, then here any
    3. Note: The version chosen here needs to be less than or equal to the version of your test machine, or the test machine will not be able to use
    4. The final step is to select the test device as a real machine and then cmd + R run it.



Done, this process is more cumbersome, need to operate more, familiar with will find it is actually very simple

iOS add test equipment and debugging

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.