I have a static target library that uses Foundation classes (NSArray, etc.). I want to use this static library in the target command line tool. The command line tool contains only C files. From the command line tool, I want to call a method exported to a static library. So I changed the header search path and linked the static library. When I compile a command line tool, it follows 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?Hi
Devara Goodda
source
share