由于我安装了Xcode 9,所以iOS模拟器无法与Cordova一起工作。当我使用这个命令时:
ionic cordova emulate ios --target="iPhone-6s"
结果是:
No available runtimes could be found for "iPhone 6s".
[ERROR] An error occurred while running cordova emulate ios --target iPhone-6s (exit code 1)
在没有目标的情况下运行模拟器时,同样的问题是,我使用了以下版本:
Node
在我更新到macOS 10.13.4和Xcode9.3 (9E145)之前,我的Cordova iOS构建在命令行界面上一直运行得很好。现在,每当我使用
cordova run ios
模拟器将启动,但我的应用程序未安装或运行,并显示以下消息:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provi
我有一个Cordova iOS应用程序,它在onDeviceReady()事件处理程序中调用window.openDatabase()。onDeviceReady()事件处理程序的执行似乎在该行停止,因为该行下的console.log()永远不会出现在Xcode的调试控制台中。任何其他错误消息也不存在。
同样的代码在安卓设备和Chrome/Ripple模拟器上运行良好。怎么啦?
var db = null;
// PhoneGap is ready
function onDeviceReady() {
console.log("onDeviceReady");
无法让cordova emulate ios打开模拟器并运行我的应用程序。
我继续得到相同的错误:
No target specified for emulator. Deploying to iPhone-X, 12.1 simulator
/Users/osx/Code/react-cordova/platforms/ios/build/emulator/CreateReactAppAndCordova.app/Info.plist file not found.
尽管如此,我打开了XCode并在XCode中构建以查看应用程序。我错过了一步吗?
我从这个基础回购开始:
我正在浏览一个Cordova应用程序的初学者系列。我安装了XCode并创建了一个新的Cordova项目。尽管如此,当我运行cordova emulate ios时,我会得到以下错误:
No target specified for emulator. Deploying to iPhone-X, 12.1 simulator
/Users/osx/Code/cordova-poc/platforms/ios/build/emulator/HelloCordova.app/Info.plist file not found.
如果我运行cordova build ios并在XCode中运行代码,
在大量搜索之后,当我运行时,我无法解决这个错误:
ionc cordova run android -ls
产出:
ANDROID_HOME=/Users/lucianokrebs/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home
No target specified and no devices found, deploying to emulator
No emulator specified, defaulting to Nexus
将我的Xcode从10.1更新到10.2之后,我在ios模拟器上模拟这个应用程序时遇到了问题。
在我运行$ ionic cordova emulate ios -l之后,我得到了这样的结果:
BUILD SUCCEEDED
[cordova]
[cordova] No target specified for emulator. Deploying to undefined simulator
[cordova] Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be foun
我正在使用cordova(phonegap)和angularJS框架在Xcode中创建一个非本地iOS应用程序。
我使用以下方法来区分不同方向的css属性:
@media all and (orientation:portrait) { }
和
@media all and (orientation:landscape) { }
在纵向模式下的Xcode模拟器中,当一个文本字段被点击时,屏幕上的键盘就会弹出。当发生这种情况时,它切换到景观模式的css,同时仍然保持纵向方向。显然,这会破坏所有的格式。
希望能提出任何建议来解释为什么会发生这种情况。提前谢谢。
我正在尝试建立一个facebook登录的Phonegap应用程序。使用Phonegap3.0,使用iOs的xCode进行开发。
我在上执行了所有步骤
在模拟器中启动应用程序后,我的输出中不断出现以下错误:
ERROR: Plugin 'org.apache.cordova.facebook.Connect' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
我的config.xml:
<feature name="Notification">