Apache Cordova / Visual Studio 2015工具无法在IOS模拟器中启动应用程序 [英] Apache Cordova/Visual Studio 2015 tools fails to launch app in IOS simulator

查看:447
本文介绍了Apache Cordova / Visual Studio 2015工具无法在IOS模拟器中启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从 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.exeC:\Users\RezaR\AppData\Roaming\\\
pm\\\
ode_modules\ vs-tac \emulator.js
--platform ios --action launch --pathc:\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 --npmInstallDirC:\Users\RezaR\AppData\Roaming\\\
pm--deployTargetiPhone 5S 超时连接调试器到远程Apache Cordova应用程序。请参阅JavaScript控制台输出的输出窗口。

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工具5.4.1已安装。
请求在iOS模拟器上针对buildNumber 1462在服务器上 http:// RezaMac:3015 / cordova 进行模拟。 。无法启动iOS遥控器构建c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json至 http:// RezaMac:3015 / cordova :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- /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\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已安装。
在远程iOS设备上请求在服务器上 http:// RezaMac:3015 / cordova 上的buildNumber 1462调试。 ..无法调试iOS远程构建c:\users\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json to < a href =http:// RezaMac:3015 / cordova =nofollow> 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\rezar\documents\visual studio 2015\Projects\BlankCordovaApp2\BlankCordovaApp2\bld\ios\Debug\buildInfo.json to http://RezaMac:3015/cordova : iPhone 5S

然后我尝试下面的

Then I tried below as mentioned in this 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

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

但没有机会

在Windows上:


  • 1

  • Cordova 5.4.1

Mac


  • Yosemit

  • Xcode 7.2.1

  • 模拟器9.2

  • Cordova 5.4.1

  • 节点5.7.1

  • Yosemit
  • Xcode 7.2.1
  • Simulator 9.2
  • Cordova 5.4.1
  • Node 5.7.1

推荐答案

我发现问题和解决方案,如果有人有同样的问题:

I have found the problem and solution, in case of somebody else has the same problem:


  • 首先运行 li>在文本编辑器中从之前步骤的路径中打开 RemoteBuild.config 文件

  • appLaunchStepTimout 的值更改为60000(1分钟)

  • 更改的值emulatorLaunchTimeout 到60000(1分钟)

  • 保存文件

  • 运行 remotebuild 在终端上

  • 再次从 Visual studio 运行项目

  • first run remotebuild saveconfig in macos terminal
  • Open the RemoteBuild.config file in the Text 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屋!

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