Avatar ·

SourceKitService Terminated: Xcode crashes when editing Swift code

Hi! Xcode keeps crashing with the error "SourceKitService Terminated". This happens when I edit Swift files. The error appears suddenly: I'm writing code, and Xcode freezes for 5-10 seconds, then this message pops up. After that, autocomplete stops working, syntax highlighting disappears, and Xcode becomes almost unusable until I restart it. Here's an example of the code I'm working on: ```swift class DataManager { var items: [String] = [] func processData() { let filtered = items.filter { $0.count > 5 } let mapped = filtered.map { $0.uppercased() } // The crash often happens here let result = mapped.sorted { $0 < $1 } print(result) } func loadData() { // Loading