Xcode 11调试器非常慢-一个已知问题? [英] Xcode 11 debugger is extremely slow - A known problem?

查看:458
本文介绍了Xcode 11调试器非常慢-一个已知问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我更新到最新的Xcode版本11.0(11A420a)以来,调试非常缓慢且麻烦.

Since I updated to the latest Xcode version 11.0 (11A420a) the debugging is extremely slow and cumbersome.

编辑:更新为11.1 GM(11A1027)后,问题仍然相同.

After updating to 11.1 GM (11A1027) the problem is still the same.

编译项目并在模拟器或设备上运行是没有问题的.但是,到达断点时,Xcode或多或少变得不可用:

Compiling a project and running it in simulator or on a device is no problem. However when reaching a breakpoint Xcode becomes more or less unusable:

  • 到达断点后,程序立即停止执行.但是,Xcode最多需要30秒才能显示在代码窗口中的位置,大约需要一分钟左右的时间才能加载变量视图的内容(该视图显示在断点处可用的变量的值和状态).
  • 如果我使用 Step into Step over 功能,则最多需要一分钟才能执行下一步,再次需要一分钟才能加载变量.
  • Program execution stops immediately when the breakpoint is reached. However Xcode needs up to 30 seconds to show the position in the code window and another minute or so to load the content of the variable view (which shows the values and states of the variables available at the breakpoint).
  • If I use the Step into or Step over features it takes up to a minute to perform the next step and again another minute to load the variables.

我正在具有3.2 GHz i7和32 GB内存的Mac mini 2018上运行Xcode.我以前在同一台计算机上使用过Xcode 10,没有任何问题.

I am running Xcode on a Mac mini 2018 with a 3.2 GHz i7 and 32 GB ram. I have used Xcode 10 on the same machine before without any problems.

搜索"Xcode慢"会带来大量线程,当然还有可能的解决方案.从我作为iOS开发人员的那几年开始,我知道Xcode从来不是最快,最稳定的程序.但是,它从来没有像现在这样糟过.

Searching for "Xcode slow" brings up a ton of threads and possible solutions of course. From my years as iOS Developer I know that Xcode never was the fastest and stable program. However it was never as bad as now.

不幸的是,所有的窍门(重新启动Xcode或Mac,清理项目,清理Xcode库文件夹等)均无效,

Unfortunately none of the know tricks (restarting Xcode or the Mac, cleaning the project, cleaning the Xcode library folders, etc. had any effect,

所以,最大的问题是:

这是Xcode 11中的已知问题吗?有什么已知的解决方案吗?

推荐答案

好吧,我遇到了同样的问题,最近发现我只是忘记为自己的方案禁用诊断程序

Well I had the same problem and recently figured out that I just forgot to disable diagnostics for my scheme

打开运行配置->管理方案->编辑方案->运行->诊断标签

这篇关于Xcode 11调试器非常慢-一个已知问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆