What is XCBBuildService / SWBBuildService on Mac?
By Junaid, maker of Taskglass · Last reviewed
Xcode's build system service, which plans and runs your project's builds.
XCBBuildService is the service that runs Xcode's build system; newer toolchains include SWBBuildService, from Apple's open-source Swift Build. It works out what needs to be compiled and launches the compilers and other tools. It's active while building or while Xcode prepares build information for indexing.
- Category
- Developer tools
- Made by
- Apple
- Safe to quit:
- With care
Shown in Activity Monitor as XCBBuildService, SWBBuildService
Why is XCBBuildService / SWBBuildService using so much CPU or memory?
- Building a project, especially the first or a clean build
- Large projects with many targets or packages
- Xcode preparing build information for indexing
What to do
- 1Let the build finish
- 2Close other projects open in Xcode
- 3Quit and reopen Xcode if it stays busy after builds end
- 4Delete Derived Data if builds keep misbehaving
Safe to quit? With care.
Any build in progress fails; Xcode starts it again for the next build.
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.
XCBBuildService
- Location
- /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService
- Part of
- Xcode
- Signed by
- Apple
Check the signature in Terminal:
codesign -dv --verbose=2 "/Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService"
The genuine file prints these lines:
Identifier=com.apple.dt.XCBBuildService Authority=Software Signing TeamIdentifier=59GAB85EFG
SWBBuildService
- Location
- /Applications/Xcode.app/Contents/SharedFrameworks/SwiftBuild.framework/Versions/A/PlugIns/SWBBuildService.bundle/Contents/MacOS/SWBBuildService
- Part of
- Xcode
- Signed by
- Apple
Check the signature in Terminal:
codesign -dv --verbose=2 "/Applications/Xcode.app/Contents/SharedFrameworks/SwiftBuild.framework/Versions/A/PlugIns/SWBBuildService.bundle/Contents/MacOS/SWBBuildService"
The genuine file prints these lines:
Identifier=com.apple.dt.SWBBuildService 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 XCBBuildService
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 XCBBuildService / SWBBuildService
It is started by Xcode. Quit Xcode (⌘Q) and open it again, and it starts a fresh XCBBuildService.
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.
- clang (and ld)The C, C++ and Objective-C compiler (clang) and the linker (ld) used during builds.
- ibtooldInterface Builder's helper in Xcode, for storyboards and XIB interface files.
- SourceKitServicePowers Swift code completion, syntax highlighting and error checking in Xcode.
- zsh (shell)The command-line shell that runs inside Terminal windows and scripts.
Part of the Taskglass Process Library · More Developer tools processes