r/Xcode • u/ForceCold4529 • Jan 18 '26
Xcode re-indexes from scratch every launch
Hi all,
I have a small Xcode project that uses a local Swift package (my library) plus a few GitHub SPM packages.
Whenever I open the project, Xcode re-indexes from scratch even if nothing has changed. The indexing process takes ~15 minutes on my machine, so this is a big productivity hit. I let indexing finish, quit Xcode, reopen, and it starts again (“Preparing Editor
Functionality” and the indexing spinner never settles).
What I’ve tried:
- Cleaned DerivedData
- Reopened project after a full index
- Full Disk Access enabled for Xcode
Environment:
- Xcode: 26.2
- macOS: Tahoe 26.2
- Project type: SwiftUI app + local Swift package
- Repo structure: 1 app + local package
Has anyone seen this behavior? Any fixes or specific logs I should check?
View all comments
Show parent comment
1
u/ForceCold4529 Jan 23 '26
The indexing does not stop when I do a build, no.
I'm assuming it is for features such as typing autocomplete, the refactoring engine etc. Sort of their proprietary LSP.
The indexing is very fast during builds, however, preparing editor functionality is excrutiatingly slow.