问题
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