Apache Cordova/Visual Studio 2015 工具无法在 IOS 模拟器中启动应用程序 [英] Apache Cordova/Visual Studio 2015 tools fails to launch app in IOS simulator
问题描述
我正在尝试从 vs2015
在 Mac
上部署一个简单的新创建的 Cordova
应用程序似乎该项目已成功构建但我是在 Visual Studio 中出现以下错误,并且模拟器上没有安装或运行任何应用程序.
I am trying to deploy a simple newly created Cordova
app on Mac
from vs2015
it seems that the project is build successfully but I am getting the following error in visual studio and no app is installing or running on simulator.
开始启动进程 C:Program Files (x86) odejs ode.exe "C:UsersRezaRAppDataRoaming pm ode_modulesvs-tacemulator.js"--platform ios --action launch --path "c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json"--serverUrl http://RezaMac:3015/cordova --language en-US --loglevel 警告 --cliVersion 5.4.1 --npmInstallDir "C:UsersRezaRAppDataRoaming pm" --deployTarget "iPhone 5S" 将调试器连接到远程 Apache Cordova 应用程序超时.请参阅 JavaScript 控制台输出的输出窗口.
Starting launch process C:Program Files (x86) odejs ode.exe "C:UsersRezaRAppDataRoaming pm ode_modulesvs-tacemulator.js" --platform ios --action launch --path "c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json" --serverUrl http://RezaMac:3015/cordova --language en-US --loglevel warn --cliVersion 5.4.1 --npmInstallDir "C:UsersRezaRAppDataRoaming pm" --deployTarget "iPhone 5S" Timed out connecting debugger to remote Apache Cordova app. See Output window for JavaScript console output.
------ Cordova 工具 5.4.1 已经安装.请求在 iOS 模拟器上模拟服务器 http://RezaMac:3015/cordova 上的 buildNumber 1462... 失败启动 iOS 远程构建 c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json 到 http://RezaMac:3015/cordova 用于部署目标 iPhone 5S:Http 404: {"command":"build","vcordova":"5.4.1","cfg":"debug","loglevel":"warn","status":"Error","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"en-US","buildDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462","buildNumber":1462,"options":"","logLevel":0,"submissionTime":"2016-03-12T21:30:32.929Z","changeList":{"deletedFiles":[]},"buildSuccessful":true,"messageId":"EmulateFailedTimeout","messageArgs":[null],"message":"错误:启动 iOS 模拟器超时.","tgzFilePath":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/upload_1462.tgz","appDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/cordovaApp","statusTime":"2016-03-12T21:32:17.020Z","appName":"BlankCordovaApp2"}
------ Cordova tools 5.4.1 already installed. Requesting emulate on iOS Simulator for buildNumber 1462 on server http://RezaMac:3015/cordova... Failed to launch iOS remote for build c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json to http://RezaMac:3015/cordova for deploy target iPhone 5S: Http 404: {"command":"build","vcordova":"5.4.1","cfg":"debug","loglevel":"warn","status":"Error","buildCommand":"build","buildPlatform":"ios","configuration":"debug","buildLang":"en-US","buildDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462","buildNumber":1462,"options":"","logLevel":0,"submissionTime":"2016-03-12T21:30:32.929Z","changeList":{"deletedFiles":[]},"buildSuccessful":true,"messageId":"EmulateFailedTimeout","messageArgs":[null],"message":"Error: timed out launching iOS simulator.","tgzFilePath":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/upload_1462.tgz","appDir":"/Users/RezaRa/.taco_home/remote-builds/taco-remote/builds/1462/cordovaApp","statusTime":"2016-03-12T21:32:17.020Z","appName":"BlankCordovaApp2"}
------ Cordova 工具 5.4.1 已经安装.请求在远程 iOS 设备上对服务器 http://RezaMac:3015/cordova 上的 buildNumber 1462 进行调试...失败调试 iOS 远程构建 c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json 到 http://RezaMac:3015/cordova:iPhone 5S
------ Cordova tools 5.4.1 already installed. Requesting debug on remote iOS device for buildNumber 1462 on server http://RezaMac:3015/cordova... Failed to Debug iOS remote for build c:users ezardocumentsvisual studio 2015ProjectsBlankCordovaApp2BlankCordovaApp2ldiosDebuguildInfo.json to http://RezaMac:3015/cordova : iPhone 5S
然后我尝试了下面这个 post
Then I tried below as mentioned in this post
在 Mac 上,转到 ~/.taco_home/node_modules/taco-remote-lib/
并运行 npm uninstall ios-sim
&&npm install ios-sim@5.0.4
On the mac, go to ~/.taco_home/node_modules/taco-remote-lib/<VERSION>/node_modules/taco-remote-lib/
and run npm uninstall ios-sim
&& npm install ios-sim@5.0.4
但没有机会
在窗户上:
- Vs2015 更新 1
- 科尔多瓦 5.4.1
在 Mac 上
- 优胜美地
- Xcode 7.2.1
- 模拟器 9.2
- 科尔多瓦 5.4.1
- 节点 5.7.1
推荐答案
我已经找到了问题和解决方案,以防其他人遇到同样的问题:
I have found the problem and solution, in case of somebody else has the same problem:
- 首先在
macos
terminal
中运行 - 在
Text Editor
中从上一步的路径打开RemoteBuild.config
文件 - 将
appLaunchStepTimout
的值更改为 60000(1 分钟) - 将
emulatorLaunchTimeout
的值更改为 60000(1 分钟) - 保存文件
- 在终端上运行
remotebuild
- 再次从
Visual Studio
运行项目
remotebuild saveconfig
- first run
remotebuild saveconfig
inmacos
terminal
- Open the
RemoteBuild.config
file in theText Editor
from the path of the previous step - Change value of
appLaunchStepTimout
to 60000 (1 min) - Change value of
emulatorLaunchTimeout
to 60000 (1 min) - Save the file
- run
remotebuild
on terminal - Run the project from
Visual studio
again
这篇关于Apache Cordova/Visual Studio 2015 工具无法在 IOS 模拟器中启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!