【问题标题】:Xamarin cannot connect to Mac from Visual Studio 2017Xamarin 无法从 Visual Studio 2017 连接到 Mac
【发布时间】:2017-07-10 09:50:06
【问题描述】:

当我尝试使用 iPhone 模拟器时,我收到 VS2017 无法连接到 MAC 的错误。 配置和软件:

  • Visual Studio 2017 15.2 (26430.14)
  • Mac OS Sierra 10.12
  • Mac 上安装最新的 XCode 并接受许可
  • 在 Mac 上,远程登录已启用
  • 在 Mac 上禁用防火墙
  • 在 VS 中,当我尝试连接到 Mac 时,我可以看到 MacBook,但我无法使用用于登录 Mac 的用户名和密码进行连接

但是我可以使用 ssh 进行连接:

【问题讨论】:

  • 你可以在 windows 中使用命令提示符 ssh 到 mac 吗?您可以在mac的远程登录设置中检查该命令。类似“ssh [username]@[ip address]”
  • 当我尝试通过 putty 和 ssh 连接时出现“连接超时”
  • 我又试了..我可以通过putty和ssh成功连接
  • 您可以尝试检查日志文件以查看错误。日志文件可以在 Mac – ~/Library/Logs/Xamarin-[MAJOR.MINOR] 中找到,Windows – %LOCALAPPDATA%\Xamarin\Logs
  • 我也遇到了同样的困难,我也可以通过 SSH 毫无问题地登录。

标签: xamarin visual-studio-2017


【解决方案1】:

根据您的描述,我建议:

应该安装 Xamarin studio
应安装 Xamarin.iOS SDK
您应该在 Mac 上使用该帐户登录。

A Mac running OS X El Capitan (10.11) or higher (although the latest stable version is recommended).
Xamarin Studio 5.10 or higher (although the latest stable version is recommended)). This should be on the same distribution channel as Xamarin for Visual Studio.
Xamarin.iOS SDK.
Apple’s Xcode(7+) IDE and iOS SDK (although the latest stable version from the App Store is recommended)).

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

【讨论】:

  • 为什么我不能使用 Visual Studio 2017?
  • 你可以。但为此,您还需要在 mac 上安装 xamarin studio
  • 我尝试在我的 Mac 上安装 Visual Studio Xamarin。它终于完成了在 Mac 上的安装,然后当我去 Visual Studio 2017 并尝试连接时,它确实确​​实确实有效。这实际上非常糟糕,因为您还必须在 Mac 上安装 VStudio,这既不直观也不明显。好吧,至少它现在有效。谢谢
猜你喜欢
  • 2016-07-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-04-19
  • 1970-01-01
  • 1970-01-01
  • 2017-06-08
  • 1970-01-01
相关资源
最近更新 更多