Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate Symbol XCode duplicate library for same library?

Do you have any idea? Why XCode compilation give this result?

ld: duplicate symbol _kJSONDeserializerErrorDomain in 
  /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o) 
  and /Users/Shared/_BUILDS_/Debug-iphoneos/libLACDLibrary.a(CJSONDeserializer.o)
like image 284
Vaseltior Avatar asked Jul 26 '10 11:07

Vaseltior


1 Answers

I have exactly the same problem. And it only complains for arm6 build (not arm7 build). I found a workaround: remove "-all_load" in Other linker flag under Build<-Get Info<-Target. I am not sure whether it is a correct workaround. I hope somebody can explain further and provide the correct workaround if this one is not.

like image 193
grinchdee Avatar answered Nov 02 '22 16:11

grinchdee