When using the Projucer, I keep receiving the compilation error "file 'x.h' from the precompiled header has been overridden". Once this has happened, the only way to get the JIT engine going again is to do "Clean All" which requires a full recompile and slows things down a lot. Some of the time this error shows up every 30 seconds or so. It seems that often the files which throw the error, are all the currently open header files under the "Window" menu in Projucer.
What does this error actually mean?
What can I do differently to avoid it?
Repeatedly receiving this error and having to do a full recompile is rather mitigating the fun & productivity enhancement of having the JIT engine.
That's a good question - we tried to figure it out a while ago but never got to the bottom of it! Seems to be something in clang that's detecting some kind of mismatch between precompiled headers and new code, but we couldn't find a way to automatically avoid it. Will hopefully have time to try again soon..
I get this quite often but I find if I’ve launched Projucer, let it fail as it often seems to at first with this error, do a clean-all, let it complete the build and only then load and start compiling stuff in XCode it’s fine for the rest of the day. It’s a little bit of an annoyance, but the tool is so useful it doesn’t matter really.
The message of " [File ‘x.h’ from the precompiled header has been overridden]" still lasts after conducting “Clean All” which unables me to compile. Does anyone know how to solve it?