We have a fairly large project containing Objective-C and C ++ files. All C ++ files are used at build time, but only some of them are ever opened with Xcode, and there are many that should never be opened at all. But Xcode adds all the file information to the index, as a result, our .xcindex file is about 40 GB in size. Obviously, this is very inconvenient. My question is: is there a way to turn off indexing for some part of the project? For some source files, a group of files, or entire subprojects. I tried setting explicitFileType for some sources to "compile". This disables indexing for them, but they will also not compile. The build system does not know what to do with them ("warning: there is no rule for processing the file"), even if they are listed in the "Compile Sources" assembly phase. Adding a custom rule for these source files also does not work - the CompileC command is executed, but does it have ?? instead of the "C ++" argument, and all clang command line flags are lost. Any suggestions would be highly appreciated.
source share