我正在尝试使用新的VS 2015 cordova插件构建一个IOS应用程序。我已经按照MSDN上的说明在我的Mac上安装Remote build,这似乎没问题。
然而,当我试图在我的电脑上从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 - -
现在从观察中,VS构建窗口显示MAC终端窗口显示"使用currentBuild完成时失败的错误消息。检查队列中的下一个构建。"
我是MAC和IOS的新手,所以我不知道从哪里开始解决这个问题。以前有没有人遇到这种问题?
提前多多感谢
答案 0 :(得分:0)
你如何在mac端运行remotebuild?你有 - 安全真假吗?
你可以从visual studio发布你的cordova设置吗?
它引用的错误文件中有什么内容吗?
您使用的是什么版本的xcode? p>
答案 1 :(得分:0)
有些时候在VS中进行远程构建时,您会看到错误或警告但实际上并不重要。 您可以忽略它并在mac_user_name / remote_builds
中打开您的xcode项目另外检查插件是否与ios平台匹配。