我正在尝试将mobile.connect.framework添加到现有项目。在添加框架之前,该应用程序正在正确构建并运行。但是,一旦我添加了框架,就会出现重复符号_OBJC_CLASS _ $ _ Base64错误。我经历了许多类似Duplicate Symbol _OBJC_CLASS_$_LoginController的帖子

How duplicate symbol problem arises。但无法找到解决方案。
请帮我解决这个问题。它已经消耗了我半天时间。

错误:-
ld: warning: directory not found for option '-L/Users/shailendra.suriyal/Documents/MyProjects/taxi_ios_client/UberNewUser/ExternalLib/CardIO'duplicate symbol _OBJC_CLASS_$_Base64 in: /Users/shailendra.suriyal/Library/Developer/Xcode/DerivedData/Muri-hadqxhhslzvmwfddwlthosrdljjy/Build/Intermediates/Muri.build/Debug-iphonesimulator/Muri.build/Objects-normal/x86_64/Base64.o /Users/shailendra.suriyal/Documents/MyProjects/taxi_ios_client/UberNewUser/ExternalLib/FrameWork/mobile.connect.framework/mobile.connectduplicate symbol _OBJC_METACLASS_$_Base64 in: /Users/shailendra.suriyal/Library/Developer/Xcode/DerivedData/Muri-hadqxhhslzvmwfddwlthosrdljjy/Build/Intermediates/Muri.build/Debug-iphonesimulator/Muri.build/Objects-normal/x86_64/Base64.o /Users/shailendra.suriyal/Documents/MyProjects/taxi_ios_client/UberNewUser/ExternalLib/FrameWork/mobile.connect.framework/mobile.connectld: 2 duplicate symbols for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

终于我明白了。我只是从“构建阶段”下的已编译资源中删除了Base64.h。

10-08 00:30