Till now it cannot autocomplete ,I used swift to accomplish my project
Xcode Autocomplete
Which version of XCode ?
Did you try to
- first do a clean build folder (option click in Product Menu of XCode / Build Clean Folder
If not enough,
- close the project, quit XCode and reopen (to force indexing)
Using the newly released version of Xcode 9, I did Option + Clean Build Folder ... . I closed the project window in Xcode. I quit Xcode. Reopened it, waited the usual 15 minutes of "Indexing | Processing files" . Still no autocomplete. So I deleted Xcode, deleted all the derived data folders, and emptied the trash. Reinstalled Xcode from the App Store (an hour), again waited the usually 15 minutes of "Indexing | Processing files". Now autocompletion works.
Thanks for the feedback.
The first solution tou tried (close and reopen) should have worked !
Reinstalling XCode is in fact a last thing to try when nothing else has worked.
I have the same issue with xCode 9. Tried to do everything starting from deleting Derived Data and ending with re-installing xCode. Tried to install xCode 8.3.2 and autocomplete works there.
What I've noticed, when I delete Derived Data and building a project in xCode 9, no frameworks are generated to folder DerivedData/Build/Products, this folder is empty. Project compiles with no problems and can be run on Simulator and device, but no autocomplete available, just getting <<error type>> for all variable types.