Mac OS X Hints - scs-cs-50/presentations GitHub Wiki

iPhone Simulator

The iPhone Simulator is part of Xcode. Rather than trying to create a project in Xcode to start the simulator, use this command in a Terminal window:

open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app

Alternatively, create a quick shell script:

#! /bin/sh

open /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app

Save the script into a directory on your $PATH with a meaningful name, like iphonesim. Then you can just run:

iphonesim

to start the simulator