I have an XCode project with objective-C files. If I add a new (empty) C file and try to build, I immediately get a lot of errors when creating a precompiled header in the ProcessPCH step. Mistakes are a โfatal error: it is not possible to create the Foundation module, but things were not found in Foundation.h . Delete the C file and it will be created again. What is happening and how to fix it?
(Xcode 5.0, OSX 10.8.4)
EDIT I โโtried the Clean and Clean build folder, with no effect.
Setting EDIT Precompile prefix header = No results in a bunch of syntax errors, for example, in NSObject.h tags (and another Foundation Foundation header).
EDIT User Cy-4AH realized this: the whole pch file should have #ifdef __OBJC__ .
source share