The iPhone Simulator is included with Xcode 4 to allow iOS developers to test their software on the same Macintosh they use for programming. iOS apps are launched in the simulator by specifying it as the "run destination" before compiling the app from its source code in Xcode.
Step 1
Launch Xcode, and open the project file for your application.
Video of the Day
Step 2
Click on the "Scheme" menu in the toolbar to show the list of valid run destinations. This will show you the available simulator environments and any connected iOS devices that have been provisioned for development.
Step 3
Select the iOS environment that matches the simulation environment you wish to test.
Step 4
Choose "Run" from the Project menu to launch the simulator with your app running.
Video of the Day