VS2013 Cordova iOS Remotebuild错误无法POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug [英] VS2013 Cordova iOS Remotebuild Error Cannot POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug

查看:345
本文介绍了VS2013 Cordova iOS Remotebuild错误无法POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是这里的新会员,希望我能以正确的方式问我的问题。我想我的问题是一样的:

I am a new member here and hope that I'm asking my question the right way. I think my question is identical to the one posted at:

Visual Studio 2013 Cordova RemoteBuild失败(无法POST /build/tasks?command=build&vcordova=4.3.1&)

我使用Visual Studio 2013 Update 5与TACO尝试移植一个JavaScript应用程序到iOS。为了确保我的设置是正确的,我从一个Hello WorldBlankCordovaApp模板开始。我在我的Mac mini上运行remotebuild --secure false。我已经配置VS工具 - >选项 - >工具为Apache Cordova - >远程代理配置指向我的Mac迷你主机/端口。当我在VS中构建cordova模板,我得到以下:

I'm using Visual Studio 2013 Update 5 with TACO to try to port a JavaScript app to iOS. To make sure my setup is correct, I'm starting with a "Hello World" BlankCordovaApp template. I have run remotebuild --secure false on my Mac mini. I have configured VS Tools -> Options -> Tools for Apache Cordova -> Remote Agent Configuration to point at my Mac mini Host / Port. When I build the cordova template in VS, I get the following:

1>Done executing task "RemoveDir". (TaskId:20)
1>Done building target "MDACleanAfterInstall" in project "BlankCordovaApp1.jsproj".: (TargetId:12)
1>Done executing task "CallTarget". (TaskId:10)
1>Task "Error" skipped, due to false condition; ($(MDAInstallErrorCode) != '0' And $(MDAInstallErrorCode) != '-17') was evaluated as (-17 != '0' And -17 != '-17').
1>Done building target "InstallMDATargets" in project "BlankCordovaApp1.jsproj".: (TargetId:11)
1>Done executing task "CallTarget". (TaskId:8)
1>Done building target "EnsureNodeJsRequirementsAreAtCorrectVersion" in project "BlankCordovaApp1.jsproj".: (TargetId:10)
1>Target "BuildMDA: (TargetId:14)" in file "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.MDA.targets" from project "C:\Users\XXX\documents\visual studio 2013\Projects\BlankCordovaApp1\BlankCordovaApp1\BlankCordovaApp1.jsproj" (target "Build" depends on it):
1>Task "Error" skipped, due to false condition; ($(Platform) == 'iOS' AND $(iOSRemoteBuildSecurityPIN) == 'NULL') was evaluated as (iOS == 'iOS' AND  == 'NULL').
1>Task "CreateBuildInfoMetadata" skipped, due to false condition; ( '$(Platform)' == 'android' ) was evaluated as ( 'iOS' == 'android' ).
1>Task "CreateBuildInfoMetadata" skipped, due to false condition; ( '@(BuildMDACpuSpecificPlatform)' != '' ) was evaluated as ( '' != '' ).
1>Task "ExportRemoteIosCertificates" skipped, due to false condition; ($(Platform) == 'iOS' AND $(iOSRemoteBuildSecurityPIN) != '') was evaluated as (iOS == 'iOS' AND  != '').
1>Task "MdaVsCli" skipped, due to false condition; ( '@(BuildMDACpuSpecificPlatform)' != '' ) was evaluated as ( '' != '' ).
1>Using "MdaVsCli" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CordovaTools\vs-mda-targets\Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.dll".
1>Task "MdaVsCli" (TaskId:21)
1>  Task Parameter:NpmInstallDir=C:\Users\XXX\AppData\Roaming\npm (TaskId:21)
1>  Task Parameter:Platform=iOS (TaskId:21)
1>  Task Parameter:ProjectDir=. (TaskId:21)
1>  Task Parameter:Configuration=Debug (TaskId:21)
1>  Task Parameter:ProjectName=BlankCordovaApp1 (TaskId:21)
1>  Task Parameter:Language=en-US (TaskId:21)
1>  Task Parameter:BuildServerUrl=http://192.168.0.10:3000 (TaskId:21)
1>  Task Parameter:BuildTarget=iOSEmulatoriPhone5 (TaskId:21)
1>   (TaskId:21)

,然后

1>  ------ Submitting new build request to: http://192.168.0.10:3000/build/tasks?command=build&vcordova=4.3.1&cfg=debug (TaskId:21)
1>MDAVSCLI : error : Cannot POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug
1>Done executing task "MdaVsCli" -- FAILED. (TaskId:21)
1>Done building target "BuildMDA" in project "BlankCordovaApp1.jsproj" -- FAILED.: (TargetId:14)

我在Mac mini终端输出中看到的是

What I see in my Mac mini terminal output is

POST / build / tasks?command = build& vcordova = 4.3.1& cfg = debug 404 118.747 ms - 72

POST /build/tasks?command=build&vcordova=4.3.1&cfg= debug 404 118.747 ms - 72

我第一次尝试此操作,但未能找到解决方案这里和微软董事会,我希望有人已经看到这个,可以帮助。先谢谢。

I'm trying this for the first time and after failing to find a solution here and on the Microsoft boards, I'm hoping someone has seen this before and can help. Thank you in advance.

更新:鉴于VS是提交新的构建请求我暂时断定问题不是在VS构建端,而是在Mac模拟器端。我怀疑我的Mac迷你remotebuild代理拒绝接受VS的构建,并且我的终端输出 404 代码是一个连接错误。

Update: Given that VS is "submitting a new build request" I am tentatively concluding that the problem is not on the VS build side but on the Mac simulator side. I suspect that my Mac mini remotebuild agent is refusing to accept the build from VS and that my terminal output 404 code is a connection error. Could this be a node.js or npm issue on the Mac?

推荐答案

我通过下载Visual Studio 2015解决了我的问题,并建立了在VS2015中的BlankCordovaApp。

I solved my problem by downloading Visual Studio 2015 and building the BlankCordovaApp in VS2015.

这篇关于VS2013 Cordova iOS Remotebuild错误无法POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆