本文介绍了Xcode 重复符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何建议请:

 duplicate symbol _OBJC_CLASS_$_Reachability in:
        /Users/retributionxd/Library/Developer/Xcode/DerivedData/RevEye-doarrfgrbaqxejbxnrhmfdcgqgka/Build/Intermediates/RevEye.build/Debug-iphonesimulator/RevEye.build/Objects-normal/x86_64/Reachability.o
        /Users/retributionxd/Desktop/amar/reveye/RevEye/WikitudeSDK.framework/WikitudeSDK(Reachability.o)
    duplicate symbol _OBJC_METACLASS_$_Reachability in:
        /Users/retributionxd/Library/Developer/Xcode/DerivedData/RevEye-doarrfgrbaqxejbxnrhmfdcgqgka/Build/Intermediates/RevEye.build/Debug-iphonesimulator/RevEye.build/Objects-normal/x86_64/Reachability.o
        /Users/retributionxd/Desktop/amar/reveye/RevEye/WikitudeSDK.framework/WikitudeSDK(Reachability.o)
    ld: 2 duplicate symbols for architecture x86_64

错误说明:

clang: error: linker command failed with exit code 1 (use -v to see invocation)

推荐答案

出现此错误是由于文件重复.有时我们使用多个框架,但这些框架也有其他框架也有的文件.因此,我们需要识别重复文件并删除它们.

This error occur due to duplicate of files. Sometimes we use multiple frameworks but those framework have files which other framework have too. So, we need to identify the duplicate file and remove them.

这篇关于Xcode 重复符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-10 21:10