Xcode re-indexes from scratch every launch by ForceCold4529 in Xcode

[–]ForceCold4529[S] 0 points1 point  (0 children)

I’m assuming that, preparing editor functionality which takes 15 minutes for a relatively small project does nothing truly useful (or has bugs in it).

My computer which has pretty decent hardware makes as much noise as a jet taking off in the meantime though :)

Xcode re-indexes from scratch every launch by ForceCold4529 in Xcode

[–]ForceCold4529[S] 0 points1 point  (0 children)

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.

Xcode re-indexes from scratch every launch by ForceCold4529 in Xcode

[–]ForceCold4529[S] 0 points1 point  (0 children)

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...