Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 61156 on
Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
On our continuous integration environment (Windows server + Mac Mini), more than 30% of our Xamarin.Ios project build fails randomly.
1. Have a MsBuild script with a target to build a solution containing a Xamarin iOs project like:
<Target Name="BuildIOS" Condition=" '$(SkipIOSBuild)' == 'false' ">
<!-- Build iOS package (IPA) -->
<MSBuild Projects="$(IOSProjectPath)" Targets="$(IOSMsbuildTargets)" Properties="$(IOSMsbuildProperties)" />
2. Script is launched periodically, typically on each commit (we're using CCNet for this)
Randomly we get the following message:
The Build Agent 'Build 126.96.36.1993' is not running on the Mac. Please ensure that the assembly versions between the XMA Agents and the XMA clients matches. A compatible Build Agent is needed in order to finish the build.
Statistically, about 30% of our builds fails which is huge.
100% of the build shoud pass except if we have a real compilation error.
On the Mac build log, here is what we get:
Xamarin.Messaging.Build.BuildAgent: Information: 0: Stopping Agent: Build: 2018-01-09 10:12:44Z
System.Net.Mqtt.Sdk.MqttClientImpl: Error: 0: No session has been found for the client
at System.Net.Mqtt.Sdk.MqttClientImpl.CloseClientSession () [0x00098] in <65aadb65fa...>
at System.Net.Mqtt.Sdk.MqttClientImpl+d__34.MoveNext () [0x00035] in <65aadb65fa...>
System.Net.Mqtt.Sdk.MqttClientImpl: Information: 0: Client - Disposing. Reason: Error:
Extracted from the Windows build log:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5): warning : Failed to execute 'which mono64': ExitStatus = 1
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Windows.After.targets(63,5): error : The Build Agent 'Build 188.8.131.523' is not running on the Mac. Please ensure that the assembly versions between the XMA Agents and the XMA clients matches. A compatible Build Agent is needed in order to finish the build.
Xamarin.iOS.Windows.After.targets line 63 runs the following MSBuild target:
So it looks like SayHello MSBuild task randomly fails even tough the connection to the Mac is alive and running.