首页 文章

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

提问于
浏览
3

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

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

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

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

Visual Studio正确检测到网络上的mac代理(通过wifi连接) . (参见下图,列表中的第二项在启动时列在列表中)但是,当尝试在"Connect to Mac"模式中输入我的凭据时,它失败了 . 奇怪的是,带有 Headers 的旋转器"Retreiving SSH fingerprint"花了很长时间才解决 .

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

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

3 回答

  • 0

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

    解决方案:

    在你的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.
    

    祝大家好运!拥抱!

  • 3

    您的ssh连接可能很慢,因为SSH服务器试图反转dns连接的机器名称 . 使用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.
    
  • 3

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

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

    • Visual Studio 2015与Xamarin

    • 构建Mac上的Xamarin Studio

    构建Mac上的

    • Xcode 7.3 .

    只有当那些下载/安装完成并且通常的重新启动舞蹈已经完成时,连接才能顺利进行 .

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

相关问题