使用Google Toolbox for Mac和Firebase Messaging时出现重复符号错误

时间:2017-02-20 20:24:12

标签: ios objective-c xcode firebase google-toolbox-for-mac

我有一个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)

我尝试了以下内容:

  • 禁用Bitcode
  • No Common Blocks 设置为Yes(虽然已经是这种情况)

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

0 个答案:

没有答案