Xcode 14 false errors are driving me mad

Since Xcode 14 we've been seeing a number of persistent 'false' errors in our project. It's a large project of ~300,000 lines of mostly Swift, some remnants of Objective-C. UI is mostly UIKit but SwiftUI for all new stuff. The files are split between several frameworks with a Workspace.

This combo of complexity is apparently causing Xcode to fail to assess the type or location of certain symbols and classes.

I have anywhere from 50 to 150 errors which do not prevent me from compiling successfully. It makes refactoring practically impossible since I cannot discern true errors from false ones.

Since upgrading to 14.3 the problem has become much, much worse.

I have a simple project open now, with one UIViewController, presenting a UIHostingController with a SwiftUI view in it. The SwiftUI struct is showing four errors (preventing compilation this time) for code which does not even exists any more. This after cleaning, deleting Derived Data, and restarting Xcode. How is this possible in a project with literally 4 files in it? Where are these errors being cached?

I filed a radar about the false errors. I was asked for logs and data and information. I spent time and effort to gather and supply that, and the ticket has since been completely ignored for months.

I'm on Xcode 15.0.1 and Sonoma 14.1.2 and have been having this problem for months. Swift and metal code for Mac apps only. No simulators. Running on an M1 laptop. No beta versions of Xcode or macOS. I hoped Xcode 15 would solve as it was happening on Xcode 14.

I have tried all the above AND I completely deleted Xcode and did a full reinstall. I still get phantom error messages.

Xcode 14 false errors are driving me mad
 
 
Q