build error duplicate symbols arclite.o

大兔子大兔子 提交于 2019-12-04 10:45:23

问题


I am trying to build my Xcode project, but I recieve the error displayed below. Please help me to solve this error, thank you in advance.

duplicate symbol __non_lazy_classes in:
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/lib/arc/libarclite_iphoneos.a(arclite.o)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a(arclite.o)
duplicate symbol _OBJC_METACLASS_$___ARCLite__ in:
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.10.xctoolchain/usr/lib/arc/libarclite_iphoneos.a(arclite.o)
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a(arclite.o)
ld: 2 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

回答1:


Removing one of the libraries you passed to linker can solve this issue.



来源:https://stackoverflow.com/questions/34531958/build-error-duplicate-symbols-arclite-o

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