Xcode 7.3 autocomplete is so frustrating

前端 未结 11 845
小鲜肉
小鲜肉 2020-12-04 07:55

There is a new autocomplete in Xcode. Probably might be useful because it checks not only beginning of names etc. But I found that very often it doesn\'t find a class name o

相关标签:
11条回答
  • 2020-12-04 08:32

    I have the impression that some 'parts' of autocompletion simply fail after a while. I use to restart the Mac to get it back working. But sometimes it fails quite soon again. Maybe the answer of @Alex Bykov combined with a restart will do the trick.

    Anyway: auto-completion of Xcode always was crap. AppCode used to get it much better. Unfortunately not yet with swift.

    0 讨论(0)
  • 2020-12-04 08:35

    It seems that clearing the checkbox "Enable type-over completions" in XCode -> Preferences -> Text Editing does the trick. At least in my case autocompletion fell back to a sort of old way, so it could autocomplete the class name that I had to type in manually before that.

    0 讨论(0)
  • 2020-12-04 08:35

    it doesn't find a class name

    As a work-around, you can try to press Command + Shift + K and Command + B Several times,it works temporarily.

    0 讨论(0)
  • 2020-12-04 08:39

    just open Xcode derived data folder and delete the folder

    /Users/yourUserName/Library/Developer/Xcode/DerivedData

    then restart Xcode, now autocompletion works like a charm

    0 讨论(0)
  • 2020-12-04 08:41

    I didn't run into this until I created a couple of new class files. Other classes worked fine, but autocomplete would NOT work for anything in the new files...

    FIX (for me) - I had to add those files to ALL of my targets, including the unit test targets even though I wasn't using them yet.

    0 讨论(0)
  • 2020-12-04 08:47

    Xcode 7.3.1

    1. In Xcode > Preferences > Text Editing

      uncheck Enable type-over completions

    2. restart Xcode

    0 讨论(0)
提交回复
热议问题