Xcode duplicate symbol

我与影子孤独终老i 提交于 2019-12-13 21:13:30

问题


Any suggestions please:

 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

Error statement:

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

回答1:


Updated Possible solutions

  1. Delete your DerivedData folder and build again (you should do that from time to time anyway) - start XCode again, clean, build
  2. remove WikitudeSDK.framework try to build. I can image that you embedded that framework twice, make sure this is not the case by removing one. If it doesnt work, add it again and try to build



回答2:


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.



来源:https://stackoverflow.com/questions/33499570/xcode-duplicate-symbol

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