iPhone SDK Code Signing Insights

Sadly, the code signing continues to be the most frustrating and often time-consuming element of iPhone Development. The 2.1 SDK changed a few things, and force me to clarify a few other. Here’s what I’ve learned this time around.

Code Signing Identify

The way XCode matches your Code Signing Identify is by assuming a wildcard at the end of whatever you type, and matching against Common Name of your certificates. That means you can just leave it as “iPhone Developer:” if you only have a single development certificate. Of course if you have multiple certificates with the same name (or prefix) its ambiguous.

For example I have several companies, and several development certificates, but you can’t really use more than one on the same box unless you make up new names for yourself each time. So, the best solution seems to be just to have one development certificate per box – since it doesn’t really matter which certificate you use for development, just distribution.

Entitlements

The latest instructions say that you must add an Entitlements resource to the project, unchecking the get-task-allow box. You then specify the name of the Entitlements plist file (I use Entitlements.plist) in the build target.

Ok, so I don’t understand what the entitlements do, but I have figured out what is required. Entitlements didn’t seem to be required for 2.0, but starting with 2.1 it appears that they are required for Distribution profiles, but will cause problems if you set them up on development targets. If you specify an Entitlements plist in a development profile it won’t install on the phone. This seems to be new to 2.1

Target Identifier

Also new to 2.1, you need to set your build target’s “Identifier” property (via the Info screen of a target) to match that of your application ID. Assuming you use wildcards, you leave off the randomly generated prefix, and set it to something like: com.example.${PRODUCT_NAME:identifier}. This is a “must have” to create a distribution build that actually works.

  Permalink |  Comments[1]


Related Items


Recent Entries

 » How to make the Flip Mino HD import into iMovie 09
 » How to patch Xcode to work with Subversion 1.5
 » iTunes 8 on Windows XP x64
 » iPhone SDK Code Signing Insights
 » Making iPhone Distribution Profiles Show Up


You can skip to the end and leave a response. Pinging is currently not allowed.



Leave a Reply

 
 

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a