1

我有一个使用Google Toolbox for Mac和 Firebase Messaging 的 iOS 应用程序。运行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)

我尝试了以下方法:

  • 禁用位码
  • No Common Blocks设置为 Yes(尽管已经如此)

任何人都可以建议吗?不幸的是,由于我当前版本中的错误,看起来需要更新 FM 版本,所以解决它的唯一方法是以某种方式修复这些错误。

4

0 回答 0