j2objc Compile error: Undefined symbols for architecture arm64:

人盡茶涼 提交于 2019-12-25 01:22:01

问题


i get the following error when i run j2objcc -o blssmibi BLSSMIBI.o

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_Curve", referenced from: objc-class-ref in BLSSMIBI.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

what should i do to fix this?


回答1:


There's no Curve class anywhere in j2objc's libraries, so my guess it's a dependency from the Java file that you used to generate BLSSMIBI (maybe that's the it looks like a package prefix was used). If you aren't sure what a class's dependencies are, try compiling with javac to a temporary directory and see what name.class files are created (ignore the ones with $ in their names, as they're inner classes). That list of class files is used to figure out all the classes that need transpiling, as well as all the .o files that the app requires.



来源:https://stackoverflow.com/questions/27591288/j2objc-compile-error-undefined-symbols-for-architecture-arm64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!