Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

duplicate symbols in AdMob

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
like image 321
Shmidt Avatar asked Oct 04 '12 12:10

Shmidt


2 Answers

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.

like image 66
RajPara Avatar answered Sep 25 '22 19:09

RajPara


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"

like image 22
zszen Avatar answered Sep 25 '22 19:09

zszen