【发布时间】: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