Fingertips/ios-sim — pull request #16 by dbriones (2012-01-21 17:31:53+00:00)
Title: ios-sim should exit immediately if app path doesn't exist

While setting up a continuous integration build for my iOS app, I noticed that ios-sim behaves unexpectedly when the app path doesn't exist: it launches the simulator with a blank screen, prints the following message:

[DEBUG] Session could not be started: Error Domain=DTiPhoneSimulatorErrorDomain Code=1 "Unknown error." UserInfo=0x10a81b5f0 {NSLocalizedDescription=Unknown error., DTiPhoneSimulatorUnderlyingErrorCodeKey=-1}

... and then continues running.

If the app path doesn't exist, ios-sim should print a useful error message and exit immediately without launching the simulator.

Thanks!

--Dante