TL;DR — sourcekit-lsp cannot index an .xcodeproj by itself. It can reuse the index Xcode
already built, but only through a Build Server Protocol bridge. Set that up with two commands per
checkout. The resulting buildServer.json must be gitignored, and must never be copied between
worktrees — it hard-codes absolute paths to one checkout's index.
Verified on macOS with Xcode 26.x / Swift toolchain 2026-08-10, xcode-build-server 1.3.0.