使用Cordova / PhoneGap模拟器命令模拟iPad [英] Simulate iPad using Cordova/PhoneGap emulator command

查看:354
本文介绍了使用Cordova / PhoneGap模拟器命令模拟iPad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用包含./emulator命令与Cordova / PhoneGap在命令行运行我的应用程序在iPad模拟器。

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

基本说明这里:

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

我从这里安装了iOS模拟器:

I've installed the iOS simulator from here:

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

文档说支持从命令行模拟iPad。但是,默认情况下,它打开iPhone,并将设备更改为iPad关闭应用程序(它不会安装在主屏幕上)。我已搜索,但找不到文档来启动以模拟iPad。

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.

如何运行Cordova ./emulator命令打开iPad?

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

推荐答案

这可能是因为你使用的是旧版本的phonegap / cordova,但在3.4版本中, >

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" 

这篇关于使用Cordova / PhoneGap模拟器命令模拟iPad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆