For some reason, in Xcode 8.2 my code completion has stopped working. I have cleaned my product, restarted Xcode, restarted my computer, and deleted the derived data, and st
Just restarting Xcode worked for me.
If you have any large static literals, try commenting them out. Those can sometimes trip up the compiler.
Just clean and build your app once on Generic iOS Device
, it might be due to some compile time issue, which disables the intelligence, I am seeing this bug since Xcode 8.2.1.
Update: As per @Dareon solution below also works for Xcode Version 8.3 (8E162) and 8.3.2 (8E2002). Thanks, @Dareon for the confirmation. :)
I was facing the same issue and following worked for me.
I am using Xcode Version 8.2.1 (8C1002).
At least, it worked for me.
I had the same issue where the "indexing" did not work. As I was using a pod and static libraries. What I did just rebuild the static libraries separately.
Hope this helps.
I have had major issues with this as well. For me the code completion and formatting gets lost on my current working source file when ever I do a compile. If I go back and switch to a different tab and come back, after a second or two it starts working again. Sometimes even that doesn't work and I have to stay in the same tab and open up a different file and then navigate back.
Even those methods fail if I leave Xcode open and put the computer to sleep for a few hours and come back. When that happens I have to quit Xcode, sometimes Force Quit it, and then after getting back in do the steps above. But I have had to mess around with it after every single compile or compile and run I do. Haven't tried 8.3 beta yet.