草庐IT

ios - 在 mac 中启动 iOS 模拟器失败

coder 2024-01-12 原文

我有一个 Xamarin.Forms 项目。

我使用的是 vs2015。

今天我把Xamarin更新到最新版本:4.0.0.1697。

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

启动 Agent Build 4.0.0.1697...

在mac中启动iOS模拟器失败

启动 Build 4.0.0.1697 代理时发生错误:操作已超时。

启动 Agent Designer 4.0.0.1697...

启动 Designer 4.0.0.1697 代理时发生错误:操作已超时。

Xamarin Mac 代理无法完全启动。代理未启动:IDB 4.0.0.1697、Designer 4.0.0.1697、Build 4.0.0.1697。请查看日志以获取更多详细信息。

所以我无法调试 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.

最佳答案

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

我的问题是我使用 Mac 只是为了能够启动该应用程序。否则,它只是闲置。问题出在我的 Mac 上的“节能器”设置中选中了“尽可能让硬盘进入休眠状态”。这就是我的案例失败的原因。 检查“唤醒网络访问”可能也更好。

关于ios - 在 mac 中启动 iOS 模拟器失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34127822/

有关ios - 在 mac 中启动 iOS 模拟器失败的更多相关文章

  1. ruby - 如何模拟 Net::HTTP::Post? - 2

    是的,我知道最好使用webmock,但我想知道如何在RSpec中模拟此方法:defmethod_to_testurl=URI.parseurireq=Net::HTTP::Post.newurl.pathres=Net::HTTP.start(url.host,url.port)do|http|http.requestreq,foo:1endresend这是RSpec:let(:uri){'http://example.com'}specify'HTTPcall'dohttp=mock:httpNet::HTTP.stub!(:start).and_yieldhttphttp.shou

  2. ruby-on-rails - 启动 Rails 服务器时 ImageMagick 的警告 - 2

    最近,当我启动我的Rails服务器时,我收到了一长串警告。虽然它不影响我的应用程序,但我想知道如何解决这些警告。我的估计是imagemagick以某种方式被调用了两次?当我在警告前后检查我的git日志时。我想知道如何解决这个问题。-bcrypt-ruby(3.1.2)-better_errors(1.0.1)+bcrypt(3.1.7)+bcrypt-ruby(3.1.5)-bcrypt(>=3.1.3)+better_errors(1.1.0)bcrypt和imagemagick有关系吗?/Users/rbchris/.rbenv/versions/2.0.0-p247/lib/ru

  3. ruby - 即使失败也继续进行多主机测试 - 2

    我已经构建了一些serverspec代码来在多个主机上运行一组测试。问题是当任何测试失败时,测试会在当前主机停止。即使测试失败,我也希望它继续在所有主机上运行。Rakefile:namespace:specdotask:all=>hosts.map{|h|'spec:'+h.split('.')[0]}hosts.eachdo|host|begindesc"Runserverspecto#{host}"RSpec::Core::RakeTask.new(host)do|t|ENV['TARGET_HOST']=hostt.pattern="spec/cfengine3/*_spec.r

  4. ruby - 如何验证 IO.copy_stream 是否成功 - 2

    这里有一个很好的答案解释了如何在Ruby中下载文件而不将其加载到内存中:https://stackoverflow.com/a/29743394/4852737require'open-uri'download=open('http://example.com/image.png')IO.copy_stream(download,'~/image.png')我如何验证下载文件的IO.copy_stream调用是否真的成功——这意味着下载的文件与我打算下载的文件完全相同,而不是下载一半的损坏文件?documentation说IO.copy_stream返回它复制的字节数,但是当我还没有下

  5. Ruby 文件 IO 定界符? - 2

    我正在尝试解析一个文本文件,该文件每行包含可变数量的单词和数字,如下所示:foo4.500bar3.001.33foobar如何读取由空格而不是换行符分隔的文件?有什么方法可以设置File("file.txt").foreach方法以使用空格而不是换行符作为分隔符? 最佳答案 接受的答案将slurp文件,这可能是大文本文件的问题。更好的解决方案是IO.foreach.它是惯用的,将按字符流式传输文件:File.foreach(filename,""){|string|putsstring}包含“thisisanexample”结果的

  6. ruby-on-rails - 如何在 mac os snow leopard 中升级 ruby​​ 和 rails - 2

    我想将我的MacSnowLeopardruby​​从1.8.7升级到1.9.1版本,有人知道轻松且最好的升级方法吗?因为我读了一些论坛/帖子/博客/讨论说覆盖苹果发布的ruby不好将Rails从版本2.2.2升级到2.3.8的最佳方法是什么?因为我找到的所有信息都仅适用于豹/老虎,而且很少有关于雪豹的复杂文章。他们还说覆盖apple提供的rails不好吗。谁能帮帮我?谢谢。 最佳答案 DanBenjamin有一些greatinstructionsforcompilingandinstallingRuby,RubyGemsandRai

  7. ruby - 在不使用 RVM 的情况下在 Mac 上卸载和升级 Ruby - 2

    我最近决定从我的系统中卸载RVM。在thispage提出的一些论点说服我:实际上,我的决定是,我根本不想担心Ruby的多个版本。我只想使用1.9.2-p290版本而不用担心其他任何事情。但是,当我在我的Mac上运行ruby--version时,它告诉我我的版本是1.8.7。我四处寻找如何简单地从我的Mac上卸载这个Ruby,但奇怪的是我没有找到任何东西。似乎唯一想卸载Ruby的人运行linux,而使用Mac的每个人都推荐RVM。如何从我的Mac上卸载Ruby1.8.7?我想升级到1.9.2-p290版本,并且我希望我的系统上只有一个版本。 最佳答案

  8. UE4 源码阅读:从引擎启动到Receive Begin Play - 2

    一、引擎主循环UE版本:4.27一、引擎主循环的位置:Launch.cpp:GuardedMain函数二、、GuardedMain函数执行逻辑:1、EnginePreInit:加载大多数模块int32ErrorLevel=EnginePreInit(CmdLine);PreInit模块加载顺序:模块加载过程:(1)注册模块中定义的UObject,同时为每个类构造一个类默认对象(CDO,记录类的默认状态,作为模板用于子类实例创建)(2)调用模块的StartUpModule方法2、FEngineLoop::Init()1、检查Engine的配置文件找出使用了哪一个GameEngine类(UGame

  9. Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting - 2

    1.错误信息:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:requestcanceledwhilewaitingforconnection(Client.Timeoutexceededwhileawaitingheaders)或者:Errorresponsefromdaemon:Gethttps://registry-1.docker.io/v2/:net/http:TLShandshaketimeout2.报错原因:docker使用的镜像网址默认为国外,下载容易超时,需要修改成国内镜像地址(首先阿里

  10. ruby-on-rails - 创建 ruby​​ 数据库时惰性符号绑定(bind)失败 - 2

    我正在尝试在Rails上安装ruby​​,到目前为止一切都已安装,但是当我尝试使用rakedb:create创建数据库时,我收到一个奇怪的错误:dyld:lazysymbolbindingfailed:Symbolnotfound:_mysql_get_client_infoReferencedfrom:/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundleExpectedin:flatnamespacedyld:Symbolnotfound:_mysql_get_client_infoReferencedf

随机推荐