Weird Error when adding the iOS sdk

stucke Jun 01, 2012 01:58AM EDT

I have installed the add this library before on other apps without an issue... I get a weird message after adding it to my current app.

"linker command failed with exit code 1 (use -v to see invocation)”

The full message is...
ld: duplicate symbol _OBJC_CLASS_$_SFHFKeychainUtils in /Users/cherrnp/Library/Developer/Xcode/DerivedData/Passcode-gbdtexktdrytnwbdlmcsleuzowsh/Build/Intermediates/Passcode.build/Debug-iphonesimulator/Passcode.build/Objects-normal/i386/SFHFKeychainUtils-EBE1C05C56F9961.o and /Users/cherrnp/Library/Developer/Xcode/DerivedData/Passcode-gbdtexktdrytnwbdlmcsleuzowsh/Build/Intermediates/Passcode.build/Debug-iphonesimulator/Passcode.build/Objects-normal/i386/SFHFKeychainUtils-940981FFB6C49C60.o for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I know that file is not an add this file, but it works fine until I put add this in? Do you know what the resolution might be?

Up 0 Rated Down
Jithin (AddThis Happiness Specialist) Jun 04, 2012 09:30AM EDT
Hi,

Please make sure that you have not already included SFHFKeychainUtils in your application. The error seems to be because of duplicate entry of the same class.
If there is duplicate entry, you can safely remove on from the whole project either from AddThis folder or the one that you have.

Thanks,
Jithin

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers