Howto Distribute an iPhone App for Testing
By Pete Freitag
Distributing an iPhone app for testing (Ad Hoc Distribution) can be a bit of a pain, but there is one tip that I have found makes the process much better, and that is creating .ipa files.
In order for someone to test an iPhone app you first need their devices UDID, this is a 40 character string that the tester can obtain by clicking on their serial number in iTunes, and then copying it.
Once you have obtained all the UDID's you can create what's called a distribution provisioning profile (this is done in the iOS Provisioning Portal web site). The provisioning profile authorizes the device to run the application. Make sure that you have created a ad-hoc distribution provisioning profile, the development provisioning profile is used for testing on your device from xcode.
Now all a tester needs is the
YourApp.app file and the provisioning profile file to test the app. The problem is that the
.app file is not a file, it is an application bundle, and is actually a directory. You can get around that by zipping it up and sending it to the person, but this still can cause issues - Windows 7 may insert hidden files into the app bundle causing the signature to be invalid.
There is a better way - Create an ipa file
Apple recently introduced the ability to create a single file called an ipa file, which contains both the app bundle and the mobile provisioning profile. This makes it much easier to distribute for testing, especially to testers running windows.
Step 1 - Build and Archive
From the xcode Build menu select Build and Archive:
Step 2 - Open Xcode Organizer
You can open Organizer by selecting Organizer from the Xcode Window menu.
You will find your application listed on the bottom left under Archived Applications.
Step 3 - Save or Email the ipa File
Finally you can save or email the archived application along with a provisioning profile by clicking the Share button in organizer. It will ask you to select or confirm the provisioning profile and then allow you to save or email the file.
Step 4 - Test it
Now the test user can simply drag this file into iTunes Apps to install it.
Howto Distribute an iPhone App for Testing was first published on January 27, 2011.
If you like reading about xcode, iphone, ios, mobile, or itunes then you might also like:
- Building iPhone Android Apps with jQuery Mobile and PhoneGap Slides
- HTML5 Input Type Keyboards on iPhone & Android Devices
- Getting Started with jQuery Mobile