Skip to contentBlack FridayTaskglass is $9 instead of $14Get the deal →

What is SourceKitService on Mac?

By Junaid, maker of Taskglass · Last reviewed

Summarize this page with

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

  1. 1Wait for Xcode's indexing to finish
  2. 2Break very long expressions into smaller pieces with explicit types
  3. 3Force quit SourceKitService; Xcode restarts it automatically
  4. 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

Part of the Taskglass Process Library · More Developer tools processes

See this process live in Taskglass.

Taskglass shows what SourceKitService is doing on your Mac right now, groups it under the app that started it, and checks its code signature for you. It explains 224 processes this way.

See how Taskglass works →How it compares with Activity Monitor →