本文介绍了如何解决“重复的符号”在Xcode中添加Firebase时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 错误是 重复符号_GSDK_NSClassFromString位于:... / Pods / FirebaseCore / Frameworks / FirebaseCore.framework / FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) /Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities (overload.o) 重复的符号_GSDK_objc_getClass in:... / Pods / FirebaseCore / Frameworks / FirebaseCore.framework / FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) / Pods / GoogleSymbolUtilities / Frameworks / frameworks /GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o) 重复的符号_GSDK_objc_getProtocol in:... Pods / FirebaseCore / Frameworks / FirebaseCore.framework / FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) ... /Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o) 重复的符号l _GSDK_objc_lookUpClass in:... Pods / FirebaseCore / Frameworks / FirebaseCore.framework / FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) ... Pods / GoogleSymbolUtilities / Frameworks / frameworks / GoogleSymbolUtilities.framework / GoogleSymbolUtilities(overload.o) ld:体系结构arm64的4个重复符号 clang:错误:linker命令失败,退出代码1(使用-v查看调用) 我更新并安装了Podfile。但它不起作用。 $ b Pod文件 $ p $'' $' / code> 我可以在之前添加Firebase。但是当我不小心删除FirebaseCore.framework。 之后,我删除了Pods并重新安装了Firebase,但是没有成功。 如何解决这个问题? 解决方案我有同样的问题。看起来,其他链接器标志中的-all_load标志正在导致这种情况。 I can't solve the error "duplicate symbol".The error isduplicate symbol _GSDK_NSClassFromString in: .../Pods/FirebaseCore/Frameworks/FirebaseCore.framework/FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) /Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o)duplicate symbol _GSDK_objc_getClass in: .../Pods/FirebaseCore/Frameworks/FirebaseCore.framework/FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o)/Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o)duplicate symbol _GSDK_objc_getProtocol in: ...Pods/FirebaseCore/Frameworks/FirebaseCore.framework/FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) .../Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o)duplicate symbol _GSDK_objc_lookUpClass in: ...Pods/FirebaseCore/Frameworks/FirebaseCore.framework/FirebaseCore(overload_9ea29fd47bf44ee000bc4282b65dac06.o) ...Pods/GoogleSymbolUtilities/Frameworks/frameworks/GoogleSymbolUtilities.framework/GoogleSymbolUtilities(overload.o)ld: 4 duplicate symbols for architecture arm64clang: error: linker command failed with exit code 1 (use -v to see invocation)I updated and installed Podfile. But it didn't work.Pod file target 'game' do # Pods for game pod 'Firebase' pod 'Firebase/AdMob'endI could add Firebase before. But when I accidentally delete "FirebaseCore.framework".After that I deleted Pods and reinstalled Firebase, but it didn't work.How can I solve it? 解决方案 I had the same issue. It seems that the -all_load flag in the Other Linker Flags is causing this. 这篇关于如何解决“重复的符号”在Xcode中添加Firebase时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-17 11:51