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

后端 未结 3 1908
别跟我提以往
别跟我提以往 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 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'
    

提交回复
热议问题