This is more then likely a very simple question but I am completely stumped by it (and more then a little embarrassed by the situation). I have the following code in a command line utility in xCode:
#include <CoreFoundation/CoreFoundation.h>
int main (int argc, const char * argv[]) {
NSFileManager *filemgr = [NSFileManager defaultManager];
}
When I build the project I get an error that "'NSFileManager' is undeclared". If I add the line:
#include <Foundation/Foundation.h>
my error count jumps from 3 to 3951 with all of the errors in the file "NSObjCRuntime.h". I don't think there is anything wrong with the code, but do I have something in the programing environment set up wrong?
Thanks for the help.