Tried to clear / delete derived data several times. Autocomplete has been disabled in some files, but not the App Delegate. After a while, I saw red libraries in his project navigator. They are controlled by cocoapods. The solution turned out to be:
- Go to the project root folder
- Delete the "Pods" directory
- open terminal type cd
- drag the project folder there to get the full path
- run pod install
After reinstalling the containers in the affected files, syntax highlighting and code completion are restored.
source share