Forum Xamarin.iOS

Error when deploying to ios simulator

LouissLouiss Member ✭✭

I have a Xamarin Forms project for android and ios, android deploys fine in the simulator. I have my visual studio connected to my mac with a successful connection. However, when I try to deploy to the simulator I get this detailed error from the log shown below, and I couldn't get the any project to deploy on ios.

Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished Xamarin|Information|0|Xamarin - 16.4.000.313-d16-4+793df40 Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished Xamarin.VisualStudio.Android.XamarinAndroidPackage|Warning|0|Initializing Xamarin.VisualStudio.Android.XamarinAndroidPackage Xamarin.VisualStudio.TastyPackage|Information|0|Hooked up SDB tracing adapter Xamarin.VisualStudio.TastyPackage|Information|0|Initialization finished Xamarin.VisualStudio.IOS.XamarinIOSPackage|Warning|0|Initializing Xamarin.VisualStudio.IOS.XamarinIOSPackage. Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing AndroidStarted event Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02 Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify mustCheckIfSolutionIsReady:True delay:00:00:02 Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify canceled => solution is not ready Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: processing ActiveProjectConfigurationChanged event Xamarin.HotReload|Information|0|2020-03-12 09:31:22.4 Hot Reload IDE Extension Loaded Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from DisconnectedState to ConfiguringState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to '192.168.56.1'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking SSH configuration... Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: verify android sdk installed Xamarin.VisualStudio.Android.Setup.AndroidSdkValidation|Information|0|androidsdksetup: removing android sdk errors Xamarin.VisualStudio.ProjectSystem.PackageServices|Warning|0|Failed to Restore Nuget packages for project C:\Users\Louis Stanley\source\repos\App1\App1\App1.Android\App1.Android.csproj. Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Initializing environment... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking available disk space... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Mono installation... Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'which mono64': ExitStatus = 1 Xamarin.Messaging.Ssh.SshCommands|Information|0|A valid Mono installation has been found at '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono64' Xamarin.VisualStudio.Android.Setup.AutoSdk|Information|0|androidsdksetup: AutoSdk tries to resolve dependencies: platforms/android-28, build-tools/[email protected], [email protected], [email protected] Xamarin.VisualStudio.Android.Setup.AutoSdk|Warning|0|androidsdksetup: AutoSdk cannot resolve dependencies: [email protected] Xamarin.VisualStudio.Android.Setup.AndroidSdkSetup|Information|0|androidsdksetup: verify error: Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xamarin iOS installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking host configuration for connecting to '192.168.56.1'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguringState to ConfiguredState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Host '192.168.56.1' is configured correctly Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConfiguredState to ConnectingState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to '192.168.56.1'... System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory|Error|0|An error occurred while connecting via TCP to the endpoint address 192.168.56.1 and port 55040, to establish an MQTT connection System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 192.168.56.1:55040 at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext() System.Net.Mqtt.Sdk.MqttClientImpl|Error|0|System.Net.Mqtt.MqttException: An error occurred while connecting via TCP to the endpoint address 192.168.56.1 and port 55040, to establish an MQTT connection ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 192.168.56.1:55040 at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult) at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult) at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext() --- End of inner exception stack trace --- at System.Net.Mqtt.Sdk.Bindings.TcpChannelFactory.<CreateAsync>d__4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Mqtt.Sdk.PacketChannelFactory.<CreateAsync>d__5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Mqtt.Sdk.MqttClientImpl.<InitializeChannelAsync>d__39.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Net.Mqtt.Sdk.MqttClientImpl.<ConnectAsync>d__29.MoveNext() Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Broker 16.4.000.313 in port 55040... Xamarin.Messaging.Ssh.SshCommandRunner|Warning|0|Failed to execute 'which mono64': ExitStatus = 1 Xamarin.Messaging.Ssh.SshCommands|Information|0|A valid Mono installation has been found at '/Library/Frameworks/Mono.framework/Versions/Current/bin/mono64' Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting connection to '192.168.56.1'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ConnectingState to SshConnectedState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|SSH connection to '192.168.56.1' has been established... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from SshConnectedState to AgentsStartingState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting registered Agents: Build 16.4.000.313, IDB 16.4.000.313... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting Build 16.4.000.313... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting IDB 16.4.000.313... Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Agent Build 16.4.000.313... Xamarin.Messaging.Ssh.MessagingService|Information|0|Starting Agent IDB 16.4.000.313... Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent Build 16.4.000.313 is running Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent Build 16.4.000.313 is running Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Build 16.4.000.313 started Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDB 16.4.000.313 is running Xamarin.Messaging.Ssh.MessagingService|Information|0|Agent IDB 16.4.000.313 is running Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|IDB 16.4.000.313 started Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Starting registered Agents: ... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from AgentsStartingState to AgentsStartedState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|The Agents have been started successfully Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from AgentsStartedState to ValidatingState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Performing server validations against '192.168.56.1'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Initializing IDB environment... Xamarin.VisualStudio.IOS.SettingsProvider|Information|0|Creating OSVersionList.json file... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Validating Mac operating system version compatibility... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xcode version compatibility... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Validating Xcode license state... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Verifying installed Xcode tools... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xcode tool package 'MobileDeviceDevelopment.pkg' installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Xcode tool package 'MobileDeviceDevelopment.pkg' is up to date Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xcode tool package 'CoreTypes.pkg' installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Xcode tool package 'CoreTypes.pkg' is up to date Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xcode tool package 'MobileDevice.pkg' installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Xcode tool package 'MobileDevice.pkg' is up to date Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Checking Xcode tool package 'XcodeSystemResources.pkg' installation... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Xcode tool package 'XcodeSystemResources.pkg' is up to date Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Performing server validations against '192.168.56.1'... Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Server State transition from ValidatingState to ConnectedState on 192.168.56.1 (192.168.56.1) Xamarin.Messaging.Integration.State.ServerStateContext|Information|0|Connection to '192.168.56.1' completed successfully System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs5440Louis - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive Xamarin.VisualStudio.IOS.MonoTouchFlavoredProject|Information|0|Build properties for C:\Users\Louis Stanley\source\repos\App1\App1\App1.iOS\App1.iOS.csproj: DeviceSpecificBuild: false, TargetiOSDevice: , ServerPort: 55040, ServerUser: louisstanley, ContinueOnDisconnected: False, ServerAddress: 192.168.56.1, ArchiveOnBuild: false, IsAppDistribution: false, ArchivePath: System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs5440Louis - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs5440Louis - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive System.Net.Mqtt.Sdk.ClientPacketListener|Warning|0|Client vs5440Louis - No packet has been sent in 30 seconds. Sending Ping to Server to maintain Keep Alive

Answers

  • LandLuLandLu Member, Xamarin Team Xamurai

    It seems the connection to your Mac is not very well. Did the router work well for your Windows and Mac?
    Try to reboot the router, Mac and Windows to reset the connection.
    If you run the project directly on Mac, could it open the simulators correctly?

Sign In or Register to comment.