我是这里的新成员,希望我以正确的方式提出我的问题。我认为我的问题与发布的问题相同:
我正在使用Visual Studio 2013 Update 5和TACO尝试将JavaScript应用程序移植到iOS。为了确保我的设置正确,我开始使用“Hello World”BlankCordovaApp模板。我在Mac mini上运行了remotebuild --secure false。我已经配置了VS Tools - >选项 - >用于Apache Cordova的工具 - >远程代理配置指向我的Mac mini主机/端口。当我在VS中构建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 mini终端输出中看到的是
POST /build/tasks?command=build&vcordova=4.3.1&cfg= debug 404 118.747 ms - 72
我是第一次尝试这个并且在这里和微软板上找不到解决方案之后,我希望有人之前已经看过这个并且可以提供帮助。提前谢谢。
更新:鉴于VS正在“提交新的构建请求”,我暂时得出结论,问题不在VS构建方面,而是在Mac模拟器方面。我怀疑我的Mac mini remotebuild代理拒绝接受来自VS的构建,并且我的终端输出 404 代码是连接错误。这可能是Mac上的node.js或npm问题吗?
答案 0 :(得分:1)
我通过下载Visual Studio 2015并在VS2015中构建BlankCordovaApp解决了我的问题。