Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

duplicate symbols for architecture i386 clang

I've seen several posts on google and stackoverflow related to this error, I've read all of them but still fetching the problem , I will be glad for a solution. Here is the error mesage I recieve when compiling ...

directory not found for option '-L/Users/somefolder/Documents/Bharat/MyApp copy/GoogleAdMobAdsSDK' duplicate symbol _OBJC_CLASS_$_AppDelegate in: /Users/madept/Library/Developer/Xcode/DerivedData/Alpha-dvvymdlmzseytagllsmbbrxdgutz/Build/Intermediates/Alpha.build/Debug-iphonesimulator/Alpha.build/Objects-normal/i386/AppDelegate-56890B6B994A4284.o

Thanks.

like image 287
Bharat Avatar asked Sep 05 '12 10:09

Bharat


1 Answers

Another reason this error often happens is accidentally importing the .m file instead of the .h.

like image 200
Rik Smith-Unna Avatar answered Nov 15 '22 23:11

Rik Smith-Unna