Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8.3 - SourceKitService CPU 95%+ loads

Tags:

xcode

ios

xcode8

Hi all iOS developer buddies, I updated my Xcode to 8.3 yesterday. And start from then, my MacBook fans kept running continuously. I opened 'Activity Monitor' and found that the SourceKitService took 95%+ to 130%+ CPU load. But I didn't even build my xcode project, I just opened it for code referencing (for Android).

Does anyone have any idea, how to tweak the settings to lower the CPU load?

like image 273
Pang Ho Ming Avatar asked Apr 07 '17 10:04

Pang Ho Ming


2 Answers

Me too ~

When I encounter this problem.

I found that there are multiple threads SourceKitService .

Kill the SourceKitService thread that use CPU higher.

And then clean the xcode project and clean Build Folder.

solved

like image 200
user6864912 Avatar answered Sep 22 '22 00:09

user6864912


I found out the problem and fixed it finally.

If you upgraded your Mac SSD(In my case, I brought a OWC Aura SSD for my late 2013 mbp.), you need to check if TRIM is enabled or not.

You can enable it by typing sudo trimforce enable in Terminal.

like image 29
Pang Ho Ming Avatar answered Sep 20 '22 00:09

Pang Ho Ming