我正在使用 Visual Studio 2017 社区版,并且只需使用 vs 文档中的步骤即可使用 macincloud 服务进行远程构建。
我基本上陷入了以下明确的错误:
来自构建服务器的远程构建错误 https://xxxx.macincloud.com:3000/cordova - 构建失败并出现错误 Remotebuild 要求您的项目使用带有 XCode 8.3 的 cordova-ios 4.3.0 或更高版本。请更新您的 cordova-ios 版本。
所以它清楚地告诉我更新cordova-ios,因为它使用低于4.3.0。但是,我似乎无法找到更新它的方法。安装节点后使用 npm 命令行升级cordova的几乎所有文档。命令是:
npm -g install cordova
但是,这给了我一些关于 [email protected] 的警告,并且从不更新任何内容。如果我去visual studio并打开我的config.xml,它清楚地表明它使用的是Cordova Toolset 6.3.1,而cordova-ios是4.2.0。它只是不更新工具集。
我找不到任何引用此错误的 stackoverflow 问题。我已经查看了 vs 扩展更新,但那里什么都没有。我希望有人能帮帮忙。我不可能是唯一一个遇到这个问题的人。
这是我尝试从 cli 更新 cordova 时得到的结果。我首先浏览到项目文件夹,也许那是错误的,但这是我的理解。这是输出:
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Use uuid module instead
(node:8940) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners()
to increase limit
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\cordova -> C:\ProgramData\Microsoft\VisualStudio\M
DA\10a7b933\taco-toolset-6.3.1\node_modules\cordova\bin\cordova
[email protected] C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], configsto
[email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
.1, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], properties-par
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected],
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], cord
[email protected], [email protected], [email protected], [email protected])
cordova -v 给我 6.3.1,不更新。
npm cordova -v 给我 2.15.10
有什么建议吗?
Best Answer-推荐答案 strong>
好的,所以我终于可以更新了。我从消息中注意到它正在使用路径:C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova
所以我去了 Windows 资源管理器并手动删除了这个文件夹。然后我再次安装了cordova,它终于奏效了! taco-toolset 有点不对劲。
关于ios - 使用 cordova 工具集构建应用程序时出错,我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/44775385/
|