首页 文章

无法在mac中启动iOS模拟器

提问于
浏览
3

我有一个Xamarin.Forms项目 .

我正在使用vs2015 .

今天我将Xamarin更新到最新版本:4.0.0.1697 .

当我试图将我的mac作为Xamarin Mac Agent连接时,vs显示以下消息:

Starting Agent Build 4.0.0.1697...

Failed to start iOS Simulator in the mac

An error occured starting the Build 4.0.0.1697 agent: The operation has timed out.

Starting Agent Designer 4.0.0.1697...

An error occured starting the Designer 4.0.0.1697 agent: The operation has timed out.

The Xamarin Mac Agent could not be fully started. Agents not started: IDB 4.0.0.1697, Designer 4.0.0.1697, Build 4.0.0.1697. Please check the logs for more details.

所以我无法调试ios应用程序 .

我不知道接下来该怎么做 .

Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-12-07 18:06:14.7579] MacServer State transition from SshConnectingState to SshConnectedState on 192.168.0.207 (192.168.0.207)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-12-07 18:06:14.7659] MacServer State transition from SshConnectedState to AgentsStartingState on 192.168.0.207 (192.168.0.207)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-12-07 18:06:14.7799] Starting agents on Mac 192.168.0.207 (192.168.0.207)
Xamarin.VisualStudio.IOS.MacServer Information: 0 : [2015-12-07 18:06:14.7959] Activating the Mac...
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2015-12-07 18:06:18.6192] Starting Agent IDB 4.0.0.1697...
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-12-07 18:06:18.6292] MacServer State transition from AgentsStartingState to LimitedState on 192.168.0.207 (192.168.0.207)
Xamarin.VisualStudio.IOS.Messaging.State.ServerStateContext Information: 0 : [2015-12-07 18:06:18.6352] Connected to the Mac 192.168.0.207 (192.168.0.207) with Limited support.
Xamarin.VisualStudio.IOS.MacServer Error: 0 : [2015-12-07 18:06:29.3798] An error occured starting the IDB 4.0.0.1697 agent: The operation has timed out.

System.TimeoutException: The operation has timed out.
   at Xamarin.Messaging.Client.Ssh.AgentCommands.StartAgent(AgentInfo agent, Int32 port, Int32 timeout, Boolean debugMode, String[] extraArgs)
   at Xamarin.Messaging.VisualStudio.MessagingService.StartAgent(AgentInfo agentInfo, Boolean restartAutomatically)
   at Xamarin.VisualStudio.IOS.MacServer.StartAgent(AgentInfo agentInfo) in C:\Users\builder\data\lanes\2511\deffc901\source\XamarinVS\src\Core\VisualStudio.IOS\Messaging\MacServer.cs:line 366
Xamarin.Messaging.VisualStudio.MessagingService Information: 0 : [2015-12-07 18:06:29.9288] Starting Agent Build 4.0.0.1697...
Xamarin.VisualStudio.IOS.MacServer Error: 0 : [2015-12-07 18:06:31.4349] An error occured starting the Build 4.0.0.1697 agent: Xamarin Information: 0 : Xamarin - 4.0.0.1697-cycle6-baseline+deffc90
Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : Starting Build 4.0.0.1697...
Xamarin.Messaging.Build.BuildAgent Information: 0 : Starting Agent: Build 4.0.0.1697
Xamarin.Messaging.Build.BuildAgent Information: 0 : Build 4.0.0.1697 agent started
Failed-The classes in the module cannot be loaded.


Xamarin.Messaging.Exceptions.MessagingException: Xamarin Information: 0 : Xamarin - 4.0.0.1697-cycle6-baseline+deffc90
Xamarin.Messaging.Client.AgentConsoleRunner Information: 0 : Starting Build 4.0.0.1697...
Xamarin.Messaging.Build.BuildAgent Information: 0 : Starting Agent: Build 4.0.0.1697
Xamarin.Messaging.Build.BuildAgent Information: 0 : Build 4.0.0.1697 agent started
Failed-The classes in the module cannot be loaded.

4 回答

  • 2

    所以我遇到了这个问题 . 这让我疯了 .

    我的问题是我正在使用Mac才能启动应用程序 . 否则,它只是闲着 . 结果是问题是我的Mac上的“节能器”设置设置为“在可能的情况下将硬盘置于睡眠状态” . 这就是我案件失败的原因 . 检查“网络访问唤醒”也可能更好 .

  • 0

    我经常遇到在Parallels上运行的Xamarin Mac Agent和Visual Studio的问题(目前为什么我在这里) . 但是,按照本指南中的故障排除步骤, sometimes 并不总是有帮助 .

    我怀疑我的问题更深层次 - 你可能会从这个链接中获得帮助 .

    https://developer.xamarin.com/guides/ios/getting_started/installation/windows/xamarin-mac-agent/xma-troubleshooting/

  • 0

    因此,如果有人偶然发现这一点,有几件事要尝试 .

    当然有三个R的重启重启和重新安装 .

    重新启动Visual Studio和xcode . 重新启动所有涉及的PC,构建代理有时会进入时髦的状态并重新启动将它们全部清除并让您重新启动好的措施重新启动您的路由器,并确保您的IP地址是您认为的 .

    然后更新\重新安装 . 如果您的Mac上的xcode已更新,您可能需要在VS中进行Xamarin更新才能在Mac上 Build 连接或Xamarin Studio更新 .

    在Mac和VisualStudio上打开所有三个Xcode,Xamarin Studio,并确保所有3个都更新 . 当您在Xcode中继续创建一个新项目并运行它 . 查看模拟器是否来自XCode,或者是否有提示接受许可等 .

    如果更新未修复或未更新,则可能需要重新安装Xcode .

    毕竟,如果它仍然不起作用,你可以把你的脚趾放在水中,你的A $$ 3在沙滩上用墨西哥海滩上的PBR . 这解决了一切 .

  • 0

    我通过更新的Xamarin.iOS版本解决了这个问题 . 然后我成功在Mac上运行我的应用程序 . 感谢所有人关注我的问题 .

相关问题