appium/appium — pull request #1448 by snevesbarros (2013-11-09 19:56:42+00:00)
Title: fix for issue 1445.

Added a check to see if instruments is null.

Without the flag "--native-instruments-lib" we still have an instance of instruments when calling the appium stop function. With the flag in place instruments is null at that point and we don't need to shut it down.

Therefore a simple check did the trick. Ran tests on xcode5 with iOS7 sim with and without flag and both worked fine, although it was much slower with the flag.