Seems like < 50% of my code has syntax highlighting now. Anyone find a work around?
syntax highlighting broken in xcode 11?
Could this help, by deleting some derived data ?
h ttp://blog.ericd.net/2018/01/31/xcode-9-lost-syntax-highlighting-and-autocomplete/
quote:
Have you ever been working on a project, and then one day your syntax highlighting is gone? Your autocomplete is generating almost nothing useful? This trick saved me from bouts of madness.
- Quit Xcode
- Finder > Go (hold down the Option key while Go is selected – this will cause Library to pop up)
- Select Library
- Developer > Xcode > Derived Data
- Find the folder that has your app name & a jumble of characters behind it, i.e. “MyApp-dfwdfdfakjakjaka”
- Delete the folder.
- Launch Xcode and open your project
- It will be re-indexed and you’ll see a folder pop back into your Derived Data folder for the project.
- You should be good to go.
First thing I tried and didn't help. Thanks though.
Yes, syntax highlighting is badly broken in Xcode 11. Randomly code is not or wrongly highlighted.
It does not help you but it confirms that the problem is not on your side.
I'm seeing issues with all my Objective-C code in a mixed solution
It is weird, but XCode didn't provided an appropriate description on that problem.
Cache cleans didn't help.
The problem was localised after the first build run where structure names duplication was outlined.
The bug exists in Xcode 12.5!!!!!
I remember this bug exists since Xcode 4! And still happening at 12.5.1. There's no way to reproduce it, just happens usually after a time working in the project. The more files a project has, the more often this happens.