Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 7.3.1 autocomplete code completion not working

Ever since Xcode 7.3 the autocompletion or code completion doesn't work properly.

Simple import class and it can't autocomplete

I have tried:

  • Deleting Derived Data folder
  • Clean Targets and Build
  • Reinstalling Xcode

It does autocomplete after you type it out fully the first time. But if you haven't referenced it once (i.e. like enums) it only shows what you typed out before (not showing full list of enums). Pressing escape doesn't help either.

Any other suggestions? Or anyone else experiencing the same?

like image 283
mashdup Avatar asked May 05 '16 10:05

mashdup


2 Answers

Without doing anything, In Build-Settings -> Deployment changing iOS Deployment target from 8.0 to 8.1 resolved the issue for me.

enter image description here

It also works for XCode 6 as mentioned here

Also works on Xcode 8, Simply change the deployment target from iOS 9.0 to iOS 9.1.

like image 94
Tunceren Avatar answered Sep 27 '22 19:09

Tunceren


Xcode 8 has now fixed this very annoying autocomplete issue. So anyone who is still having this problem, update to Xcode 8.

Edit: Please note, this has not solved for others. So your milage may vary. For me, it has fixed without doing anything extra. But they are using their new 'intelligent' autocomplete. Thinking about it, it could be part of the indexing. Deleting the DerivedData folder could help.

like image 24
mashdup Avatar answered Sep 27 '22 19:09

mashdup