title: Cordova: start specific iOS emulator image
body: <p>I'm developing a cross-platform mobile app using Cordova, focussing mainly on iOS in the development stage. </p>
  
  <p>For my development process it would be ideal if I could start my Cordova app directly from the command line and have it load into a specified emulator. I can do this by running the following from the project root directory:</p>
  
  <pre><code>$cordova run --debug --emulator iOS
  </code></pre>
  
  <p>This works fine, and results in an iOS-simulator running my app in a simulated iPhone 4 Retina with iOS 7.0.3</p>
  
  <p>Besides this simulated device, I would also like to test on (for instance) an iPad. I have these emulation images installed, and I can start my app in them manually in Xcode. Also, the command <code>list-emulator-images</code> (located in <code>project_dir/platforms/ios/cordova/lib</code>) gives the following output:</p>
  
  <pre><code>"iPhone Retina (3.5-inch)"
  "iPhone Retina (4-inch)"
  "iPhone Retina (4-inch 64-bit)"
  "iPhone"
  "iPad"
  "iPad Retina"
  </code></pre>
  
  <p>However, the thing is: I can't seem to figure out how to start the emulator in anything other than the default (which appears to be the <code>iPhone Retina (4-inch)</code> emulation image). The relevant output of <code>cordova help</code> gives the following information:</p>
  
  <pre><code>run [--debug|--release]
      [--device|--emulator|--target=FOO]
      [PLATFORM] ............................ deploys app on specified platform devices / emulators
  </code></pre>
  
  <p>I've tried things like the following:</p>
  
  <p><code>cordova run --debug --emulator=iPad iOS</code></p>
  
  <p>And many variations thereof, but no luck. Every time it starts in the same emulator. </p>
  
  <p><a href="http://cordova.apache.org/docs/en/3.4.0/guide_cli_index.md.html#The%20Command-Line%20Interface">The documentation</a> for the command-line tool doesn't offer any information in this regard, and an extensive Google-search also failed to turn up anything. Am I missing something trivial? Or am I trying to do something weird? I really hope someone here has experience with this, and can provide some answers. </p>
  
  <p>Thanks very much in advance!</p>
  
  <p>edit: forgot to mention explicitly; I'm doing all this on a Mac. As mentioned earlier, running the app in different emulators/simulators in Xcode works fine.</p>