IOS real machine compilation and debugging steps

Source: Internet
Author: User
Tags key string

From: http://hi.baidu.com/xyzs996/blog/item/a59af053c49992000df3e35d.html

For real-machine debugging, you must first register an app ID on the Apple website and buy an iPhone develop program (IDP) Developer license for $99. To create a CSR request for a certificate, follow these steps:

Set OCSP and CRL to disabled.

In Mac OS, open the application and findKey string access(Keychain access) tool to openMain Menu-Certificate Assistant(Certificate Assistant )-Request a certificate from a certificate proxy(Request a certificate from a Certificate Authority) enter the email address when the IDP is registered, the user name is customized, select "store to disk", and select 'Let me specify
Key pair information '.

Select the Save path. The certificate request is created successfully.

1. log on to the IDP portal and submit the certificate request.
Http://developer.apple.com/iphone/manage/certificates/team/index.action

Click development, 'request certificate', then click browser, add the generated certificate, and click Submit.

Click approve. A. Cer file will be generated in one minute.

Download and double-click it.

Click OK to add certificate to the keychain.

2. Now you have registered the device. You can view the udid of your machine through xcode's organizer or iTunes. Join the above page. This page provides details
Http://developer.apple.com/iphone/manage/devices/howto.action

Open xcode, click organizer under the window menu, and the page appears (provided that you need to connect to the real machine)

The line of identifier is the device ID. copy it. Open http://developer.apple.com/iphone/manage/devices/index.action

Click "add devices"

Give the device name your own name, paste the copied characters to the device ID, and click the submit below.

3. generate an app ID and create an app. You need to specify the app ID and create an app ID on the website. This ID can be for one program or multiple programs, suppose there is a program test, and its ID can be specified as COM. thinkrace. test or com. thinkrace. * created on the site. For COM. thinkrace. * Applicable to All programs. It is also important to note that this ID corresponds to the name in your program targets, not the name of your program. Here, you should note that: if your app ID is replaced by the *, the name in targets cannot be written in the sdk3.0 environment similar to com. thinkrace. * In this case, the * number can still be used
What is the character to replace, but cannot use *? An error will be reported, and * can be used in the environment before sdk3.0. Here, this situation is replaced by * for the app ID, it doesn't matter if you don't need to use * instead. After the name is changed, you need to change the iPhone developer in the build item to your provisioning in targets. This is fine (but this will be done when you generate provisioning and change it during the final debugging ). For more information, see

Open Web http://developer.apple.com/iphone/manage/bundles/index.action

Without the form *

Form *

4. Finally, you can generate provisioning profiles. This is the most important thing. All the above is for it. It is very simple. Download will be generated within one minute, and you can download it. If not, you can refer to the http://developer.apple.com/iphone/manage/provisioningprofiles/howto.action

Click "New Profile"

Click "Submit". The download will be generated within one minute.

Download provisioning, double-click it, and open it with xcode.

5. Real machine debugging

Install provisioning. Double-click it. Connect to the iPhone/iPod and use xcode-> window-> organize to open it. If the iPhone is connected, the corresponding device is displayed in the device. Click "use device for develop ", you can select the device to respond to when running the device in development. Another important point is that the iPhone SDK must be consistent with the real-machine version. if the version is incompatible, errors such as devices cannot be found, I have a deep understanding. All the above steps have a video tutorial http://developer.apple.com/iphone/videos/popupappids.action on this page

For more information, see.

Create a project, such as OpenGL ES application.

Open target test

Note the content in identifier

Build to the corresponding provisioning, build & GO. The real machine runs smoothly

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.