We have a very large project that consists of 1000+ source files that builds 20+ targets (libraries and different versions of our app). Most is C++.
We recently started having problems with intenseness. The strange thing is that compiling and navigation works but simple code completion is suddenly very broken.
I manage to narrow it down to a simple use-case by deleting all the targets but one, and all the source files but two. I have a simple main.cpp that includes one header file test.h. If test.h is in the same folder as main.cpp, then intellisense works, but placing it in any other folder (all part of my project), intellisense stops working.
I've re-created this simple project from scratch, reproducing the file structure. Intellisense would work in this case. I could open the two projects side by side and went through all project and target settings and they were all identical, but the one from our original project does not work.
Can it be that the project contains something corrupt that was built up over the years? I really do not want to create the entire project and targets again from scratch.
I've done all the tricks I could find on the forums (Removing Derived folder; opening and closing Xcode; etc.). Nothing works, except apparently creating the project from scratch. The problem is also present in latest Xcode 15 Beta.
Any ideas on how to fix this?