title: Is there a way to close the iOS Simulator from the command line?
body: <p>Is there any way to quit the iOS Simulator via a command line script?</p>
  <h3>Background:</h3>
  <p>I am setting up a Continous Integration environment to enable iOS builds to compile and be tested automatically. As part of this I am running scripts using Apple's UI Automation tool within Instruments.</p>
  <p>I've managed to automate the execution of the scripts on the iOS Simulator by running Instruments from the command line BUT now I now want to automate quitting of the Simulator.</p>
  <p>I have tried some Apple Script similar to this post:  <a href="https://stackoverflow.com/questions/5125243/how-can-i-reset-the-ios-simulator-from-the-command-line">How can I reset the iOS Simulator from the command line?</a> but get the error &quot;Access for assistive devices is disabled&quot;. Hopefully, there is a simpler way?</p>