【问题标题】:VS 2015 Cordova RemoteBuild on Mac FailedMac 上的 VS 2015 Cordova RemoteBuild 失败
【发布时间】:2015-08-30 17:10:33
【问题描述】:

我正在尝试使用新的 VS 2015 cordova 插件构建一个 IOS 应用程序。我已按照 MSDN 上的说明在我的 Mac 上安装 Remote build,这似乎可以正常工作。

但是,当我尝试在我的 PC 上从 VS 2015 构建一个 cordova 应用程序时,我遇到了错误,这并没有给我太多信息

这些是我从 VS 收到的错误消息:

Error   /Users/[user]/.taco_home/remote-builds/taco-remote/builds/487/cordovaApp/platforms/ios/cordova/build    Command failed with exit code 2: {1}    D:\[path]\myproject\Error   1

VS 中的任务运行器输出:

> cmd.exe /c gulp -b "[project path]" --color --gulpfile "[path]\Gulpfile.js" index

[16:11:19] Starting 'copy-html'...

[16:11:19] Finished 'copy-html' after 4.28 ms

[16:11:21] Using gulpfile 
[path]Gulpfile.js

[16:11:21] Starting 'index'...

[16:11:21] Finished 'index' after 9.22 ms

Process terminated with code 0.

这就是我从我的 Mac 得到的:

New build request submitted:
/build/tasks?command=build&vcordova=5.1.1&cfg=debug&options=--device&loglevel=warn
{ 'accept-language': 'en-US',
  host: '[host]:3000',
  connection: 'close',
  'transfer-encoding': 'chunked' }

Build will be executed under: /Users/[user]/.taco_home/remote-builds/taco-remote/builds/517

Saving build request payload to : /Users/[user]/.taco_home/remote-builds/taco-remote/builds/517

Saved upload to /Users/[user]/.taco_home/remote-builds/taco-remote/builds/517/upload_517.tgz

POST /cordova/build/tasks?command=build&vcordova=5.1.1&cfg=debug&options=--device&loglevel=warn 202 10663.718 ms - 664

GET /cordova/build/tasks/517 200 0.723 ms - 664

GET /cordova/build/tasks/517 200 2.269 ms - 664

GET /cordova/build/tasks/517 200 1.114 ms - 664

Extracted app contents from uploaded build request to /Users/[user]/.taco_home/remote-builds/taco-remote/builds/517/cordovaApp. Requesting build.

Taking 517 as current build

GET /cordova/build/tasks/517 200 1.320 ms - 11505

GET /cordova/build/tasks/517 200 0.969 ms - 11512

Done with currentBuild. Checking for next build in queue.

GET /cordova/build/tasks/517 200 0.914 ms - 11770

GET /cordova/build/tasks/517/log 200 2.129 ms - -

现在从观察来看,当 MAC 终端窗口显示“Done with currentBuild. Checking for next build in queue”时,VS 构建窗口会显示失败的错误消息。

我是 MAC 和 IOS 的新手,所以我不知道从哪里开始解决这个问题。以前有人遇到过这种问题吗?

非常感谢

【问题讨论】:

    标签: ios macos cordova visual-studio-2015


    【解决方案1】:

    你是如何在 mac 端运行 remotebuild 的?即你有 --secure true 还是 false?

    您可以从 Visual Studio 发布您的 Cordova 设置吗?

    它引用的那个错误文件中有什么东西吗?

    你使用的是什么版本的 xcode?​​p>

    【讨论】:

    • 安全是真的,我不能把它设置为假,因为它会提示错误。
    • 您是否设置了两端的安全设置?在 Visual Studio 中的科尔多瓦设置以及 remotebuild --secure false 中?这可能不是问题,但我记得我自己也遇到过问题,所以在没有它的情况下首先让它工作可能是值得的。 d:\wherever\myproject\error 是否有错误文件?
    【解决方案2】:

    有时在 VS 中进行远程构建时,您会看到错误或警告,但实际上并没有那么重要。 您可以忽略它并在 mac_user_name/remote_builds 中打开您的 xcode 项目

    另外检查插件是否与 ios 平台匹配。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-06
      • 1970-01-01
      • 2017-02-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-27
      相关资源
      最近更新 更多