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

查看:75
本文介绍了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失败(无法发布/build/tasks?command=build&vcordova=4.3.1&)

我正在将Visual Studio 2013 Update 5与TACO结合使用,以尝试将JavaScript应用程序移植到iOS.为了确保设置正确,我从"Hello World" BlankCordovaApp模板开始.我在Mac mini上运行remotebuild --secure false.我已将VS工具->选项-> Apache Cordova的工具->远程代理配置配置为指向我的Mac mini主机/端口.当我在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=调试 404 118.747毫秒-72

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

我第一次尝试此操作,但在这里和Microsoft板上找不到解决方案后,我希望有人以前见过此事并可以提供帮助.预先谢谢你.

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 mini remotebuild代理拒绝接受来自VS的构建,并且我的终端输出 404 代码是连接错误.这可能是Mac上的node.js或npm问题吗?

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天全站免登陆