Xcode 9-高CPU使用率-风扇最大速度 [英] Xcode 9 - High CPU usage - Fan max speed
问题描述
自从我升级到Xcode 9以来,当我使用Xcode时,我的粉丝就发疯了。当我使用情节提要和Interface Builder时,尤其如此。
Ever since I upgraded to Xcode 9, my fan goes crazy when I'm working on Xcode. This is especially happening when I use Storyboards and Interface Builder.
Xcode有时会占用100%的CPU,并且名为 Interface Builder Cocoa Touch Tool的进程也非常贪婪。
Xcode sometimes takes up to 100% of the CPU and the process named "Interface Builder Cocoa Touch Tool" is also very greedy.
我在这里读到其他人也遇到过类似的问题,但是我想知道是否有人找到了解决方案,因为它很可能是Xcode的错误。
I read here and there that other people have had similar issues but I was wondering if anyone found a solution to this considering it's most likely a Xcode bug.
我尝试过的事情:
- 拔掉第二个屏幕:没有效果
- 重新启动Xcode:无效
- 重新启动Mac:无效
- 清理衍生数据文件夹:无效
- 清洁项目:没有效果
- 当时仅打开1个项目(烦人):稍微好一点,但仍然不是很好
- Unplugging my second screen: no effect
- Rebooting Xcode: no effect
- Rebooting Mac: no effect
- Cleaning Derived Data folder: no effect
- Cleaning project: no effect
- Opening only 1x project at the time (annoying): a bit better but still not great
有人找到解决此问题的方法吗?
Mac Config :
- MacBook Pro(15英寸视网膜,2014年中)
- 处理器:2,5 GHz Intel Core i7
- 内存:16 GB 1600 MHz DDR3
- 图形:NVIDIA GeForce GT 750M 2048 MB Intel Iris Pro 1536 MB
- MacBook Pro (Retina, 15-inch, Mid 2014)
- Processor: 2,5 GHz Intel Core i7
- Memory: 16 GB 1600 MHz DDR3
- Graphics: NVIDIA GeForce GT 750M 2048 MB Intel Iris Pro 1536 MB
Xcode版本: 9.0(9A 235)
Xcode version: 9.0 (9A235)
推荐答案
打开xibs / storyboard,然后关闭编辑器/自动刷新视图。
Open your xibs/storyboards and turn off "Editor / Automatically refresh views".
此问题是由Xcode不断重建项目以更新自定义 IB_DESIGNABLE
视图之类的问题引起的。
The issue is caused by Xcode continually rebuilding your project to update things like custom IB_DESIGNABLE
views.
通过 Editor>手动触发
刷新所有视图
这篇关于Xcode 9-高CPU使用率-风扇最大速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!