VS2017中的Apache Cordova工具 - 使用带有Macincloud的remotebuild,操作已经超时

时间:2017-04-11 19:28:31

标签: visual-studio-cordova cordova-ios

在我的Win10机器上安装VS2017后,我创建了一个空白的cordova项目。我设置了一台MacInCloud托管服务器,并根据Docs配置了主机和证书。我在VS中用主机和PIN填写了远程代理配置,所有这些都可以正常工作。
我选择iOS作为平台和#34;模拟器 - iPhone5"推动游戏。

构建从以下输出开始:

-----------------------------------------------------------------------------
Sending the build to the remote build server
-----------------------------------------------------------------------------
------ Incremental Build: False
------ Submitting new build request to: https://SE529.macincloud.com:3000/cordova/build/tasks?command=build&vcordova=6.3.1&cfg=debug

并且remotebuild终端看起来正在听取请求并输出:

New build request submitted:
/build/tasks?command=build&vcordova=6.3.1&cfg=debug
{"content-type":"multipart/form-data;","host":"se529.macincloud.com:3000","content-length":"69009422","expect":"100-continue","connection":"Keep-Alive"}
Build will be executed under: /Users/user905423/.taco_home/remote-builds/taco-remote/builds/47678
Saving build request payload to : /Users/user905423/.taco_home/remote-builds/taco-remote/builds/47678

然而,它只是在那里坐了大约90秒,最后VS输出窗口打印出来:

1>MSBUILD : cordova-build error : An error occurred uploading to the build server https://SE529.macincloud.com:3000/cordova/build/tasks?command=build&vcordova=6.3.1&cfg=debug: The operation has timed out
------ 04/11/2017 13:45:07 Checking on build status from  [Attempt 1]
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018: The "VsTac" task failed unexpectedly.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018: System.ArgumentNullException: Value cannot be null.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018: Parameter name: requestUriString
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at System.Net.WebRequest.Create(String requestUriString)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.RemoteBuild.CreateWebRequest(String url)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.RemoteBuild.PollForBuildComplete(String buildingUrl, Int32 interval, Int32 attempts)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.RemoteBuild.Build()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.VsTac.BuildPlatform()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.VisualStudio.MultiDeviceHybridApps.MdaBuildTasks.VsTac.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets(256,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()
1>Done building project "HSS.CordovaApp.jsproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

然后Mac上的remotebuild终端窗口显示:

POST /cordova/build/tasks?command=build&vcordova=6.3.1&cfg=debug - - ms - -

我尝试谷歌解决问题后发现,最近对remotebuild代理的更新增加了侦听器的超时时间,并且我已确认在我的托管Mac实例上安装的remotebuild版本具有该更新。
我已经确认上传至少已经开始,我可以看到文件〜/ .taco_home / remote-builds / taco-remote / builds / 47678 / upload_47678.tgz&#34;。它几乎感觉上传完成但VS没有收到来自remoteBuild代理的回复信息?
也许在MacInCloud上为Cordova iOS版本使用remoteBuild需要特殊步骤?任何建议或建议将不胜感激。

1 个答案:

答案 0 :(得分:0)

我通过将mac内的remotebuild.config中的timeout参数扩展到600000来解决操作超时问题。请尝试相同的