Questions tagged [sourcekitservice]

11 questions
242
votes
34 answers

SourceKitService Terminated

I am having a issue with Xcode where the error "Source Kit Service Terminated" is popping up and all syntax highlighting and code completion is gone in Swift. How can I fix this? Here is an example image:
Tony
  • 4,609
  • 2
  • 22
  • 32
7
votes
4 answers

SourceKitService eating all CPU on Xcode 8.3.2

I'm ok Xcode 8.3.2 and SourceKitService is using all my CPU. I read a lot of questions here on stackoverflow, but I could't find a real solution. What I tried: Clean project data: cmd+shift+alt+K Delete derivedData folder reboot Xcode redownload…
Stefano Giacone
  • 2,016
  • 3
  • 27
  • 50
5
votes
2 answers

Xcode 8.1 SourceKitService loads CPU completely

SourceKitService eats CPU resource. Sometimes it loads the processor completely, when I work in Xcode 8.1 (Version 8.1 (8B62)). MacBook (macOS Sierra 10.12.1 (16B2555)) slows down and gets very hot. How to fix it? If I remove SourseKitservise how…
Roman
  • 1,045
  • 1
  • 12
  • 33
3
votes
1 answer

SourceKitService very high memory usage

I am using Xcode 9 and my SourceKitService using more than 5 GB memory. Due to it my system become very slower. Every time, I have to force quite this service from activity monitor to come back to normal situation. A few minutes back this service…
Code Hunter
  • 10,075
  • 23
  • 72
  • 102
2
votes
1 answer

Xcode builds are taking much longer than usual and causing MacBook fans to go crazy

I am building/running a relatively simple chat application. Every time I run/build the application, the fans on my MacBook get extremely loud and my computer begins to heat up very quickly. Furthermore the builds are taking a ridiculous amount of…
Jack Wu
  • 37
  • 5
1
vote
0 answers

Using "userNotificationCenter willPresent notification: UNNotification" slow extremely my computer

When using func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) in AppDelegate, Sourcekitservice and…
jimymy
  • 11
  • 2
1
vote
2 answers

SourceKitService Terminated with no Xcode warning or errors

I was spacing out while starting a new project to port one of my Obj-C/SpriteKit apps over to Swift and started to add a touch for loop within touchesMoved. My mistake, but the weird issue is that I get "SourceKitService Terminated" and Xcode…
Christian
  • 336
  • 1
  • 4
  • 16
0
votes
1 answer

XCode 7.2 crashes when protocol extension implements function incorrectly

Not sure if anyone else has run into this, but the following code will cause XCode to immediately error out with 'SourceKitService quit unexpectedly' and sometimes causes XCode to crash completely. I ran into this scenario in my project when I had…
Villarrealized
  • 867
  • 1
  • 6
  • 13
0
votes
1 answer

Swift compiler 2.1.1 hang forever on dictionary

I was building a class for a sqlite library, and suddenly the compiler hang forever. I finally get a test case for it, and found is related to a dictionary parsing. This is the minimal code: import Foundation import GRDB class DeudaCliente : Record…
mamcx
  • 15,916
  • 26
  • 101
  • 189
0
votes
2 answers

Xcode 6-Beta keeps crashing with a SourceKitService Terminated Editor functionality temporarily limited error

I have seen other questions with a similar problem but mine looks a bit more serious. Xcode keeps crashing on me. I have no chance to even edit a single character in my code. It is a very simple playground file with some basic code, nothing fancy.…
Shwethascar
  • 1,142
  • 9
  • 18
0
votes
1 answer

"SourceKitService Terminated" when working in multiple Swift projects?

I'm trying to set up a CocoaTouch Framework project for iOS using Swift, but any time I add another project it freaks out and throws a "SourceKitService Terminated" error and the editor window goes black and white. Here's what I'm able to do to…
MatthewSot
  • 3,516
  • 5
  • 39
  • 58