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 find the keychain access tool to open the main menu-certificate assistant-request a certificate from a Certificate Authority) enter the email address at IDP registration, user name customization, select "store to disk" and select 'Let me specify key pair information '. In Mac OS, open the application and find the keychain access tool to open the main menu-certificate assistant-request a certificate from a Certificate Authority) enter the email address during IDP registration, user name customization, 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 replaced by any character, but the * number cannot be used. An error will be reported, and *, in this case, the app ID is replaced by *. It doesn't matter if * is not used. 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. All the above steps have video tutorials on this page.Http://developer.apple.com/iphone/videos/popupappids.actionFor 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 ran smoothly.