Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode is losing colours and auto complete

Tags:

xcode

Using Xcode 7.3 , sometimes randomly the editor turns to be black, no syntax colours , but worse- no auto complete for local variables and functions.

When you compile again, you get the colours back , but still no auto complete. Sometimes there is a message that there is a problem with the editor.

I did not have this problem before (5 years), and I'v read this thread which does not seems like the same problem, because its too old : Xcode: code loses syntax coloring

This might seems like a small thing, but without the auto-complete -its really hell !

like image 921
Curnelious Avatar asked Mar 14 '26 06:03

Curnelious


1 Answers

this is common issue. any chance you are coding in Swift? i think it is still kind of unstable.

but you can try

1) delete module cache

it is within the same folder as project's derived data. when syntax highlighting stops working, try to delete it. quit xcode and delete ~/Library/Developer/Xcode/DerivedData/ModuleCache directory

2) clean project

try clean with ⌘ + ⇧ + K and then with ⌥ + ⌘ + ⇧ + K

3) restart xcode

like image 169
ha100 Avatar answered Mar 16 '26 20:03

ha100



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!