Posts Tagged iPhone

iPhone Application Packaging

When developing for the iPhone it’s often necessary to build the application in a form that can be easily installed by collaborators and testers. For ease of installation, the app should be distributed as a .ipa (iPhone Application) file. Unfortunately, XCode does not include a way to do this, so I wrote a bash script to automate the process.

Additionally, in any build that leaves the developer’s desk it is especially important to include version information so that bug reports can be traced back to the correct version of the source, and to ensure that any distributed version can be located in the version control system. I use git for source control (installed with MacPorts), though the script should be easily adaptible to CVS or SVN.

The goals for this script were:

  • Automatically tag the project with a unique build number before each build.
  • Build all supported configurations with a single command. Sometimes compiler errors or warnings are only revealed with certain preprocessor flags or optimization settings.
  • Ensure any build created for distribution is cleanly committed to version control and tagged.
  • Name tags so that they can be easily correlated to user-visible version information.

Read the rest of this entry »

Tags: , , ,

Installing AdHoc Applications on the iPhone

If you’ve received an AdHoc iPhone application (a file with a .app extension) and associated provisioning file (a file with a .mobileprovision extension), follow these simple steps to install it on your iPhone.

  1. Connect your iPhone or iPod Touch to a computer with iTunes installed.
  2. Launch iTunes and switch to the Applications section of the Library
    iTunes Library Application Section
  3. If this is your first install of an app
    1. Save the provisioning file to your desktop…
      Saved Provisioning File on Desktop
    2. and drag it into iTunes
      Dragging the provisioning file into iTunes Library
  4. Save the application to your desktop…
    App saved on Desktop
  5. and drag it into iTunes
    Dragging the app into the iTunes Library
  6. Select your to your iPhone or iPod in the Device section in the left column of iTunes; then go to the Applications tab.
    iTunes Device Applications Tab
  7. Make sure you’ve either selected “All Applications” or that the checkbox next to the new app is selected.

  8. Click “Sync”
  9. Enjoy!

Tags: ,