Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate iPad using Cordova/PhoneGap emulator command

I would like to use the included ./emulator command with Cordova/PhoneGap to run my app in the iPad simulator from the command line.

The basic instructions are here:

  • http://docs.phonegap.com/en/2.2.0/guide_command-line_index.md.html

I've installed the iOS simulator from here:

  • https://github.com/phonegap/ios-sim

The documentation says it supports simulating an iPad from the command line. However, it opens by default to iPhone and changing the device to "iPad" closes the app (and it is not installed on the home screen). I've searched but can't find documentation to launch to simulate an iPad.

How do I run the Cordova ./emulator command to open to iPad?

like image 218
Oliver Moran Avatar asked Dec 14 '12 11:12

Oliver Moran


1 Answers

It may be that you were using an old version of phonegap/cordova, but in version 3.4 the following works for me:

cordova emulate ios --target="iPad" 
like image 174
tomf Avatar answered Oct 30 '22 13:10

tomf