Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SourceKitService Crashed

Tags:

xcode

swift

Sometimes I have an issue with Xcode 6.0.1 where the error "SourceKitService Crashed Crashlog generated in ~/Library/Logs/DiagnosticReports" is popping up and all syntax highlighting is gone in Swift. How can I fix this?

enter image description here

like image 208
ChikabuZ Avatar asked Oct 10 '14 09:10

ChikabuZ


2 Answers

Have this problem with Xcode 6.1 (release, not GM).

There a few "magic" solutions that works temporarily, but require a restart. There is quick fix that seems to hold (and does not require a complete restart).

Delete the content of: DerivedData/ModuleCache

(Full path: ~/Library/Developer/Xcode/DerivedData/ModuleCache)

like image 192
bauerMusic Avatar answered Oct 15 '22 02:10

bauerMusic


This is a bug in Xcode and you cannot do much about it.

Update to Xcode 6.2 Beta 1 or higher if you want as the situation improved there. Still happening occasionally though.

like image 32
fluidsonic Avatar answered Oct 15 '22 02:10

fluidsonic