What is SourceKitService on Mac?
By Junaid, maker of Taskglass · Last reviewed
Powers Swift code completion, syntax highlighting and error checking in Xcode.
SourceKitService understands your Swift code as you type in Xcode: it provides code completion, syntax highlighting, jump-to-definition and live error checking. It's part of the Swift toolchain. On large projects, or with very complex expressions that are hard for the compiler to work out, it can use a lot of CPU and memory.
- Category
- Developer tools
- Made by
- Apple
- Safe to quit:
- With care
Shown in Activity Monitor as SourceKitService
Why is SourceKitService using so much CPU or memory?
- Opening or editing a large Swift project
- Complex expressions that are slow to type-check
- Switching branches, so lots of code changed at once
What to do
- 1Wait for Xcode's indexing to finish
- 2Break very long expressions into smaller pieces with explicit types
- 3Force quit SourceKitService; Xcode restarts it automatically
- 4Delete Derived Data (Xcode Settings > Locations) and restart Xcode if it stays stuck
Safe to quit? With care.
Xcode restarts it automatically; code completion pauses for a moment.
Typical CPU and memory use
Rough ranges on Apple Silicon Macs. Yours will vary.
- Memory
- 200 MB – several GB on large projects
Measured on an Apple M4 Mac running macOS 27.0.1 on November 17, 2026, during normal use:
SourceKitService: 1 MB of memory (largest of 2 copies), running as your user account
Resident memory from ps at one moment. It changes with what you're doing.
Is it genuine? How to check
Malware sometimes borrows the name of a real process. The real one runs from a fixed place and carries its maker's code signature, so check both.
SourceKitService
- Location
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService
- Part of
- Xcode
- Signed by
- Apple
Check the signature in Terminal:
codesign -dv --verbose=2 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/XPCServices/SourceKitService.xpc/Contents/MacOS/SourceKitService"
The genuine file prints these lines:
Identifier=com.apple.SourceKitService.6.4.2.1.9_default Authority=Software Signing TeamIdentifier=59GAB85EFG
To see where the running copy lives, run this in Terminal and compare the path:
ps -axo pid,user,comm | grep -F SourceKitService
In Activity Monitor: select the process, click the Info button (ⓘ), then Open Files and Ports. The first line is the program's path.
Paths and signatures checked on macOS 27.0.1 (26A434), Apple M4, November 17, 2026. Other macOS versions can differ.
How to restart SourceKitService
It is started by Xcode. Quit Xcode (⌘Q) and open it again, and it starts a fresh SourceKitService.
Related guides
Related processes
- XcodeApple's app for building Mac, iPhone and iPad apps.
- swift-frontendThe Swift compiler. Many copies run at once while Xcode or SwiftPM builds your code.
- XCBBuildService / SWBBuildServiceXcode's build system service, which plans and runs your project's builds.
- ibtooldInterface Builder's helper in Xcode, for storyboards and XIB interface files.
- Visual Studio CodeMicrosoft's Visual Studio Code editor and its main helper processes.
- zsh (shell)The command-line shell that runs inside Terminal windows and scripts.
Part of the Taskglass Process Library · More Developer tools processes