2016-10-28 48 views
0

我正在尝试将MAC Mini连接到运行Visual Studio的Windows PC,但无法连接。无法将Visual Studio连接到MAC Mini - Xamarin

我试图在Xamarin文档HERE
我们已经成功连接相同的Mac Mini到网络上的另一台电脑中提到的一切,但似乎无法得到它与另一台电脑连接(Note: We are not connecting both at the same time)

我们已经检查过SSH,它似乎很好 - 我们可以使用PUTTY和GIT Bash进行连接。

此外,我们正在使用正确的用户名MAC - 我们检索使用whoami命令。

以下是日志文件的内容。

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-10-28 15:58:04.7169] MacServer State transition from DisconnectedState to SshConnectingState on XT-14.local (192.168.0.214) 
Xamarin.Messaging.Client.Ssh.SshMessagingConnection Error: 0 : [2016-10-28 15:58:15.0329] An unexpected error occurred on with the current SSH Session 
Renci.SshNet.Common.SshException: Message type 80 is not valid. 
    at Renci.SshNet.Session.LoadMessage(Byte[] data) 
    at Renci.SshNet.Session.ReceiveMessage() 
    at Renci.SshNet.Session.MessageListener() 
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-10-28 15:58:18.9447] Starting Broker 4.1.1.3 in port 50843... 
System.Net.Mqtt.TcpChannel Warning: 0 : [2016-10-28 15:58:26.0069] The TCP Network Stream has completed sending bytes. The observable sequence will be completed and the channel will be disposed 
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-10-28 15:58:26.2103] MacServer State transition from SshConnectingState to DisconnectedState on XT-14.local (192.168.0.214) 
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-10-28 15:58:26.3702] An error occurred on the underlying client while executing an operation. Details: The client vs4940Lenov has been disconnected while trying to perform the connection 
System.Net.Mqtt.Client.ClientPacketListener Warning: 0 : [2016-10-28 15:58:26.5290] Client vs4940Lenov - Packet Channel observable sequence has been completed 
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-10-28 15:58:26.6871] Disconnected from Mac XT-14.local (192.168.0.214) 
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-10-28 15:58:26.8482] Couldn't connect to XT-14.local. Please try again. 
System.Net.Mqtt.Client.Client Error: 0 : [2016-10-28 15:58:27.0164] System.Net.Mqtt.Client.ClientException: The client vs4940Lenov has been disconnected while trying to perform the connection 
    at System.Net.Mqtt.Client.Client.<ConnectAsync>d__29.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 Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__18.MoveNext() 
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-10-28 15:58:27.2886] There was an error while trying to connect the client vs4940Lenov to the server. 
Xamarin.Messaging.Exceptions.MessagingException: There was an error while trying to connect the client vs4940Lenov to the server. ---> System.Net.Mqtt.Client.ClientException: The client vs4940Lenov has been disconnected while trying to perform the connection 
    at System.Net.Mqtt.Client.Client.<ConnectAsync>d__29.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 Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__18.MoveNext() 
    --- End of inner exception stack trace --- 
    at Xamarin.Messaging.Client.MessagingConnection.<ConnectAsync>d__18.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 Xamarin.Messaging.Client.Ssh.SshMessagingConnection.<ConnectAsync>d__37.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.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) 
    at Xamarin.Messaging.VisualStudio.MessagingService.<ConnectAsync>d__73.MoveNext() 
System.Net.Mqtt.TcpChannel Error: 0 : [2016-10-28 15:58:27.7771] An error occurred while closing underlying channel. Error code: 10054 
System.Net.Sockets.SocketException (0x80004005): An existing connection was forcibly closed by the remote host 
    at System.Net.Sockets.Socket.Shutdown(SocketShutdown how) 
    at System.Net.Mqtt.TcpChannel.Dispose(Boolean disposing) 

更新1

这里是一个图像

Git image

+0

您是否检查了故障排除指南?你是否登录到了你想要进入SSH的Mac上的用户帐户? https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/ –

+0

是的,我登录了mac并且也按照该链接进行了故障排除。 –

+0

那里测试你的SSH连接的结果是什么? –

回答

1

在Visual Studio中连接到Mac主机重要的是要确保Xamarin的工具是同步在两个系统并且版本号匹配。

在这种情况下,它看起来像其中一台计算机正在运行过时版本的Xamarin工具。将其更新到最新的稳定版本可以解决问题。

更多信息可以在Xamarin的Connecting to the Mac指南中找到,如果问题仍然存在,我建议查看Troubleshooting指南,因为这将概述常见问题/已知问题/解决方法。

相关问题