Back

TechnologyDec 10, 2008

Provisioning Profiles on the iPhone

Vikalp Jain

Setting up XCode correctly with the provisioning profiles turns out to be more difficult that it ought to be. The most confusing aspect is that the configuration settings need to be identical for both the project and the target. To get to the project level settings you would right click on the project and select “Get Info”. Similarly, to get to the target level settings you would right click on the target and select “Get Info”. Three of the crucial steps are:

  1. Set the Base SDK property to the latest

  2. Choose the correct provisioning profile for both the “Code Signing Identity” and the “iPhone OS Device”

  3. Make sure you are updating settings for the configuration you want to use i.e. Debug, Release or Distribution. These options can be chosen from the top left drop down in the settings panel. For example, you would typically have a separate provisioning profile for distribution and you should choose this for the code signing property value

  4. Copy the chosen provisioning profile to the device on which you are attempting to install the application

Some other things to keep in mind are: a value for “Code Signing Resource Rules Path” is no longer required if the base SDK is 2.2! Adding a value for this property for SDK 2.2 results in an error during install.

Finally, there are two steps to correctly set up the provisioning profile on the device #gallery-1 { margin: auto; } #gallery-1 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 33%; } #gallery-1 img { border: 2px solid #cfcfcf; } #gallery-1 .gallery-caption { margin-left: 0; } /* see gallery_shortcode() in wp-includes/media.php */

  1. Download the provisioning profile from your iPhone portal to your mac and drop it on to iTunes. It should automatically be copied over to ~/Library/MobileDevices/Provisioning Profiles

  2. Also, copy it to each device on which you want to install the application through the Organizer in XCode