Archive for January, 2010

New Mac == Certificate Headaches for iPhone Development

January 22, 2010 in iPhone | Comments (0)

If you’re doing any iPhone development, be ready for some headaches if you get a new machine. While the migration assistant does move all of your applications and settings over from your old machine, it doesn’t necessarily copy keychain items, and if you haven’t brought across your private key for your distribution certificate you’re going to be out of luck. Don’t miss these important bits from this Program Portal page:

Saving your Private Key and Transferring to other Systems

It is critical that you save your private key somewhere safe in the event that you need to develop on multiple computers or decide to reinstall your system OS. Without your private key, you will be unable to sign binaries in Xcode and test your application on any Apple device. When a CSR is generated, the Keychain Access application creates a private key on your login keychain. This private key is tied to your user account and cannot be reproduced if lost due to an OS reinstall. If you plan to do development and testing on multiple systems, you will need to import your private key onto all of the systems you’ll be doing work on.

  1. To export your private key and certificate for safe-keeping and for enabling development on multiple systems, open up the Keychain Access Application and select the ‘Keys’ category.
  2. Control-Click on the private key associated with your iPhone Development Certificate and click ‘Export Items’ in the menu. The private key is identified by the iPhone Developer: <first Name> <last Name> public certificate that is paired with it.
  3. Save your key in the Personal Information Exchange (.p12) file format.
  4. You will be prompted to create a password which is used when you attempt to import this key on another computer.
  5. You can now transfer this .p12 file between systems. Double-click on the .p12 to install it on a system. You will be prompted for the password you entered in Step 4.

Happily enough I had done all of this, but there was still a great deal of revoking, requesting, and installing of certificates and provisioning profiles before I finally got App Store builds of my application working on the new machine.


It’s time to pay Apple for the privilege of writing iPhone apps again…

January 21, 2010 in iPhone | Comments (0)

And I still haven’t submitted a single one. I’ve actually only written one, but I keep dragging my feet on submitting it. Perfectionism kicks in… it’s a simple app and doesn’t do much except help you walk through the Getting Things Done processing model for incoming stuff. With as many crappy apps as there are out there I don’t know why I hesitate to just shove this up there, ship something, but either way I pay Apple their $99 every year for the privilege. For some reason I thought I would make money off of iPhone apps, but so far only Apple has profited from my efforts.