构建ios vwith Cordova工具集时出错 [英] Error building ios vwith cordova toolset
问题描述
我正在使用Visual Studio 2017社区版,并且仅使用vs文档中的步骤来使用macincloud服务进行远程构建.
I'm using Visual Studio 2017 community edition, and simply using steps in vs documentation to build remotely using macincloud service.
我基本上会遇到以下明显错误:
I basically get stuck with the following explicit error:
来自构建服务器的远程构建错误 https://xxxx.macincloud.com:3000/cordova -生成失败,并显示错误消息Remotebuild要求您的项目使用带有XCode 8.3的cordova-ios 4.3.0或更高版本.请更新您的cordova-ios版本.
Remote build error from the build server https://xxxx.macincloud.com:3000/cordova - Build failed with error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please update your cordova-ios version.
因此,很明显,这是在告诉我要更新cordova-ios,因为它在4.3.0以下使用.但是,我似乎无法找出一种更新它的方法.安装节点后,几乎所有使用npm命令行升级cordova的文档.命令是:
So it's clearly telling me to update cordova-ios as it's using below 4.3.0. However, I can't seem to figure out a way to update it. Almost all documentation to upgrade cordova using npm command line after installing node. The command is:
npm -g install cordova
但是,这给我一些有关taco-toolset@6.3.1的警告,并且从不更新任何内容.如果我去Visual Studio并打开config.xml,它清楚地表明它正在使用Cordova Toolset 6.3.1,而cordova-ios是4.2.0.它只是不更新工具集.
However, this gives me some warnings about taco-toolset@6.3.1 and never updates anything. If I go to visual studio and open my config.xml, it clearly shows that it's using Cordova Toolset 6.3.1 and cordova-ios is 4.2.0. It's just not updating the toolset.
我找不到任何引用此错误的stackoverflow问题.我查看了vs扩展更新,但没有任何内容.我希望有人能帮帮忙.我不是唯一一个遇到这个问题的人.
I cannot find any stackoverflow question referencing this error. I have looked in to vs extension updates, but there is nothing there. I hope someone can help. I can't be the only one having this issue.
当我尝试从cli更新cordova时,这就是我得到的.我首先浏览到项目文件夹,也许那是错误的,但这是我的理解.这是输出:
Here is what I get when I try to update cordova from cli. I first browse to the project folder, maybe that's wrong, but that's my understanding. Here is the output:
npm WARN package.json taco-toolset@6.3.1 No description
npm WARN package.json taco-toolset@6.3.1 No repository field.
npm WARN package.json taco-toolset@6.3.1 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 node-uuid@1.4.7: Use uuid module instead
npm WARN deprecated node-uuid@1.4.8: 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 minimatch@2.0.10: 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
cordova@6.3.1 C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova
├── underscore@1.7.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.1.0)
├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, string-length@1.0.1, repeating@1.1.3, configsto
re@1.4.0, latest-version@1.0.1)
├── insight@0.8.4 (object-assign@4.1.1, async@1.5.2, uuid@3.1.0, lodash.debounce@3.1.1, tough-cookie@2.3.2, chalk@1.1.3,
os-name@1.0.3, configstore@1.4.0, request@2.81.0, inquirer@0.10.1)
├── cordova-common@1.4.1 (cordova-registry-mapper@1.1.15, unorm@1.4.1, underscore@1.8.3, q@1.5.0, semver@5.3.0, ansi@0.3
.1, osenv@0.1.4, bplist-parser@0.1.1, glob@5.0.15, minimatch@3.0.4, shelljs@0.5.3, elementtree@0.1.7, plist@1.2.0)
└── cordova-lib@6.3.1 (valid-identifier@0.0.1, cordova-registry-mapper@1.1.15, opener@1.4.1, unorm@1.3.3, properties-par
ser@0.2.3, semver@4.3.6, nopt@3.0.6, dep-graph@1.1.0, shelljs@0.3.0, glob@5.0.15, xcode@0.8.9, init-package-json@1.10.1,
elementtree@0.1.6, request@2.47.0, cordova-serve@1.0.1, aliasify@1.9.0, tar@1.0.2, cordova-app-hello-world@3.10.0, cord
ova-fetch@1.0.2, plist@1.2.0, cordova-js@4.1.4, npm@2.15.12)
cordova -v给我6.3.1,不会更新. npm cordova -v给我2.15.10
cordova -v gives me 6.3.1, doesn't update. npm cordova -v gives me 2.15.10
有什么建议吗?
推荐答案
好,所以我终于可以更新了.我从消息中注意到它正在使用以下路径:C:\ ProgramData \ Microsoft \ VisualStudio \ MDA \ 10a7b933 \ taco-toolset-6.3.1 \ node_modules \ cordova
Ok, so I was finally able to update. I noticed from the messages that it was using the path: C:\ProgramData\Microsoft\VisualStudio\MDA\10a7b933\taco-toolset-6.3.1\node_modules\cordova
因此,我转到Windows资源管理器并手动删除了此文件夹.然后,我再次安装了cordova,终于成功了!关于炸玉米饼的工具集有些问题.
So I went to windows explorer and deleted this folder manually. Then I installed cordova again and it finally worked! Something is off about taco-toolset.
这篇关于构建ios vwith Cordova工具集时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!