Reputation: 91
duplicate symbol _OBJC_CLASS_$_GTMBase64 in: ../../TCWeiboSDK/libTCWeiboSDK.a(GTMBase64.o) ../../TBPlatform.framework/TBPlatform(GTMBase64.o)
duplicate symbol _OBJC_METACLASS_$_GTMBase64 in: ../../TCWeiboSDK/libTCWeiboSDK.a(GTMBase64.o) ../../TBPlatform.framework/TBPlatform(GTMBase64.o)
ld: 2 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This is my error. I already know the reason is both of two lib
contain a class named GTMBase64
, but these two lib are not open source. So I couldn't modify the source code easily.
I ever unpack both .a file using "otool" command and find that assembler code of GTMBase64
in these two lib
is different. At last, I have no idea how to fix this problem.
Upvotes: 3
Views: 1167
Reputation: 42598
There are a few answers to this problem.
objcopy
(see: https://stackoverflow.com/a/6940389/1298400)All of them are heavy wizardry and you will need to be careful to avoid very bad things.
Upvotes: 1