Xamarin Mac 代理无法连接



我不明白为什么我不能让我的xamarin mac代理连接。

以下是我正在运行的内容:
-OSX 10.11.4
-与Windows 10的并行11.2.0
-Visual Studio Pro 2015

我已经为所有管理员在osx中设置了远程登录,我使用我的用户名进行连接,并且我可以从windows通过SSH连接到osx。我也在窗口和mac侧的xamarin的"稳定"更新频道上。

这是我在xamarin日志文件中看到的内容。。提前谢谢。

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2016-05-13 11:29:17.4157] MacServer State transition from DisconnectedState to SshConnectingState on myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2016-05-13 11:29:20.3975] Starting Broker 4.0.3.214 in port 53976...
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Error: 0 : [2016-05-13 11:29:21.3350] Couldn't connect to myriadsupers-MacBook-Pro.local. Please try again.
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-05-13 11:29:21.4725] MacServer State transition from SshConnectingState to DisconnectedState on myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.VisualStudio.IOS.Messaging.State.DisconnectedState Information: 0 : [2016-05-13 11:29:21.6061] Disconnected from Mac myriadsupers-MacBook-Pro.local (10.211.55.2)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Error: 0 : [2016-05-13 11:29:21.7344] Method not found: 'System.Reactive.Subjects.AsyncSubject`1<!!0> System.Reactive.Linq.Observable.GetAwaiter(System.IObservable`1<!!0>)'.
System.MissingMethodException: Method not found: 'System.Reactive.Subjects.AsyncSubject`1<!!0> System.Reactive.Linq.Observable.GetAwaiter(System.IObservable`1<!!0>)'.
   at System.Net.Mqtt.Client.Client.<ConnectAsync>d__3.MoveNext()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
   at System.Net.Mqtt.Client.Client.ConnectAsync(ClientCredentials credentials, Will will, Boolean cleanSession)
   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__26.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__70.MoveNext()

我找到了解决问题的方法。希望这也能帮助其他人。

我试着在一个新的vm上安装Visual Studio 2015,只是想看看我是否能够连接到mac代理,结果成功了。这告诉我,我的问题与我的windows 10 vm有关,而不是mac方面的问题。

我最终在谷歌上搜索了我拥有的MissingMethodException,发现这个xamarin bugzilla页面有完全相同的异常。显然,这与VisualStudio如何处理插件/扩展有关。我在vm上安装了resharper和ozcode,所以卸载ozcode解决了我的问题。看起来xamarin很快就会有一个修复程序来解决这个问题。

您是否尝试过本教程的分步操作?

https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/

确保你的并行窗口有一个有效的ip地址,并且你的mac没有连接到任何vpn或代理。

好的,如果你检查了所有这些,如果你使用并行桌面,请确保在硬件-网络中获胜的并行配置中,选择共享网络如果不起作用,请选择bridge模式并行设置

最新更新