Second time building extremely long and fail on Xamarin.iOS

Zebiphire67Zebiphire67 Member ✭✭

Hello,

I have an issue.
When I build a code with Visual Studio 2017 or 2019 (pro edition) the first time on iOS (Forms or Xamarin.iOS) it's working.
But if i made a change, I need to remove Obj and Bin restart Visual Studio and Build.
If not I stay in a loop building state.

2017/2019 (pro edition) on W10 and 2019(Community) on Mac.
Each time I uninstalle Xamarin.iOS and Mono to make different test to find what is the problem.

On 2017 I have an error after long time building.

1> MTouch: 2019-06-03T13:24:36.9858246+02:00 - Démarré (IDTâche:88)
1> MTouch: 2019-06-03T13:24:36.9858246+02:00 - Initialisation (IDTâche:88)
1> MTouch: 2019-06-03T13:24:36.9899984+02:00 - Initialisé (IDTâche:88)
1> MTouch: 2019-06-03T13:24:36.9907933+02:00 - Identification des fichiers modifiés à copier sur le Mac (25 fichiers) (IDTâche:88)
1> Sending Request Xamarin.Messaging.Build.Contracts.CompareItemsMessage to topic xvs/Build/4.12.3.83/compare-items (IDTâche:88)
1> Received Response of Xamarin.Messaging.Build.Contracts.CompareItemsMessage to topic build1736klein/response/xvs/Build/4.12.3.83/compare-items (IDTâche:88)
1> MTouch: 2019-06-03T13:24:38.0155177+02:00 - Copie de fichiers (1 fichiers) (IDTâche:88)
1> Copie de bin/iPhoneSimulator/Release/XamarinHelloWorld.iOS.exe... (IDTâche:88)
1> Sending Request Xamarin.Messaging.Build.Contracts.CopyItemMessage to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe (IDTâche:88)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : The client build1736klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe
1> The underlying MQTT connection has been disconnected unexpectedely. Reason: RemoteDisconnected, Message: (IDTâche:88)
1> The underlying MQTT connection has been disconnected unexpectedely. Reason: Error, Message: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will (IDTâche:88)
1> The underlying MQTT connection has been disconnected unexpectedely. Reason: Error, Message: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will (IDTâche:88)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : The underlying client has been disconnected by the remote host
1> The Messaging connection has been disconnected unexpectedely. Reason: RemoteDisconnected, Message: (IDTâche:88)
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : An error occurred on the underlying client while executing an operation. Details: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : The client build1736klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : à Xamarin.Messaging.Client.MessagingClient.d__23`2.MoveNext() dans E:\A_work\1824\s\External\messaging\src\Xamarin.Messaging.Client\MessagingClient.cs:ligne 168
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : An error occurred on the underlying client while executing an operation. Details: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error : AggregateException: Une ou plusieurs erreurs se sont produites.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error : ClientDisconnectedException: The client build1736klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error :
1> MTouch: 2019-06-03T13:25:22.9127048+02:00 - Terminé (IDTâche:88)
1>Exécution de la tâche "MTouch" terminée -- ÉCHEC. (IDTâche:88)
1>Génération de la cible "_CompileToNative" terminée dans le projet "XamarinHelloWorld.iOS.csproj" -- ÉCHEC. : (IdCible:153)

We can see on the Warning => > The client build1736klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe

1> The underlying MQTT connection has been disconnected unexpectedely. Reason: RemoteDisconnected, Message: (IDTâche:88)

And the error => > AggregateException: One or more errors have occurred.

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): error : ClientDisconnectedException: The client build1736klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe

With => > Execution of the "MTouch" task completed -- ÉCHEC. (IDTâche:88)

I don't know what can i do ?
I try to repair VS 2017.

VS 2017 infos:

Microsoft Visual Studio Professional 2017
Version 15.9.12
VisualStudio.15.Release/15.9.12+28307.665
Microsoft .NET Framework
Version 4.7.03190

Version installée : Professional

Visual C++ 2017 00369-60000-00001-AA401
Microsoft Visual C++ 2017

ASP.NET and Web Tools 2017 15.9.04012.0
ASP.NET and Web Tools 2017

ASP.NET Core Razor Language Services 15.8.31590
Provides languages services for ASP.NET Core Razor.

ASP.NET Web Frameworks and Tools 2017 5.2.61435.0
For additional information, visit https://www.asp.net/

Assistants Microsoft Visual C++ 1.0
Assistants Microsoft Visual C++

Azure App Service Tools v3.0.0 15.9.03024.0
Azure App Service Tools v3.0.0

Common Azure Tools 1.10
Fournit des services courants utilisables par Microsoft Azure Mobile Services et Microsoft Azure Tools.

Extensibility Message Bus 1.1.49 (remotes/origin/[email protected])
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Extension ResourcePackage 1.0
Informations détaillées sur l'extension Visual Studio ResourcePackage

Extension ResourcePackage 1.0
Informations détaillées sur l'extension Visual Studio ResourcePackage

Gestionnaire de package NuGet 4.6.0
Gestionnaire de package NuGet dans Visual Studio. Pour plus d'informations sur NuGet, consultez la page http://docs.nuget.org/.

GitHub.VisualStudio 2.9.1.7781
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

JavaScript Project System 2.0
JavaScript Project System

JavaScript UWP Project System 2.0
JavaScript UWP Project System

Microsoft Continuous Delivery Tools pour Visual Studio 0.4
Simplification de la configuration des pipelines Azure DevOps à partir de l'IDE Visual Studio.

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

MLGen Package Extension 1.0
MLGen Package Visual Studio Extension Detailed Info

Mono Debugging for Visual Studio 4.13.12-pre (9bc9548)
Support for debugging Mono processes with Visual Studio.

Outils C# 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Composants C# utilisés dans l'IDE. En fonction de votre type de projet et de vos paramètres, une autre version du compilateur peut être utilisée.

Outils TypeScript 15.9.30410.2001
Outils TypeScript pour Microsoft Visual Studio

Outils Visual Basic 2.10.0-beta2-63501-03+b9fb1610c87cccc8ceb74a770dba261a58e39c4a
Composants Visual Basic utilisés dans l'IDE. En fonction de votre type de projet et de vos paramètres, une autre version du compilateur peut être utilisée.

Package hôte de l'adaptateur de débogage de Visual Studio Code 1.0
Couche d'interopérabilité pour l'hébergement d'adaptateurs de débogage Visual Studio Code dans Visual Studio

Package Microsoft Visual Studio VC 1.0
Package Microsoft Visual Studio VC

Package Outils Application Insights pour Visual Studio 8.14.20131.1
Outils Application Insights pour Visual Studio

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Service de langage JavaScript 2.0
Service de langage JavaScript

SQL Server Data Tools 15.1.61903.01040
Microsoft SQL Server Data Tools

Visual F# Tools 10.2 pour F# 4.5 15.8.0.0. Commit Hash: 6e26c5bacc8c4201e962f5bdde0a177f82f88691.
Microsoft Visual F# Tools 10.2 pour F# 4.5

Visual Studio Tools pour Conteneurs 1.0
Visual Studio Tools pour Conteneurs

Visual Studio Tools pour Docker 1.1
Développez, exécutez et validez vos applications ASP.NET Core dans l'environnement cible. Appuyez sur F5 pour exécuter votre application directement dans un conteneur avec débogage ou sur CTRL+F5 pour modifier et actualiser votre application sans avoir à recréer le conteneur.

Visual Studio Tools pour les applications Windows universelles 15.0.28307.665
Visual Studio Tools pour les applications Windows universelles vous permet de créer une expérience d'application universelle unique que vous pouvez retrouver sur tous les appareils exécutant Windows 10 : téléphones, tablettes, PC, etc. Il inclut le Kit de développement logiciel (SDK) Microsoft Windows 10.

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

Xamarin 4.12.3.83 ([email protected])
Extension Visual Studio permettant de développer pour Xamarin.iOS et Xamarin.Android.

Xamarin Designer 4.16.30 (e0af99a34)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 1.1.128 (6f5ebb2)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 9.1.7.0 (HEAD/ba9da7a76)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK 12.4.0.64 (9c8d8e0)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

What can be the solution to build each time without error ?
Thank you for the help.
Zebiphire

Posts

  • Zebiphire67Zebiphire67 Member ✭✭

    Found the answer.

    Error =>

    warning : The client build21656klein has been disconnected while waiting a post response to topic xvs/Build/4.12.3.83/copy-item/XamarinHelloWorld.iOS/c913e05002fXamarinHelloWorld.iOS.exe 1> The underlying MQTT connection has been disconnected unexpectedely. Reason: RemoteDisconnected, Message: (IDTâche:90) 1> The underlying MQTT connection has been disconnected unexpectedely. Reason: Error, Message: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will (IDTâche:90) 1> The underlying MQTT connection has been disconnected unexpectedely. Reason: Error, Message: The client has been disconnected while trying to perform the unsubscribe to topics: xma/last-will (IDTâche:90) 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(795,3): warning : The underlying client has been disconnected by the remote host

    And =>

    System.Net.Mqtt.MqttException: The keep alive tolerance of 00:00:45 seconds has been exceeded and no packet has been received from client build21656klein. The connection will be closed. ---> System.TimeoutException: The operation has timed out.

    MQTT example

    It was a really stupid problem. The network cable that was defective, but still working.

Sign In or Register to comment.