为什么visual studio无法连接到默认检测到的Mac Agent的mac代理?

时间:2016-04-09 08:10:18

标签: c# xamarin visual-studio-2015 xamarin.ios

我今天注意到,在设置新Mac并尝试连接Visual Studio 2015后,visual studio无法连接到检测Xamarin的Mac构建代理时显示的默认构建代理。

以下是我的确切做法: 将新的MacMini连接到网络并安装了Xamarin.Mac,IOS。

在VS 2015中使用Xamarin创建了新的解决方案来创建IOS应用程序。

尝试从列表中检测构建代理。

Visual Studio正确检测到网络上的mac代理(通过wifi连接)。 (见下图,列表中的第二项在发布时列在列表中) enter image description here 但是,当尝试在“连接到Mac”模式中输入我的凭据时,它失败了。奇怪的是,带有“Retreiving SSH fingerprint”标题的微调器花了很长时间才解决。

我注意到我可以通过点击Xamarin Mac Agent模式中的“添加Mac”并手动输入IP来解决此问题。这是解决它的唯一方法。 (也参见列表中的那个图像)

此外,Visual Studio无法从列表中删除此默认项目,这看起来很奇怪。为什么会出现这个问题?

3 个答案:

答案 0 :(得分:3)

我在2天前遇到了这个完全相同的问题,从财务诱导的昏迷中推出我的旧Visual Studio / Xamarin构建组合,Xamarin的礼貌现在是免费的:

我的解决方案是确保每个组件都是最新版本的最新版本:

  • 使用Xamarin的Visual Studio 2015

  • 构建Mac上的Xamarin Studio

  • 构建Mac上的Xcode 7.3。

只有当这些下载/安装完成且通常的重启舞蹈完成后,连接才能顺利进行。

但是,我仍然会在我的选择中看到<build Mac><build Mac>.local。我只是选择了第一个而不再担心它。

答案 1 :(得分:3)

我过了两天试图解决这个问题,最后得到了它!

解决方案:

在Mac上:

1) Download the Xamarin Studio for Mac by Xamarin website:

https://www.xamarin.com/download

The Xamarin Studio will install all necessary components.

2) If you already have Xamarin Studio installed on Mac, run it and go to menu "Xamarin Studio Community" and after click in "Check updates". Update all.  ;)

在Windows上

1) Open Visual Studio
Menu Tools => Options => Find option Xamarin in left side of window  => under find the option "Other" and click it

2) On right side, on dropdown field select the option "Stable" and click in "Check now".

就绪! 您只需要等待Mac和Windows上的下载完成。

我的痛苦

I tried to change many (MANY!!!!!!) network settings, change files on Mac, change files on Windows, I created an virtual machine with OSX following suggestions in forums.

But in the end was it that resolved.

祝大家好运! 拥抱!

答案 2 :(得分:0)

您的ssh连接可能会很慢,因为SSH服务器会尝试撤消连接的计算机名称。使用IP地址直接阻止它。

要在mac中禁用ssh reverse dns lookup,请编辑ssh配置文件并取消注释“UseDNS no”行:

sudo nano /etc/ssh/sshd_config 
CTRL-W UseDNS 
uncomment the line by removing the # 
CTRL-X then Y to save the file. 
Reboot the mac.