2017-04-11 48 views
1

在我的Win10機器上安裝VS2017後,我創建了一個空白的cordova項目。我安裝了MacInCloud託管服務器,並根據Docs配置了主機和證書。我使用主機和PIN在VS中填寫了遠程代理配置,並且似乎都工作正常。
我選擇iOS平臺和「模擬器 - iPhone5」並按下播放。在VS2017中使用Apache Cordova的工具 - 在Macincloud中使用remotebuild給出Operation已超時

構建開始與下面的輸出:

----------------------------------------------------------------------------- 
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 ========== 

然後th E中的Mac上remotebuild終端窗口中顯示了這個:

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

我嘗試谷歌發現問題,最近更新到remotebuild劑,提高了對聽衆的超時,我已證實,在安裝remotebuild的版本我託管的Mac實例有這個更新。
我已經確認上傳至少已經開始,我可以看到文件〜/ .taco_home/remote-builds/taco-remote/builds/47678/upload_47678.tgz。「它幾乎感覺上傳完成,但VS不從remoteBuild代理迴音?
或許有使用remoteBuild上MacInCloud對科爾多瓦的iOS需要建立?任何意見或建議,將不勝感激特殊的步驟。

+0

Bump - 對我來說同樣的問題。你解決了這個問題Andy? – timk

+0

@timk - 我沒有找到適當的解決方案來解決這個問題。我最終試圖創建一個完全空白的科爾多瓦項目,並建立了良好的。我得出的結論是,只需添加Azure Mobile插件並且它的依賴關係使其非常大,以至於無法在90秒內上傳。 我也找不到使用MacInCloud在USB連接的設備上測試應用程序的方法,因此當時我放棄了該服務。 – Andy

回答

0

我通過擴展解決了我的操作超時的問題在mac裏的remotebuild.config裏的timeout參數設置爲600000.請試試看

相關問題