问题描述
这不是Beta问题。我正在使用Xcode 6.0.1,即生产版本。我遇到的问题是,当我尝试构建或运行我正在处理的代码时,Xcode在很长一段时间内都没有响应,并且SourceKitService消耗了超过400%的CPU(根据Activity Monitor)。这个问题在最近几天是新的,但奇怪的是,自从它于9月17日正式发布以来,我一直在使用Xcode 6.0。我升级到6.0.1,希望它能解决这个问题。
This is NOT a Beta issue. I am on Xcode 6.0.1, production release. The issue I am having is that when I try to do a Build or Run the code I am working on, Xcode becomes unresponsive for large periods of time and the SourceKitService consumes upwards of 400% of the CPU (according to Activity Monitor). This issue is new as of the last few days, although, oddly, I had been on Xcode 6.0 since it was officially released on Sept 17. I upgraded to 6.0.1 hoping it would contain a fix for this issue.
有什么问题可以解决?
推荐答案
遇到这个问题今天早些时候使用Xcode 6.1.1(不是beta版,官方发布版)。我一直在Playground上运行一些代码,并怀疑这是原因。 CPU被盯住了近100%,而Xcode无法完成构建。
Ran into this problem with Xcode 6.1.1 earlier this afternoon (not beta, official released version). I had been running some code on Playground and was suspecting that to be the cause. CPU was pegged to nearly 100%, and Xcode was unable to complete builds.
所以这就是我所做的:
1.已打开Activity Monitor,它显示SourceKitService为主要的CPU hog。
2.在Activity Monitor中,双击SourceKitService并单击打开文件和端口部分,显示它是处理特定文件夹的/ Users / myname / Library / Developer / Xcode / DerivedData / ModuleCache /目录下的文件。