VS2013 Cordova iOS Remotebuild错误无法POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug
我在这里是一个新成员,希望我以正确的方式问我的问题。 我认为我的问题与以下url上的问题相同:
Visual Studio 2013 Cordova RemoteBuild失败(无法POST /build/tasks?command=build&vcordova=4.3.1&)
我正在使用Visual Studio 2013 Update 5和TACO来尝试将JavaScript应用程序移植到iOS。 为了确保我的设置是正确的,我开始使用“Hello World”BlankCordovaApp模板。 我在我的Mac mini上运行remotebuild –secure false。 我configuration了VS Tools – > Options – > Tools for Cordova – > Remote Agent Configuration,指向我的Mac mini主机/端口。 当我在VS中build立cordova模板时,我得到以下结果:
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 miniterminal输出中看到的是
POST /build/tasks?command=build&vcordova=4.3.1&cfg=debug 404 118.747 ms – 72
我第一次尝试这个,在没有在这里和微软的主板上find一个解决scheme之后,我希望有人看到这个,可以帮忙。 先谢谢你。
更新:鉴于VS是“提交一个新的build设请求”,我暂时认为这个问题不是在VS的构build方面,而是在Mac模拟器方面。 我怀疑我的Mac mini remotebuild代理拒绝接受来自VS的构build,并且我的terminal输出404代码是连接错误。 这可能是Mac上的node.js或npm问题吗?
我通过下载Visual Studio 2015和在VS2015中构buildBlankCordovaApp来解决我的问题。