Appendix A. Testing on an Actual Device

Although the iPhone Simulator is a very handy tool that enables you to test your iPhone/iPad applications without needing an actual device, nothing beats testing on a real device. This is especially true when you are ready to roll out your application to the world — you must ensure that it works correctly on real devices. In addition, if your application requires access to hardware features on an iPhone, iPod touch, or iPad, such as the accelerometer, gyroscope, and GPS, you need to test it on a real device — the iPhone Simulator is simply not adequate.

This appendix walks through the steps you need to take to test your applications on a real device, be it the iPhone, iPod touch, or iPad. In addition, you will also learn how to prepare your application for submission to the App Store.

Signing Up for the iPhone Developer Program

The first step toward testing your application on a real device is to sign up for the iPhone Developer Program at http://developer.apple.com/iphone/program/. Two programs are available: Standard and Enterprise. For most developers who want to release applications on the App Store, the Standard program, which costs $99, is sufficient. Check out http://developer.apple.com/iphone/program/apply.html to learn more about the differences between the Standard and Enterprise programs.

If you just want to test your application on your actual iPhone/iPod touch, sign up for the Standard program.

Obtaining the UDID of Your Device

To test ...

Get Beginning iOS 4 Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.