duplicate symbols in AdMob

2019-01-24 12:23发布

问题:

When archiving, such en error occurs:

Projects/Dossier/MultiDocument/Helpers/GAD/libGoogleAdMobAds.a(GADGestureCFiles.o)
    duplicate symbol _tohex in:
        /Users/shmidt/Documents/App Development/Xcode Projects/Dossier/MultiDocument/Helpers/GAD/libGoogleAdMobAds.a(rc4.o)
        /Users/shmidt/Documents/App Development/Xcode Projects/Dossier/MultiDocument/Helpers/GAD/libGoogleAdMobAds.a(GADGestureCFiles.o)
    ld: 64 duplicate symbols for architecture armv7s

回答1:

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.



回答2:

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"