Home Apple’s Best Kept Secret: Ad Hoc Installs for Testing Purposes

Apple’s Best Kept Secret: Ad Hoc Installs for Testing Purposes

One of the major pain points in developing mobile applications for iOS devices (iPhone, iPod Touch and iPad) is testing those apps. As we’ve noted before, the traditional testing method is time-consuming and cumbersome – files have to be emailed or shared, then downloaded to a computer, dragged into iTunes and synced to the mobile device. When an update is required, the app in iTunes has to be deleted and the whole process must begin again.

But there’s a better way, as it turns out, thanks to a change Apple made in iOS 4.0 but didn’t publicize. Apps can be distributed via the “ad hoc” method for testing purposes, which means over-the-air, one-click installs for app beta testers. Here’s how.

Although we’re not a mobile application review site per se, we’ve done our fair share of app reviews around here. And one thing that we’ve always found to be problem in doing so is the tiresome, tedious method of getting pre-release apps onto our iPhones. Download, unzip, drag and drop, sync, test, etc.

That’s why when mobile business card scanning solution CardMunch emailed us a link to install its latest pre-release version (now live) late last month, we were intrigued.

“If you would like to play with CardMunch 2.0 yourself, we made it easy for you to install this time since we already have your UDID. All you have to do is visit this link (no iTunes syncing required),” the email read, following by a link to a page on the CardMunch.com domain.

We clicked the link from within our iPhone’s email client and the app just installed on our device – no iTunes syncing required. What? How is this possible?

Apple’s Best Kept Secret

Apparently, a few developers have discovered the secret, documented in detail here. Now you may say that this isn’t a secret at all, but a well-known feature most developers already know about. We say this in return: Oh yeah? Then someone please (please!) tell the developers who keep emailing us zip files about this.

OK, I guess we will.

Why Ad Hoc: More Testers, More Feedback

Thanks to this feature, developers can distribute mobile apps wirelessly for testing purposes. Developers will still need access to the device IDs (UDIDs) and will still need to create provisioning files, but the actual distribution of the apps makes it far, far easier on those receiving the applications for testing.

With easier distribution, more beta testers are likely to actually install and try your apps. That means more feedback for developers, says Alex Okafor, a mobile application developer who shared the details of the new method on his blog ParadeofRain.com. It also means that some of your testers will be out in the field when they install the apps, instead of at home using Wi-Fi, which can help you spot issues related to 3G bandwidth and its effect on the responsiveness of an app’s functions.

How To Set Up Your Ad Hoc Distro

Thanks to Okafor’s guide, we have the instructions for setting up an ad hoc distro. Here’s how to do it:

Choose Build –> Build and Archive

If not already open, open the Organizer window (Window –> Organizer) and choose “Archived Applications”

If not already open, open the Organizer window (Window –> Organizer) and choose “Archived Applications”

Highlight the build you just archived and click on “Share Application”

Select “Distribute for Enterprise” and the correct provisioning profile should be automatically selected. If not, correct it.

Now, fill out the form presented to you with the app URL, title, subtitle (optional) and image URLs (optional).

Click “OK” and specify where the file should be saved. Save the file as the same file name you gave it in the URL.

Upload both the IPA and PLIST file to the URL you specified in the form.

Drop the index.php file created by Jeffrey Sambells here in this post into the directory where you uploaded the IPA file. This index will generate the links for both the provisioning and IPA files.

You’re finished! Now, just share the link with your app testers!

Is this Legit?

So is this legit? It appears so. We spoke to another well-informed source on the matter who explained that this “Wireless App Distribution” method can now be done by either posting an XML file (a manifest file), using a PHP script or any other method. The idea is that the manifest will point to a single IPA file which itself can contain a provisioning file, they explained.

Developers registered under either the Standard or Enterprise program get 100 ad hoc invites, but Enterprise developers can distribute apps without linking to UDIDs. As far as this person knew, using an Enterprise developer license for distributing anything (beta or otherwise) to employees or contractors would be fine and not in violation of the Apple Developer Agreement. (Feel free to chime in if you know more.)

As we shared in October, a startup called TestFlight has developed a tool to further refine this process. It lets developers invite testers via email, and they can then see who has tested what builds of the app. The process of gathering and managing UDIDs is handled by the TestFlight service as well.

Have you tried ad hoc distribution for testing purposes? If so, what do you think about it?

Image credits: ParadeofRain

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.