Target Template for Building iPhone IPA Files

Saturday, January 9, 2010

I created a Xcode Target Template that makes it easy as pie to add an IPA target to your xcode project. Download it here!

If you're not familiar with IPA files, see this previous post on the subject. (The template file basically just encapsulates what's described in that post, but in a template file to make things easier.)

Instructions:
  1. Just add the 'IPA File Target.trgttmpl' template file to either of these directories:
    • "~/Library/Application Support/Developer/Shared/Xcode/Target Templates/Cocoa Touch"
    • "/Library/Application Support/Developer/Shared/Xcode/Target Templates/Cocoa Touch"
  2. In Xcode, right click on the Targets folder in your project or otherwise select the Add Target menu item from somewhere. Look under User Templates on the left, click Cocoa Touch, and there the template will be. Select it and add.
  3. Once you add the target you should edit it and add your Application target as a Direct Dependency. (That way the application will automatically get built first if you try to build the IPA target and the application isn't built yet.)
  4. To actually build the IPA file, change your Active Build Target from MyAppName to MyAppName.IPA in the Project->Set Active Target menu and build. (Of course you need to make sure you already have iPhone Device as the active SDK and your Release configuration set up with the proper code signing profile for an ad-hoc distribution since an IPA file with a debug build for the simulator isn't going to be too useful.)
I hope people find it useful. If so please leave a comment or send me a message so I know that I'm not talking to a wall or something....

2 comments:

gutilin@mac.com said...

Wow! You rock!. THANK YOU!
you should add though that there should be a file called iTunesArtwork.jpg in your project.

Apple should add your template ASAP!

ThankfulDeveloper said...

Dude.. Thank you SOOOOOOOOOOOOOOOOOOOO much.. Seriously.. this is open mouth kissing wonderful. I had a problem with my "universal" apps installing in itunes, and this is allowing my app in. THANK YOU!!!!

Post a Comment