Changes

Jump to: navigation, search

Creating a Simple iPad iOS 4 App (Xcode 4)

93 bytes added, 20:00, 17 May 2011
Building and Running an iPad App in Xcode 4
== Building and Running an iPad App in Xcode 4 ==
Before an app can be run it must first be compiled. Once successfully compiled it may be run either within a simulator or on a physical iPad device. The process for testing an app on a physical device requires some additional steps to be performed involving developer certificates and provisioning profiles and will be covered in detail in [[Testing iOS 4 Apps on the iPad – Developer Certificates and Provisioning Profiles (Xcode 4)|Testing iOS 4 Apps on the iPad – Developer Certificates and Provisioning Profiles]]. For the purposes of this chapter, however, it is sufficient to run the app in the simulator.
Within the main Xcode 4 project window make sure that the menu located in the top left hand corner of the window (to the right of the Stop button) has the iPad Simulator option selected and then click on the Play toolbar button to compile the code and run the app in the simulator. The small iTunes style window in the center of the Xcode toolbar will report the progress of the build process together with any problems or errors that cause the build process to fail. Once the app is built, the simulator will start and the HelloWorld app will run:
[[Image:ipad_app_running_in_simulator.jpg|An Example iPad App running in the iOS Simulator]]
 
== Dealing with Build Errors ==

Navigation menu