Skip to Content

Submit your nominations for the Luxist Awards' Best in Decor
AOL Tech

ad-hoc posts

Filed under: iPod Family, Developer, iPhone

Dev Corner: Signing iPhone apps for informal distribution

At times, iPhone developers might like to test out applications without going through the formality (or challenges) of ad hoc distribution. Ad hoc distribution was introduced by Apple to allow software testing on up to 100 registered devices. It is, admittedly, a bit of a pain.

Developers must collect device information (the "UDID", aka their unique device identifiers), register that device at the iPhone developer portal, create an special provisioning certificate, add a special entitlement, and build an ad-hoc only version of their software to distribute along with that certificate.

If all that seems like a hassle, well, yes it is. It is, however, the proper, authorized, and recommended way to distribute pre-release software, whether for testing or reviews. But there is another way.

If you know for sure that your target audience is another developer, the process becomes way easier. You can simply compile a normal development build of your application and send a copy of that build to another developer.

That's because each registered developer has the ability to sign applications. Although the app was built to work with just the in-house devices you've registered for development, another developer can re-sign that application using the simple command-line script shown here.

#! /bin/bash 
export CODESIGN_ALLOCATE=/Developer/Platforms/iPhoneOS.platform\
/Developer/usr/bin/codesign_allocate

codesign -f -s "iPhone Developer" $1.app

This script uses Xcode's codesign utility to sign the already compiled version of the application. Once applied, you can then install the application through Xcode.

So is this a general distribution solution? No. And thank heavens for that; free trading of app binaries would rapidly lead to piracy. This approach allows developer-to-developer testing and collaboration only. The development signing is limited to the units you have personally registered.

If you want to try this out, follow the link at the start of this post. It leads to a testing folder I keep around and occasionally stock with software that I need tested. It also includes a copy of the script, which you must make executable (chmod 755 signit).

Filed under: Developer, iPhone, App Store, iPod touch

Apple gives developers the ability to use promo codes

Apple has now given developers the ability to use promo codes to give away copies of their applications on the App Store. Previously, developers had to build a special version of their application (i.e. Ad-hoc copy) that included a mobile provisioning file and the actual application. These two files were then dragged onto iTunes to install them.

With the Ad-hoc model, developers were limited to giving away 100 copies of their applications. Plus, users needed to find & supply the UDID information for their iPhone/iPod touch. With this change, developers can give away a special code that, when typed into the iTunes Store under the "Redeem" section, will give the user a free (or promotional) copy of the application. However, there are some caveats to using the promotional codes:
  • The developer can only give away up to 50 promotional codes per application version
  • Currently the promo codes can only be used in the US iTunes Store
We're sure that this will fill the gap between developers looking to get reviews and users eager to do the reviewing. Nice work, Apple!


[via MacRumors]

Filed under: iPod Family, iPhone, SDK

iPhone 101: Find UDID with a single click

Apple has given developers a way to beta test iPhone applications with up-to 100 iPhones. Some developers have already started using this to their advantage by giving their software out as free public betas. However, you must supply a developer with your iPhone's UDID (unique device identifier) in order to install these "Ad-hoc" applications on your iPhone.

To find your iPhone's UDID, just plug it into your computer and wait until iTunes recognizes it. Select your phone from the Devices list in iTunes and click the "Summary" tab. To see your UDID, click on the word "serial number" beside the picture of the iPhone. You should see the word "identifer" and an alphanumeric string – this is your UDID.

To copy it, just press command + C on your Mac's keyboard (or control + C in Windows). Now comes the hard part: getting on a developer's beta testing list.

Tip of the Day

Use Spotlight as a reference tool. Type any word in the Spotlight box and one of the top entries will be a definition. Click on it, and it will bring up the dictionary application to check the word in either the dictionary, thesaurus, Apple database, or Wikipedia.


Follow us on Twitter!
 TUAW [Cafepress]

Featured Galleries

DNC Macs
Macworld 2008 Keynote
Macworld 2008 Build-up
Google Earth for iPhone
Podcaster
Storyist 2.0
AT&T Navigator Road Test
Bento for iPhone 1.0
Scrabble for iPhone
Tom Bihn Checkpoint Flyer Briefcase
Apple Vanity Plates
Apple booth Macworld 07
WorldVoice Radio
Quickoffice for iPhone 1.1.1
Daylite 3.9 Review
DiscPainter
Mariner Calc for iPhone
2009CupertinoBus
Crash Bandicoot Nitro Kart 3D
MLB.com At Bat 2009
Macworld Expo 2007 show floor

 

More Apple Analysis

AOL Radio TUAW on Stitcher