Visual Studio 2015停止部署Cordova应用程序 [英] Visual Studio 2015 hangs on deploying cordova application

查看:67
本文介绍了Visual Studio 2015停止部署Cordova应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Visual Studio 2015 Enterprise版在我的iPad Air 2中构建一个空白的cordova应用程序,因为我已经成功完成了候选发布版。

I'm trying to build a blank cordova application into my iPad Air 2 with Visual Studio 2015 Enterprise edition as i've already done it with success with the release candidate version.

自版本5.2.0无限期挂起构建以来,两台计算机上均已安装node.js v 4.2.2,我还获得了iTunes(12.3.1)和iOS 9.2的最新版本。

I've got node.js v 4.2.2 on both machines since version 5.2.0 was hanging the build indefinitely, i've also got latest version of iTunes (12.3.1) as well as iOS 9.2 on the mobile device.

我已经设置了远程MAC,并且对于建筑物部分来说一切正常,事实上我已经检查过了,.ipa文件位于将构建的末尾放入文件夹 ... \Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug 和如果我启动,它将正确安装到iTunes和iPad本身。

I've got the remote MAC set up and everything works fine for the building part, infact i've checked and the .ipa file is there at the end of the build into the folder ...\Documents\Visual Studio 2015\Projects\BlankCordovaApp1\BlankCordovaApp1\bin\iOS\Debug and if i launch that it will correctly install into iTunes and the iPad itself.

问题是iPad的配置为 iOS和本地设备的生成操作写入此l后复制回说 .ipa 文件后,连接到Windows 7 PC的设备将无限期挂起进入构建输出:

The problem is that the build action with Configuration "iOS" and "Local Device" with the iPad connected to the windows 7 PC will hang indefinitely after copying back said .ipa file after writing this line into the Build Output:

2>------ Deploy started: Project: BlankCordovaApp1, Configuration: Debug iOS ------

无论我等待多少时间,即使我没有启动调试会话将PC授权到iPad上,并将我的Web检查器打开到safari选项中。在这一点上,我必须中断构建才能再次工作。

No matter how much time i wait it wont start the debug session even if i authorized the pc onto the iPad and have my web Inspector turned on onto the safari options. At this point i have to interrupt the build to be able to work again.

真正让我明白的是,如果我将iPad连接到MAC机并使用远程设备选项,该版本运行良好,我可以从Windows pc进行远程调试,但是不幸的是,由于Apple机器不在我的开发机器所在的房间中,因此这不是一个选择。

What really gets me is that if i connect the iPad to the MAC machine and build with "Remote Device" option the build works fine and i can debug remotely from my windows pc, unfortunately working like that isn't an option since the Apple machine isn't in the same room of my developing machine.

对这个问题的任何见解都会非常感谢,谢谢。

Any insight about this issue would be really appreciate, thanks in advance.

推荐答案

您正在使用

具体来说,您需要使用Cordova 5.3.3才能使用Node。 js 4.x.x +。您遇到的问题就是原因。与下游节点模块和Node 4.x.x不兼容。您可以降级为节点0.12.x 或将Cordova项目升级到5.3.3。

Specifically, you need to use Cordova 5.3.3 to be able to use Node.js 4.x.x+. The hang you are experiencing is exactly why. It's an incompatibility with a down stream node module and Node 4.x.x. You can downgrade to Node 0.12.x or upgrade your Cordova project to 5.3.3.

http: //cordova.apache.org/news/2015/09/22/tools-release.html

请注意,仅在以下版本中支持Node 5.xx科尔多瓦5.4.1。

Note that Node 5.x.x is only supported in Cordova 5.4.1.

这篇关于Visual Studio 2015停止部署Cordova应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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