I have a Swift project using Core Data and the generated code for saveContext() is causing Xcode to crash with the SourceKitService Crashed error. When I comment it
I would work on various projects and continually get this error, sometimes to the point where Xcode became unusable. I eventually solved the problem by quitting Xcode, emptying out the ~/Library/Developer/Xcode/DerivedData folder, and then reopening the project.