FBSimulatorControl: A Mac OS X library for managing iOS simulators
github.com