How to solve “duplicate symbol” when added Firebase in Xcode

后端 未结 3 1906
别跟我提以往
别跟我提以往 2021-02-13 09:44

I can\'t solve the error \"duplicate symbol\".

The error is

duplicate symbol _GSDK_NSClassFromString in: .../Pods/FirebaseCore/Frameworks/FirebaseCore.fr         


        
相关标签:
3条回答
  • 2021-02-13 09:58

    I solved the issue by

    1. Deleting everything from my podfile and running pod install
    2. Putting everything back in my podfile and running pod install

    It's the only thing that worked for me.

    0 讨论(0)
  • 2021-02-13 10:16

    There was a Firebase build issue introduced in 3.11.1 that will be fixed in 3.13.0 that can cause the duplicate symbol problem. In the meantime, a workaround is to back up to Firebase 3.11.0, by annotating any Firebase subspecs in your podfile with an explicit version number, like :

    pod 'Firebase/Analytics', '3.11.0'
    
    0 讨论(0)
  • 2021-02-13 10:23

    I had the same issue. It seems that the -all_load flag in the Other Linker Flags is causing this.

    0 讨论(0)
提交回复
热议问题