duplicate symbols in AdMob

前端 未结 3 874
渐次进展
渐次进展 2020-12-17 02:26

When archiving, such en error occurs:

Projects/Dossier/MultiDocument/Helpers/GAD/libGoogleAdMobAds.a(GADGestureCFiles.o)
    duplicate symbol _tohex in:
             


        
3条回答
  •  太阳男子
    2020-12-17 02:44

    I faced this problem within a Unity game and I had added IronSource Mediation Adapters, if it's your case here's the solution I found: You should use the pods. I guess you are aware of it, but in case you don't know it, it's something like google play services in the Apple products, designed for taking care of the external packages and libraries to include in the project. When you manually add the frameworks into the project it conflicts with other codes of the same package that might already be in the project. In my case solution was removing the "GoogleUtilities" and "nanopb" from Google's Admob frameworks and also the "FBCoreKit" from the Facebook ads frameworks(which had conflicts) and added the following code to a dependencies file in the Unity:

    
            `enter code here`
            `enter code here`
    
    

    This code lets pods take care of the conflicting libraries and removes the duplicate symbols that didn't permit the build to succeed.

提交回复
热议问题