Recently I've updated Xcode to the newest version, however my existing code received this error although I didn't change the lib
Xcode 14.3 cannot read c++
I created a new project with no issues. Maybe paths in your build settings are incorrect.
Having very similar issues here. My project worked before, and still does, but the pre-build clang warnings are numerous (and all incorrect).