Can't build getting NSApplication error

I’m trying to build an example. Specifically an example with openni. Everytime I use either the ofxNI2 or ofxOpenNI example I get this error:
Undefined symbols for architecture i386:
OBJC_CLASS$_NSApplication”, referenced from:
objc-class-ref in openFrameworksDebug.a(ofAppGlutWindow.o)
ld: symbol(s) not found for architecture i386

Which is strange, it looks like it’s something inside of open frameworks that isn’t being included. NSApplication is within the AppKit framework which I’ve made sure to include but still nothing is working. Anyone had similar problems?