Step by Step Guide to Beta Testing on the iphone

Reviews
Shared by: Tara Sims
Stats
views:
489
rating:
not rated
reviews:
0
posted:
8/6/2008
language:
pages:
0
Step by Step Guide to Beta Testing on the iphone By: http://furbo.org/ NOTE: It’s not clear if the information in this essay is covered by the NDA or not. The instructions presented here are either referenced on Apple’s own site or referenced in the publicly available version of Xcode. If requested, I will remove this post. During Steve Jobs’ WWDC Keynote the announcement of Ad Hoc distribution meant one thing to most of us iPhone developers: beta testing. Unfortunately, the instructions for setting up this beta testing environment are not well documented. I used the following steps to setup a beta test for Twitterrific on the iPhone. Updating Xcode for beta builds This is the part of the whole process that eluded me the most. There is a new requirement to add entitlements to your Xcode project. Luckily, someone pointed me to this discussion on Apple’s website. It provides the following steps: 1. Open up your ad hoc provisioning profile in Text Edit and verify that it contains a “get-task-allow”. If it does not, generate a new provisioning profile using the Program Portal. 2. In Xcode, select File > New File… 3. In the dialog source list, under iPhone, select “Code Signing”. Select “Entitlements” then click the Next button. 4. Name the file “dist.plist” and put it in the root of your Xcode project. Click Finish. 5. Open dist.plist and uncheck the “get-task-allowed” checkbox. Save the file. Now that you have setup the entitlements, you’ll want to create a new configuration for your beta builds. I found it easiest to make a copy of my existing App Store distribution configuration and change the code signing setup: 1. Make sure that you new beta configuration is the Active Configuration. Xcode has some problems if you try to modify Code Signing parameters on a configuration that is not active. 2. Use Project > Project Settings to open the build settings. Change the “Code Signing Provisioning Profile” to be “Any iPhone OS Device” and then select the name of the provisioning profile you chose in the Program Portal. If you don’t see the name listed, make sure that the .mobileprovision file is located in ~/Library/MobileDevice/Provisioning Profiles. 3. Use Project > Edit Active Target to open the target settings. Change the “Code Signing Entitlements” to be “dist.plist”. 4. Clean the build and you should then be able to build a beta release. Xcode can get confused when changing provisioning and other code signing settings, so don’t be afraid to quit and restart to get things synced up. Adding beta testers Of course the next step is to sign people up for your beta test. The most important thing to get from them is their device ID. Each iPhone or iPod touch has a unique identifier. You’ll need this to add them to the Ad Hoc distribution. There are several ways to get this information. iTunes will display the Identifier if you click on the Serial Number after selecting the device in the source list. Pressing Cmd-C (Mac) or Ctrl-C (Windows) will copy the 40 character hex string to the clipboard. If your beta tester is on a Mac, another solution is to use the iPhone Configuration Utility, which can be downloaded from Apple’s site. After selecting the device, you’ll see the same Identifier field which can be copy and pasted as text. Finally, you can also use Erica Sadun’s Ad Hoc Helper. Your beta tester can use this application to send you an email with the device’s information directly from the device. Creating a beta build After collecting device identifiers from your beta testers, you’ll need to go into the Program Portal and add the devices. I’ve found that the easiest way to manage this is by using the tester’s name as the device name. Once you’ve finished entering up to 100 device identifiers, you’ll need to add these devices to the your Ad Hoc provisioning profile (Edit > Modify.) After you’ve finished updating the profile, Download the .mobileprovision file and move it into ~/Library/MobileDevice/Provisioning Profiles. Now quit and restart Xcode so that it recognizes the new provisioning and perform the following steps: 1. Select the beta configuration you setup earlier. 2. Open your project settings with Project > Edit Project Settings. 3. Update the “Code Signing Provisioning Profile” to use the name of the provisioning you just installed in MobileDevice. You’ll notice that it’s quite a bit of work to update the provisioning, and since you’re modifying the contents of the project, you’re going to need to checkin .xcodeproj changes to your version control system. My recommendation is to get all your beta testers lined up and do it all at once. Distributing and installing the beta At this point, you can do a beta build and it can be run by your beta testers. The only thing left to do is getting them the software. To be honest, I don’t know how this part works for users that are on Windows. I’m sure it’s possible, but you’re on your own as far as the steps involved. For beta testers on the Mac, you’ll need to send them two pieces of data: a ZIP file that contains the .app bundle created by Xcode and a copy of the Ad Hoc .mobileprovision file in the MobileDevice folder. To install the .mobileprovision file, the beta tester can just drag it onto the iTunes icon in the Dock. After unzipping the .app bundle, your tester can drag the application into Application in the iTunes Library. The next time they sync, the beta version of your application should appear on the device. If your testers are managing a lot of different applications, they may find that the iPhone Configuration Utility is easier to use than iTunes. It has facilities to manage multiple devices, provisioning profiles and applications. Hopefully you’ll find this information useful and allows you to increase the overall quality and reliability of your iPhone application. Happy testing!

Related docs
STEP
Views: 17  |  Downloads: 1
step by step odblokovani a pocesteni iphone
Views: 423  |  Downloads: 5
Step-by-Step Tutorial
Views: 91  |  Downloads: 10
STEP
Views: 11  |  Downloads: 1
Step by step
Views: 11  |  Downloads: 0
STEP BY STEP GUIDE STEP BY STEP STEP BY STEP
Views: 120  |  Downloads: 6
Step-by-Step Guide for
Views: 0  |  Downloads: 0
STEP BY STEP GUIDE TO
Views: 21  |  Downloads: 1
Step by Step Deployment Instructions
Views: 59  |  Downloads: 5
A Step by Step Guide
Views: 81  |  Downloads: 7
A step-by-step guide
Views: 6  |  Downloads: 0
Step-by-Step Tutorial
Views: 117  |  Downloads: 1
Other docs by Tara Sims
Coach Paul W Bryant Records
Views: 16  |  Downloads: 0
Bengals Chris Henry Family Guy
Views: 110  |  Downloads: 0
Chris Henry Police Report December 16 2009
Views: 97  |  Downloads: 0
Time Magazine Top 25 Blogs of 2009 Full List
Views: 26  |  Downloads: 0
The Summit Store Directory
Views: 19  |  Downloads: 0
The Summit Store Directory 2009
Views: 36  |  Downloads: 0
Itunes RSS Podcast Directory
Views: 44  |  Downloads: 0
Final 2009 BCS Bowl Standings Colleg Football
Views: 29  |  Downloads: 0
2009 UPS Year End Holiday Shipping Schedule
Views: 219  |  Downloads: 0
Lesson Plans Social Studies
Views: 12  |  Downloads: 1
Lesson Plans Science
Views: 5  |  Downloads: 0
Lesson Plans Plant Science
Views: 10  |  Downloads: 0