How to link Cocoa static library to C command line target?
- by Devara Gudda
I have static library target, which uses Foundation classes(NSArray,etc) . I want to use this static library in Command line tool target. The command line tool contains only C files. From command line tool I want to call a method exported in static library. So I have modified header search path and linked the static library.
When I compile the command line tool it is following linker errors.
Undefined symbols:
"_OBJC_CLASS_$_NSMutableArray", referenced from:
"_objc_msgSend", referenced from:
What is the method to link a static library which uses Foundation classes from a command line tool which contains C files?
Regards
Devara Gudda