I add one header file and its source to my xcode project.
For example , AddToo.h
@interface AddTool : NSObject
-(NSString*) test:(NSString*) string;
@end
And the follow is source code
@implementation AddTool
-(NSString*) test:(NSString*) string {
return string;
}
@end
test.def
language=Objective-C
headers=AddTool.h
package=com.tomliu
when I run the xcode project,
the error occurs
Undefined symbols for architecture arm64: "_OBJC_CLASS_$_AddTool", referenced from:
So should I build AddTool as static library first and add it to linkerOpts in .def file ?
Any other way to resolve this issue?
My kotlin version is 1.3.72
thanks