IPhone Real-Computer commissioning and installation process
First, for the real-machine debugging, you have to register the app ID on the Apple website, and purchase the iphone Develop Program (IDP) developer authorization, $99. Then to create a certificate request CSR, create the following steps:
1. Mac OS, open application, find Keychain Access (Keychain Access) tool to open main Menu-Certificate assistant (Certificate Assistant)-Request certificate from certificate agent (ask a Certificate from a Ce Rtificate Authority) Enter the IDP registration email, user name customization, select "Save to Disk" and select ' Let me specify key pair information '.
2. Choose where to save the file
Select Save path and the certificate request was created successfully.
Second, you can then log in to the IDP Portal to submit a certificate request, to this page
Http://developer.apple.com/iphone/manage/certificates/team/index.action
If you have a Download button, you need to revoke and then re-add the locally generated certificate.
(In this case, you can also export the key from the machine where the certificate is installed, and then install it on your computer and use it)
After the certificate has been uploaded, click Approve, and a download button will appear in the next page.
Download two files to the local, open Keychain Access, select Login on the left, and then drag and drop two files into certificates, the certificate will be installed automatically, after installation, there is no problem, will prompt the error. After installation, you can add certificate to the keychain.
Three, now register the device, through Xcode Organizer or itunes can view your machine's udid. In the page above the link can be. This page has detailed introduction http://developer.apple.com/iphone/manage/devices/howto.action
Open Xcode, under the Window menu, click Organizer, this page appears (if you want to connect to the real machine OH)
To generate the app ID, create the application, you need to specify the program ID, create a appid on the site, this ID can be for a program can also be targeted at multiple programs, assuming that a program testgame, You can specify that its ID is com.Thinkrace.Testgame or com.thinkrace.* is created on the site, for COM. The thinkrace.* can be adapted to all programs. It is also important to note that this ID corresponds to the name of your program target info, not the name of your program itself, one thing to note here: If your App ID is replaced with an * number, in the SDK3.0 environment, target The name in info cannot be written like com. Thinkrace.* like this, the following * number can still be replaced with any character, but can not use *, will be error, and in SDK3.0
Before the environment can be used *, this is the case that the app ID is replaced by *, do not need to replace it does not matter. After you have changed the name, you will have to change the iphone developer in the build item to your provisioning in target info, which is ok (but it will be changed when you build the provisioning and finally debug). See Specific practices
Five, the final can be generated provisioning profiles, this is the most important, the above to do everything is for it, very simple, within a minute will generate download, download it can be. If not, you can refer to
Http://developer.apple.com/iphone/manage/provisioningprofiles/howto.action
Click "New Profile" to click "Submit", in a minute will generate download Download provisioning
Note: Drag the downloaded file to the location in the figure below to install it automatically
After the installation is completed, a certificate will be generated in the location, if the status does not have a warning, the installation is successful
Six, open Xcode, open your project, and put the option of the location in the diagram, select the certificate just generated
Where is the name of the bundle Identifier (app ID Suffix) when adding the app ID?
At this point, complete, build and go compile, the program will be automatically run by the incoming iphone, open the iphone will find its own program
iOS development iphone real-Machine Debug installation process