When archiving, such en error occurs:
Projects/Dossier/MultiDocument/Helpers/GAD/libGoogleAdMobAds.a(GADGestureCFiles.o)
duplicate symbol _tohex in:
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:
<iosPods>
`enter code here`<iosPod name="FBAudienceNetwork" version="5.6.0" />
`enter code here`<iosPod name="Google-Mobile-Ads-SDK" version="7.50.0" />
</iosPods>
This code lets pods take care of the conflicting libraries and removes the duplicate symbols that didn't permit the build to succeed.
If you can't find any "-all_load" params but also show this error.
you must goto the "project.xcodeproj" and replace "-all_load" with "-ObjC" in "project.pbxproj"
If you're using the Admob v6.2 library make sure you're NOT using the -all_load
linker flag, use the -ObjC
linker flag instead.