xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

MacOS VSTS Agent doesn't build successfully when triggered from Visual Studio Online #4096

Closed krishna0209 closed 6 years ago

krishna0209 commented 6 years ago

One of our VSTS MacOS Agent fails to build through VSO although local build works just fine. I’ve searched online and it seems like the most common cause of this is an XCode/Xamarin update which requires you to manually install some components but I have no such issues on the Mac Agent. I have another Mac that works just fine when triggered from VSO, running on same OS, XCode & Xamarin version.

Steps to Reproduce

  1. Setup Mac as a VSO Agent (follow instructions on Xamarin Docs)
  2. Run a Xamarin project build locally (works)
  3. Trigger a build from VSO of the same project (doesn't work)

Expected Behavior

Successfully being able to build the project

Actual Behavior

Xamarin project fails to build when triggered from VSO

Environment

=== Xamarin Studio Community ===

Version 6.3 (build 864)
Installation UUID: 563fd5d9-c71b-49c0-a98f-b5b2939d957e
Runtime:
Mono 5.10.1.47 (2017-12/8eb8f7d5e74) (64-bit)
GTK+ 2.24.23 (Raleigh theme)

Package version: 510010047

=== NuGet ===

Version: 3.5.0.0

=== Xamarin.Profiler ===

Version: 1.6.2
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Apple Developer Tools ===

Xcode 9.3 (14154)
Build 9E145

=== Xamarin.iOS ===

Version: 11.10.1.177 (Xamarin Studio Community)
Hash: 7e782c1e
Branch: d15-7
Build date: 2018-04-25 15:27:13-0400

=== Xamarin.Mac ===

Version: 4.4.1.176 (Xamarin Studio Community)

=== Xamarin.Android ===

Not Installed

=== Xamarin Inspector ===

Version: 1.4.0
Hash: b3f92f9
Branch: master
Build date: Fri, 19 Jan 2018 22:00:34 GMT
Client compatibility: 1

=== Build Information ===

Release ID: 603000864
Git revision: 6c2f6737278ccc3e81e12276d49c0d92f975f189
Build date: 2017-04-24 11:26:01-04
Xamarin addins: d8d46e577d8507c35260ce9d73df3c33415bb214
Build lane: monodevelop-lion-d15-1

=== Operating System ===

Mac OS X 10.13.4
Darwin DAX-Mac-mini.guest.corp.microsoft.com 17.5.0 Darwin Kernel Version 17.5.0
    Fri Apr 13 19:32:32 PDT 2018
    root:xnu-4570.51.2~1/RELEASE_X86_64 x86_64

Build Logs

2018-05-03T22:00:22.8138300Z Target CopyFilesMarkedCopyLocal: 2018-05-03T22:00:22.8164260Z Copying file from '/Users/user/myagent/_work/3/s/MobileCrm.Data/bin/iPhone/Release/MobileCrm.Data.dll' to '/Users/user/myagent/_work/3/s/MobileCrm.UI/bin/iPhone/Release/MobileCrm.Data.dll' 2018-05-03T22:00:22.8191370Z Copying file from '/Users/user/myagent/_work/3/s/Resco.Data/bin/iPhone/Release/Resco.Data.dll' to '/Users/user/myagent/_work/3/s/MobileCrm.UI/bin/iPhone/Release/Resco.Data.dll' 2018-05-03T22:00:22.8218640Z Copying file from '/Users/user/myagent/_work/3/s/Resco.UI/bin/iPhone/Release/Resco.UI.dll' to '/Users/user/myagent/_work/3/s/MobileCrm.UI/bin/iPhone/Release/Resco.UI.dll' 2018-05-03T22:00:22.8248140Z Copying file from '/Users/user/myagent/_work/3/s/MobileCrm.Data/bin/iPhone/Release/ExchangeWS.dll' to '/Users/user/myagent/_work/3/s/MobileCrm.UI/bin/iPhone/Release/ExchangeWS.dll' 2018-05-03T22:00:22.8273010Z Target GenerateSatelliteAssemblies: 2018-05-03T22:00:22.8297140Z No input files were specified for target GenerateSatelliteAssemblies, skipping. 2018-05-03T22:00:22.8322030Z Target CoreCompile: 2018-05-03T22:00:22.8377570Z Tool /Library/Frameworks/Mono.framework/Versions/5.8.1/lib/mono/4.5/csc.exe execution started with arguments: /noconfig /debug- /optimize+ /out:obj/iPhone/Release/MobileCrm.UI.dll Controllers/ReportController.cs GoogleCodeReceiver.cs Hub/EntityHub.cs Hub/HubComparer.cs Hub/HubItem.cs Hub/StaticTreeItem.cs Hub/TreeItem.cs ListTemplateManager.cs Properties/AssemblyInfo.cs BaseEntityForm.cs Command.cs ControllerFactory.cs DetailViewBuilder.cs EntityDetailForm.cs EntityList.cs EntityListForm.cs FormManager.cs LookupForm.cs MessageBox.cs StopWatch.cs Utils.cs FormController.cs ContactDetailList.cs DynamicEntityForm.cs ListController.cs DynamicEntityList.cs MultiLookupForm.cs EntityChart.cs MapController.cs ViewMode.cs EntityMap.cs Workflow/AssignmentStep.cs Workflow/Branch.cs Workflow/BranchCollection.cs Workflow/ConditionGroup.cs Workflow/ConditionStep.cs Workflow/Engine.cs Workflow/ExecutionContext.cs Workflow/ExpressionStep.cs Workflow/Step.cs Workflow/StepCollection.cs Workflow/Variables.cs Workflow/Workflow.cs Workflow/FunctionStep.cs Workflow/VariableDefinitionStep.cs Workflow/ExternalActions.cs Workflow/PositionStep.cs Workflow/SayTextStep.cs FilterEditor/Condition.cs FilterEditor/ConditionGroup.cs FilterEditor/ConditionOperator.cs FilterEditor/EditConditionForm.cs FilterEditor/EditConditionList.cs FilterEditor/EditFilterForm.cs FilterEditor/EditViewForm.cs FilterEditor/Serialize.cs FilterEditor/ViewListForm.cs Json.cs Workflow/CommandStep.cs Workflow/SharedVariables.cs FavoritesItem.cs Controllers/DetailViewController.cs Controllers/FlipController.cs Controllers/SignatureController.cs Controllers/SimpleMapController.cs Controllers/ViewController.cs Controllers/WallController.cs Controllers/WebController.cs ProcessFlow/Process.cs ProcessFlow/ProcessController.cs DataImageCache.cs Controllers/DocumentController.cs Controllers/ChatterController.cs ChatterForm.cs Hub/HubCommand.cs Duplicate/DuplicateRulesValidator.cs ProcessFlow/BinaryExpressionStep.cs ProcessFlow/ExpressionTypeStep.cs ProcessFlow/MethodCallExpression.cs ProcessFlow/UnaryExpressionStep.cs ProcessFlow/Variables.cs ProcessFlow/WorkflowTranslator.cs AddressBook/ContactHelper.cs AddressBook/ExternalContactForm.cs obj/iPhone/Release/Xamarin.iOS,Version=v1.0.AssemblyAttribute.cs /target:library /define:"IOS;MOBILE;UNIFIED;TRACE;MONOTOUCH" /nostdlib /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.Linq.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Data.dll /reference:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Xml.dll /reference:/Users/user/myagent/_work/3/s/MobileCrm.Data/bin/iPhone/Release//MobileCrm.Data.dll /reference:/Users/user/myagent/_work/3/s/Resco.Data/bin/iPhone/Release//Resco.Data.dll /reference:/Users/user/myagent/_work/3/s/Resco.UI/bin/iPhone/Release//Resco.UI.dll /warn:4 2018-05-03T22:00:22.9595540Z Microsoft (R) Visual C# Compiler version 2.3.2.61928 (ec1cde8b) 2018-05-03T22:00:22.9609060Z Copyright (C) Microsoft Corporation. All rights reserved. 2018-05-03T22:00:24.5924830Z Controllers/WebController.cs(1114,12): warning CS0168: The variable 'o' is declared but never used 2018-05-03T22:00:24.5940800Z BaseEntityForm.cs(1074,32): warning CS0649: Field 'BaseEntityForm.m_SelView' is never assigned to, and will always have its default value null 2018-05-03T22:00:24.9884590Z Target DeployOutputFiles: 2018-05-03T22:00:24.9899150Z Copying file from '/Users/user/myagent/_work/3/s/MobileCrm.UI/obj/iPhone/Release/MobileCrm.UI.dll' to '/Users/user/myagent/_work/3/s/MobileCrm.UI/bin/iPhone/Release/MobileCrm.UI.dll' 2018-05-03T22:00:24.9935300Z Done building project "/Users/user/myagent/_work/3/s/MobileCrm.UI/MobileCrm.UI.iOS.csproj". 2018-05-03T22:00:25.1296980Z Project "/Users/user/myagent/_work/3/s/MobileCrm/MobileCrm.iOS.csproj" (default target(s)): 2018-05-03T22:00:25.1319610Z Target PrepareForBuild: 2018-05-03T22:00:25.1333130Z Configuration: Release Platform: iPhone 2018-05-03T22:00:25.1368150Z Created directory "bin/iPhone/Release/" 2018-05-03T22:00:25.1381790Z Created directory "obj/iPhone/Release/" 2018-05-03T22:00:25.2029640Z Exception: System.Xml.XmlException: Root element is missing. 2018-05-03T22:00:25.2043990Z at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x00027] in <1896cc19925e4a9db1a9086d4d328e07>:0 2018-05-03T22:00:25.2057710Z at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo (System.String res) [0x00017] in <1896cc19925e4a9db1a9086d4d328e07>:0 2018-05-03T22:00:25.2072770Z at System.Xml.XmlTextReaderImpl.ParseDocumentContent () [0x0035d] in <1896cc19925e4a9db1a9086d4d328e07>:0 2018-05-03T22:00:25.2090490Z at System.Xml.XmlTextReaderImpl.Read () [0x0008c] in <1896cc19925e4a9db1a9086d4d328e07>:0 2018-05-03T22:00:25.2104200Z at System.Xml.XmlReader.ReadToDescendant (System.String name) [0x0006a] in <1896cc19925e4a9db1a9086d4d328e07>:0 2018-05-03T22:00:25.2119820Z at Xamarin.MacDev.PropertyListFormat+XmlFormat.StartReading (System.IO.Stream input) [0x00034] in :0 2018-05-03T22:00:25.2133580Z Target _CoreCompileInterfaceDefinitions: 2018-05-03T22:00:25.2147170Z /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.Common.targets: error : Error executing task IBTool: Failed to parse PList data type: 2018-05-03T22:00:25.2161060Z Build FAILED.

Example Project (If Possible)

logsVSO.txt

mandel-macaque commented 6 years ago

Assigning @jstedfast since he ill be able to help further with the debugging gf the issue.

rolfbjarne commented 6 years ago

@krishna0209 We've added additional diagnostics for this situation in the latest stable release; can you update, try again, and attach the build log if it still fails?

VincentDondain commented 6 years ago

We have not received the requested information.

If you are still experiencing this issue please provide all the requested information then click the Reopen Issue button.

Thanks!

krishna0209 commented 6 years ago

Adding the owners Jorn and Nick.

On Wed, Sep 26, 2018 at 1:20 PM Vincent Dondain notifications@github.com wrote:

Closed #4096 https://github.com/xamarin/xamarin-macios/issues/4096.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/xamarin/xamarin-macios/issues/4096#event-1869425623, or mute the thread https://github.com/notifications/unsubscribe-auth/ASiNSt8RnWSotBC16XOGdbSmYkEDxPvhks5ue-GngaJpZM4UCEuC .

-- Regards Krishna Kannan