My project has multiple Xcode macOS configurations in Projucer (debug, testing, release) with each some Preprocessor Definition (for example TESTING=1)
When coding in Xcode I change the Build Configuration for my Scheme (see image) to set what I want to build.
Up until Big Sur and Xcode 12 the syntax highlighting followed that. Meaning that code between an #if TESTING
block would be highlighted and autocompleting depending on the selected build configuration.
I just upgraded to Ventura and Xcode 14, and now this is broken for me. Everything in the #if TESTING
block just is plain colored. Deleting the DerivedData didn’t help.
Anyone else found a solution?