IPhone real machine debugging

Source: Internet
Author: User
Tags key string

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. Now, 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.

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.