【问题标题】:Difficulties with Cordova-IOS remotebuild in Visual Studio 2017Visual Studio 2017 中 Cordova-IOS remotebuild 的困难
【发布时间】:2018-03-23 12:23:15
【问题描述】:

我在使用 Visual Studio 2017 在 Cordova IOS 上运行远程构建时遇到问题。

问题背景

最初,在尝试远程构建时,我遇到了以下错误:

构建失败并出现错误 Remotebuild 需要您的项目使用 带有 XCode 8.3 的 cordova-ios 4.3.0 或更高版本

当时,我的 config.xml 是这样的:

Config.xml

看起来更新到最新补丁实际上并没有什么作用(卡在 4.4.2 上),所以最后经过大量挖掘,我遵循了这里的建议:VsTac task failed, could not find file appAsTgz.tgz when using global Cordova toolset

我按照 Mac 和 Windows 的步骤进行操作。唯一的区别是我使用remotebuild –secure false而不是设置mac权限。 在 Visual Studio 中,我的 config.xml 现在看起来像这样:

Current config.xml

当前问题

当我现在尝试远程构建时,我收到以下错误:

来自构建服务器的远程构建错误 - 构建 失败并出现错误无法读取未定义的属性“失败”

很遗憾,这个错误非常模糊,我在上面找不到任何东西。

终端上的输出是:

WebDev-MacBook-Pro:~ XXXX$ remotebuild --secure false
Remote build server listening on [http] port XXXX
Please view/edit server configuration at /Users/XXXX/.taco_home/RemoteBuild.config. You many need to run 'remotebuild saveconfig' to generate it. You will have to restart the server if you update the server configurations.
New build request submitted:
/build/tasks?command=build&vcordova=8.0.0&cfg=debug&options=--device
{"content-type":"multipart/form-data;","host":"XXXX","content-length":"11632595","expect":"100-continue","connection":"Keep-Alive"}

Downloading: taco-remote-multiplexer
npm WARN enoent ENOENT: no such file or directory, open '/Users/XXXX/.taco_home/node_modules/taco-remote-multiplexer/latest/package.json'
npm WARN latest No description
npm WARN latest No repository field.
npm WARN latest No README data
npm WARN latest No license field.

taco-remote-multiplexer downloaded and installed.
Error: Cannot find module '/Users/XXXX/.taco_home/node_modules/taco-remote-multiplexer/latest/node_modules/taco-remote-multiplexer'
Build will be executed under: /Users/XXXX/.taco_home/remote-builds/taco-remote/builds/698
Saving build request payload to : /Users/XXXX/.taco_home/remote-builds/taco-remote/builds/698
Saved uploaded build to /Users/XXXX/.taco_home/remote-builds/taco-remote/builds/698/upload_698.tgz
POST /cordova/build/tasks?command=build&vcordova=8.0.0&cfg=debug&options=--device 202 1595.955 ms - 637
GET /cordova/build/tasks/698 200 2.805 ms - 637
Extracted app contents from uploaded build request to /Users/XXXX/.taco_home/remote-builds/taco-remote/builds/698/cordovaApp. Requesting build.
Taking 698 as current build
Done with current build. Checking for next build in queue.
GET /cordova/build/tasks/698 200 6.100 ms - 787
GET /cordova/build/tasks/698/log 200 2.268 ms - 

我应该指出,我可以看到终端输出窗口中提到的关于我之前构建尝试中的远程多路复用器的错误,如问题背景中所述。

有没有人遇到过这种情况或类似情况?从这里开始,我如何才能在 cordova 4.3 上执行成功的远程构建?

提前致谢

【问题讨论】:

    标签: cordova visual-studio-2017 visual-studio-cordova cordova-ios


    【解决方案1】:

    我在 Microsoft git repo 上发现了类似的问题:

    Problems installing taco-remote-multiplexer

    尝试以下步骤:

    我不确定您遇到的具体错误是什么,但我会 建议去你的mac运行remotebuild,关闭remotebuild, run rm -r ~/.taco_home/node_modules,然后再次启动 remotebuild。 这将清除我们拥有的所有缓存,并希望得到东西 再次工作。如果失败,我们将不得不进一步调查。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-03
      相关资源
      最近更新 更多