I have an Xcode project for my Cocoa application. All this is Objective-C.
The problems started after I added a new .c file from the menu (Add C file and header): test.c and header test.h.
When I try to compile a project, there are thousands of errors. All of them are complaints about syntax errors. For instance:
NSObjCRuntime.h: Expected identifier or '(' before '@' token
Both new files, test.c and test.h , do not contain any code, only default header comments. Something must really be broken with my project configuration. When I delete these two files, the project compiles just fine.
The project language is set to C99. Is there anything else I could check?
Thanks Mark
Mark source share