iPhone Game Development - Chris Craft [14]
Locating your Device ID in the Xcode Organizer window
Tip
Even though it looks like a label, you can select the Device ID (Identifier) in Organizer and copy it.
2. Go back to the iPhone Developer Portal and choose Program Portal⇒Devices⇒Manage.
3. On the Manage tab, click the Add Device button.
4. On the Add Devices screen (Figure 1.14), enter the Device ID you copied from Organizer and a Device Name to help you identify the device you are registering.
FIGURE 1.14
Use the Add Devices screen to register the devices you wish to use for development.
Users can also determine their Device ID by clicking on the Serial Number field in the iTunes Summary screen. When displayed, the Device ID can be copied to the clipboard by choosing Edit⇒Copy from the iTunes menu. This can be particularly useful when assigning Device IDs for beta testers who may not have the SDK installed.
Create an App ID to identify your application
App IDs are necessary to tie applications into the provisioning process. In addition, they allow your applications to use Apple Push Notification and to connect with external hardware and accessories. App IDs are also necessary when you need to share keychain data between your applications. To create an App ID, follow these steps:
1. Return to the iPhone Developer Portal and choose Program Portal⇒App IDs⇒Manage.
2. On the Manage tab, click the Add ID button.
3. On the Create App ID screen (Figure 1.15), enter an App ID Name and an App ID. We recommend using a wildcard unless you need to use the Apple Push Notification service. To create an App ID with a wildcard, it should be of the format com.yourdomain*. A wildcard App ID can be used on all of your applications. If you do not use a wildcard, your App ID should follow the format com.yourdomain.YourAppName.
Figure 1.15
Use the Create App ID screen to create an App ID for your application or applications.
4. Finally, click Submit to save the App ID.
Generate and install a Development Provisioning Profile
Now that you have a Development Certificate and you have registered your device, you need to create a Development Provisioning Profile to associate with your iPhone Developer Account, Development Certificate, application, and device. Follow these steps to generate and install the Provisioning Profile:
1. Return to the iPhone Developer Portal and choose Program Portal⇒Provisioning⇒Manage.
2. On the Manage tab, click the Add Profile button.
3. On the Create iPhone Development Provisioning Profile screen (Figure 1.16), fill in all the field values, making sure you select a certificate, App ID, and at least one device.
Figure 1.16
Use the Create iPhone Development Provisioning Profile screen to register the devices you wish to use for development.
4. Click Submit to save. This returns you to the list of Development Provisioning Profiles. Find the profile you just created and click Download in the Actions column. Save the downloaded profile to your desktop.
5. Back on your machine, find the file you just downloaded and drag the file onto your Xcode icon.
6. Plug in your device and open Xcode. In Organizer, choose Devices⇒ Figure 1.17 You can use Xcode Organizer to confirm that your iPhone Development Provisioning Profile has been installed on your device. Configure the Code Signing Identity of your application Finally, you need to associate your Development Certificate with your application and assign your App ID. Once this is done, you are ready to test your application on your device. Here are the steps you need to follow to get started testing your application on your device: 1. Launch Xcode and open your project. 2. In the Xcode Project Window, the top-left pull-down control in the toolbar is the Overview popup menu. Click this pull-down menu and change the setting to #.# Device |