Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 code completion and highlighting not working

Tags:

xcode

xcode9

I have seen many threads about this online, but not for Xcode 9. For some reason code completion and syntax highlighting is no longer working. Last week it was fine.

Using the GM build.

Anyone have this issue or know how to resolve it? A restart of Xcode and my computer did not help.

like image 941
Nic Hubbard Avatar asked Sep 25 '17 21:09

Nic Hubbard


2 Answers

In Finder I navigated to user->Library->Developer->Xcode->DerivedData and deleted the subfolder of the project in question. After next build of the project the syntax highlighting and code completion returned.

like image 160
gpdawson Avatar answered Nov 06 '22 17:11

gpdawson


In my situation, there are a few of .swift files not working. I've overcome by removing these files from project and re-adding them back.

like image 7
Khang Azun Avatar answered Nov 06 '22 16:11

Khang Azun