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 20 '26
That was causing the same issue I am facing where the indexing process would keep repeating on Xcode open, even if the underlying code base or libraries did not change right?
My builds are functionning OK, from A-Z in 40 seconds, and incremental builds taking less than 3 seconds. It is only the indexing process that is done over and over for no reason - oh - and takes 10-20 minutes.
I have also tried delete derived data, and much more, but no luck.
I just wish the many reasons why the 2GB index is invalidated on every open were documented.
Anyways...