无法从Visual Studio连接到Mac上的Xamarin

时间:2016-04-03 18:25:03

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

我在我的Visual Studio 2015和OS X 10.11.4的MacBook Pro上安装了Xamarin。问题是,当我尝试从VS连接到OS X时,它说由于某种原因它无法启动Designer代理。

据我在日志中看到的主要问题是:

Xamarin.VisualStudio.IOS.MacServer Error: 0 : [2016-04-03 21:21:44.1336] An error occured starting the Designer 4.0.3.214 agent: Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : ==== :: Xamarin :: 4.0.3.214-cycle6-c6sr3+0dd817c ====
Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : Starting Designer 4.0.3.214...
Failed-Native type size mismatch between Xamarin.Mac.dll and the executing architecture. Xamarin.Mac.dll was built for 32-bit, while the current process is 64-bit.

有什么办法可以解决吗?顺便说一下,这是完整的日志http://pastebin.com/iB6X0XWe

1 个答案:

答案 0 :(得分:0)

我在该日志中看到了许多问题。引起我注意的是它无法下载配置文件。确保安装了XCode(并且是最新的)并且您可以运行它。您可能还需要登录Apple dev门户并接受许可协议 - 如果有待处理的协议,门户网站有时会阻止某些操作。

此外,看起来您在OSX上的Xamarin安装可能略有不同(或者可能在不同的频道上):

  

Mac MacBook-Pro-Andrey.local(192.168.0.3)上安装的Xamarin.iOS(版本9.6.1.9)与本地Xamarin.iOS 9.6.1.8之间存在不匹配。虽然这可能不是问题,但可能会导致意外行为。应用更新时,请确保同时保持Mac和Windows。

我会在做其他任何事情之前先解决这个问题。