Apache Cordova/Visual Studio 2015 工具无法在 IOS 模拟器中启动应用程序

Apache Cordova/Visual Studio 2015 tools fails to launch app in IOS simulator

我正在尝试从 vs2015Mac 上部署一个简单的新创建的 Cordova 应用程序,似乎该项目已成功构建,但我在 visual studio 并且没有应用正在安装或 运行正在模拟器上运行。

Starting launch process C:\Program Files (x86)\nodejs\node.exe "C:\Users\RezaR\AppData\Roaming\npm\node_modules\vs-tac\emulator.js" --platform ios --action launch --path "c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json" --serverUrl http://RezaMac:3015/cordova --language en-US --loglevel warn --cliVersion 5.4.1 --npmInstallDir "C:\Users\RezaR\AppData\Roaming\npm" --deployTarget "iPhone 5S" Timed out connecting debugger to remote Apache Cordova app. See Output window for JavaScript console output.

------ 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\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.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 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\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json to http://RezaMac:3015/cordova : iPhone 5S

然后我尝试了下面提到的 post

在 mac 上,转到 ~/.taco_home/node_modules/taco-remote-lib/<VERSION>/node_modules/taco-remote-lib/ 和 运行 npm uninstall ios-sim && npm install ios-sim@5.0.4

但没有机会

我的环境:

在 windows:

于 Mac

我已经找到问题和解决方案,以防其他人遇到同样的问题:

  • 第一个 运行 remotebuild saveconfigmacos terminal
  • 从上一步的路径打开Text Editor中的RemoteBuild.config文件
  • appLaunchStepTimout 的值更改为 60000(1 分钟)
  • emulatorLaunchTimeout 的值更改为 60000(1 分钟)
  • 保存文件
  • 运行 remotebuild 在终端上
  • 运行 再次 Visual studio 的项目