jptsetung
jptsetung

Reputation: 9156

Xcode 9.2 is re-indexing from scratch each time I open it, even if nothing changed

I have a project (big project), that takes about 30 minutes to be indexed by Xcode. Xcode consumes 100% of my CPU for 30mn.

OK why not, that sounds a bit rude to use 100% of the CPU for a background task, but why not.

Now, if after 30 minutes, I quit Xcode, and re-open it, without touching a single file of my project, it starts again to index for 30 minutes.

Is this the intended behaviour? Is there a way to fix it? I don't want to turn off inedxing, I tried it, and code completion is HS.

Upvotes: 2

Views: 264

Answers (1)

greencardigan
greencardigan

Reputation: 413

Try adding this flag to your build settings.

Xfrontend -warn-long-expression-type-checking=400

build settings flag

It will cause warning where the compiler take a long time to deduce a complex expression.

warning

This may cause a build error which will go away after you find the slow expressions and then remove the build flag.

Upvotes: 1

Related Questions