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

ⅰ亾dé卋堺 提交于 2019-12-24 10:35:45

问题


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.


回答1:


Try adding this flag to your build settings.

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

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

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



来源:https://stackoverflow.com/questions/49274982/xcode-9-2-is-re-indexing-from-scratch-each-time-i-open-it-even-if-nothing-chang

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!