我有一个iOS应用程序,它使用Google Toolbox for Mac和Firebase Messaging。运行pod update
以更新到最新版本的FM后,在Xcode项目上运行Build后出现以下错误:
duplicate symbol _OBJC_IVAR_$_GTMSessionFetcher._taskPriority in:
.../Xcode/DerivedData/.../Build/Intermediates/....build/Debug-iphonesimulator/....build/Objects-normal/x86_64/GTMSessionFetcher.o
.../Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/GTMSessionFetcher/libGTMSessionFetcher.a(GTMSessionFetcher.o)
duplicate symbol _OBJC_IVAR_$_GTMSessionFetcher._servicePriority in:
.../Xcode/DerivedData/.../Build/Intermediates/....build/Debug-iphonesimulator/....build/Objects-normal/x86_64/GTMSessionFetcher.o
... // many more similar errors
duplicate symbol _OBJC_IVAR_$_GTMSessionFetcherService._retryEnabled in:
.../Xcode/DerivedData/.../Build/Intermediates/....build/Debug-iphonesimulator/....build/Objects-normal/x86_64/GTMSessionFetcherService.o
.../Xcode/DerivedData/.../Build/Products/Debug-iphonesimulator/GTMSessionFetcher/libGTMSessionFetcher.a(GTMSessionFetcherService.o)
ld: 147 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我尝试了以下内容:
任何人都可以提供建议吗?不幸的是,由于我当前版本中的一个错误,看起来需要FM版本更新,所以解决它的唯一方法是以某种方式修复这些错误。