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 app id,
To create an application, you must specify the Application ID and create an APP on the website.
ID. This ID can be for one program or multiple programs. Assume that there is a program Testgame, you can specify its ID
Com. Thinkrace. Testgame or com. Thinkrace. * is created on the site. For com. Thinkrace .*
Suitable for all programs. It is also important to note that this ID corresponds to your program target
The name in info is not the name of your program. Note that if your app id is replaced by the * number, then in the SDK3.0 environment, arget
The name in info cannot be written like com. Thinkrace. *, and the * number can still be replaced by any character, but it cannot be used. An error will be reported, but in SDK3.0
You can use * in the previous environment. In this case, the app id is replaced by *. It doesn't matter if you don't use * instead. After the name is changed
In Info, set the iPhone in the build item
Developer is changed to your provisioning, which is enough (but this will be done when you generate provisioning and change it during debugging ). For more information, see
Open Web http://developer.apple.com/iphone/manage/bundles/index.actIon[/Url]
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 pro"File"
Click "Submit". The download will be generated within one minute.
Download provisioning and double-click
5. Real machine debugging
Install provisioning. Double-click it. Connect to the iPhone/iPod and use xcode
-> Window-> organize is enabled. 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 the device is running in development. Another important point is that the iPhone
The SDK must be consistent with the real-machine version. if the version is incompatible, errors such as devices cannot be found may occur. All the above steps have a video tutorial http://developer.apple.com/iphone/videos/popupappids.act on this pageIon
For more information, see.
Provisioning
1. Click 'add' to Add a rule, enter a common name, select a device, select a Certificates, and select an App ID. If you fill in the above settings, it is very simple here, and then select submit to submit.
2. You can see the newly added rule in Provisioning and download it to the local device.
3. to install the rules, you can simply drag the downloaded file to the Xcode icon, or drag that. mobileprovision file to the iTunes icon, or copy the file to/Library/MobileDevice/ProvisioningProfiles. You can also add it by + in the Provisioning of the iPhone device in Xcode Organizer.
4. Open Xcode and open your project. In the upper left corner of the window, select iPhone Device 3.0 (Base SDK) instead of iPhone Simulator 3.0.
5. Select your Targets, double-click the file to open Target Info, and find Co in Build.De Signing, CoDe Signing Identity, change the Value, and select the certificate you just added.
6. in Properties, modify the Identifier part. Note that you need to enter the part similar to the domain name next to the App ID, instead of all App IDs. If you enter a domain name in the app ID registration area, the domain name also needs to be written here.
7. At this time, all are completed. Build and go compile the program. The program will be automatically transferred to the iPhone for running. When the iPhone is opened, you will find your program.
Source Address: From: http://hi.baidu.com/yanh105/blog/item/9b87b80a8edd9d8ed1581b95.html