title: Script to install app in iOS Simulator
body: <p>I am trying to automate the process of building an app, running unit tests, and finally running UI tests. </p>
  
  <p>I am building the app via command line (xcodebuild -sdk iphonesimulator6.0) in some directory. </p>
  
  <p>How do I install this app to the iOS simulator via command line (in ~/Library/Application Support/iPhone Simulator//Applications)?</p>
  
  <p>I tried:</p>
  
  <pre><code>/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication MyApp.app/MyApp
  </code></pre>
  
  <p>but this opens a new finder window named "iOS Simulator could not find the application to simulate".</p>