I have had an issue with syntax highlighting/coloring since Xcode 9.3.0. I work in multiple tabs a lot. Sometimes I have the same file open in multiple tabs to either have reference to different parts of the file or if I'm using one with the debugger and the other for reference.
Since 9.3.0, when I launch my app with a file open in more than one tab, I lose part of the syntax highlighting. It seems to be mostly custom classes, (green in the dusk color scheme). This can be very tedious with debugging as I have Xcode set to open a preset 'Debug' tab when it hits a breakpoint. Essentially I will have a file open, launch the app, hit a breakpoint, Xcode opens the same file in the 'Debug' tab, and I lose syntax highlighting when I need it most, to debug.
I have tried the following
- Delete derived data folder
- Quit Xcode
- Restart computer
- add $(SRCROOT) to header search paths
- cleaned project
- cleaned build folders
Please note, I have also tried this on a brand new project with only a couple of classes and just a few lines of code. It still happens.
Please also note, I have tried installing a fresh version of Xcode on a brand new user account, devoid of ALL my previous xcode settings and preferences. It still happens.
I have also downloaded 9.3.1 and tried it. It still happens
This is driving me crazy. I would absolutely love to find a solution to this. I'm hoping this gets to a boss source kit expert who can be my hero! 💪
Update: 5/18/18 Just tested on a friend's computer and can confirm this is happening for him as well.