Graphics Programs Reference
In-Depth Information
Device ID (UDID)
This identifier is unique for each iOS device.
Provisioning Profile
This is a file that lives on your development device and on your computer. It
references a Developer Certificate, a single App ID, and a list of the device IDs
for the devices that the application can be installed on. This file is suffixed with
.mobileprovision
.
When an application is deployed to a device,
Xcode
uses a provisioning profile on your
computer to access the appropriate certificate. This certificate is used to sign the applica-
tion binary. Then, the development device's UDID is matched to one of the UDIDs con-
tained within the provisioning profile, and the App ID is matched to the bundle identifier.
The signed binary is then sent to your development device where it is confirmed by the
same provisioning profile on the device and, finally, launched.
Open
Xcode
and plug your development device (iPhone, iPod touch, or iPad) into your
computer. This will automatically open the
Organizer
window, which you can re-open by
clicking the button from the top right corner of the workspace. You can select
Devices
from the top of the
Organizer
window to view all of the provisioning information.
To run the
Quiz
application on your device, you must tell
Xcode
to deploy to the device
instead of the simulator. Locate the pop-up button named
Scheme
in the top left of the
workspace window. Choose
iOS Device
from the right portion of the list, as shown in
Fig-
Conway's iPhone
.) Build and run your application (Command-R), and it will appear on
your device.
Figure 1.23 Choosing the device