node.js - VS2015 RTM 无法使用 remotebuild 在 iOS 上构建 Cordova 应用程序

标签 node.js cordova visual-studio-2015

我使用 Visual Studio 2015 RC 构建了一个 Apache Cordova 应用程序。在 Mac 上,我安装了 vs-mda-remote 来构建 iOS 应用程序。一切都很好,直到我今天升级到正式版本。

vs-mda-remote 不再工作并且 from the documenation我知道他们现在称之为 remotebuild .所以我清理了 NPM 并根据文档安装了工具,但我遇到了这些错误。

当我尝试从 Visual Studio 构建我的项目时,我收到此错误消息:

0:error:0B07C065:x509 证书例程:X509_STORE_add_cert:cert already in hash table:openssl\crypto\x509\x509_lu.c:346:

如果我将源代码复制到 Mac 并从那里构建它,它工作正常。

有什么想法吗?

最佳答案

首先,我通过在 OS X 和 Visual Studio 中的“工具”->“选项”->“Apache Cordova 工具”->“远程代理配置”下执行“remotebuild --secure false”来禁用安全性,将“安全模式”切换为 false。 我这样做是为了确保没有其他错误,然后我遇到了另一个问题:

Windows 10; Visual Studio 2015 社区:

cannot POST //build/tasks?command=build&vcordova

OS X 终端:

comnmand: remotebuild --secure false

remotebuild Copyright (C) 2014 Microsoft Corporation. All rights reserved. 1.0.0

Warning: No server modules selected. Defaulting to configuration "modules": {"taco-remote": { "mountPath": "cordova"} } Build Retention initialized with baseBuildDir /Users/butti/.taco_home/remote-builds/taco-remote/builds, maxBuildsToKeep 20 Initialized BuildManager with baseBuildDir /Users/butti/.taco_home/remote-builds/taco-remote/builds; maxBuildsInQueue 10; deleteBuildsOnShutdown true; allowsEmulate true; nextBuildNumber 1751 Remote build server listening on [http] port 3000 POST //build/tasks?command=build&vcordova=4.3.1&cfg=debug&loglevel=warn 404 5975.363 ms - 91

我在以下方面找到了帮助 website这对我的情况有帮助:

...

iOS 模拟器在使用 remotebuild 代理和 VS 2015 RTM 时不工作:您需要安装 ios-sim Node 模块的 3.1.1 版。从 OSX 中的终端应用程序运行“npm install -g ios-sim@3.1.1”进行安装。

...

Visual Studio 中现有的 vs-mda-remote 设置不适用于 remotebuild 代理:在设置 Visual Studio 以首次连接到 remotebuild 代理时,您需要生成并使用新的 PIN。如果您没有使用安全模式,请打开安全模式然后再次关闭以使 VS 重新初始化。

...

特别是 “...打开安全模式然后再次关闭...” 部分可以解决问题!

也许你必须在 OS X 终端上创建一个新的证书:

remotebuild resetServerCerts --hostname=my.external.hostname.com
remotebuild generateClientCert --hostname=my.external.hostname.com

来自 Microsoft 网站(为 Apache Cordova 安装 Visual Studio 工具):

...regenerate certificates that will work with the given hostname. If you intend to configure the remote agent in Visual Studio using the host name, ping the Mac using the host name to verify that it is reachable. Otherwise, you may need to use the IP address instead.

希望对您有所帮助!

关于node.js - VS2015 RTM 无法使用 remotebuild 在 iOS 上构建 Cordova 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31566694/

相关文章:

javascript - google-trends-api npm 找不到使用 browserify 的模块

ios - 为什么iOS 13.x 13.4以下的版本还在使用TLS 1.0/1.1,如何强制使用TLS 1.2及以上?

asp.net-mvc - VS2015 ASP.NET MVC 当前上下文中不存在名称 'model'

.net - 在 Visual Studio Tools for Git 上提交更改真的很慢

node.js - 如何从 gulp 调用执行 PowerShell 脚本?

javascript - node.js 来自服务器的空回复

javascript - 为什么我无法将文件推送到数组中?

javascript - 在 Angular 5 中设置 header

ios - 如何从使用 native 日志记录 API 编写的设备中检索工作灯日志?

android - 仅以大写字母显示的 Cordova/android 应用程序