构建错误重复符号arclite.o

时间:2015-12-30 15:04:53

标签: xcode linker arm64

我正在尝试构建我的Xcode项目,但我收到了下面显示的错误。请帮我解决这个错误,提前谢谢。

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 个答案:

答案 0 :(得分:0)

删除传递给链接器的其中一个库可以解决此问题。