I import j2objc to my project, but I still get error like Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_Test
(public class Test
in java source). I found something about wrong linking static library to project (libjre_emul.a
). I found possible official solution add to Other Linker Flags flag "-l jre_emul"
.
Problem is I get error ld: library not found for -l jre_emul
what does it mean? How can I fix this?
I tried extended command:
"-l jre_emul -ObjC -force_load ${PROJECT_DIR}/lib/libjre_emul.a"
Error library not found still remains. Any idea?
Thanks.