Linker Error when running ShareExample on iPhone Simulator 5.1 #7

Open
cggaurav opened this Issue Aug 26, 2012 · 7 comments

Comments

Projects
None yet
6 participants

Ld /Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Products/Debug-iphonesimulator/ShareExample.app/ShareExample normal i386
cd /Users/cggaurav/Projects/BMSocialShare/Examples/ShareExample
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Products/Debug-iphonesimulator -F/Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Products/Debug-iphonesimulator -F/Users/cggaurav/Projects/BMSocialShare/Examples/ShareExample/../../iOS/Binary -filelist /Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Intermediates/ShareExampleFramework.build/Debug-iphonesimulator/ShareExample.build/Objects-normal/i386/ShareExample.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -framework Twitter -framework MessageUI -framework UIKit -framework Foundation -framework CoreGraphics -framework BMSocialShare -o /Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Products/Debug-iphonesimulator/ShareExample.app/ShareExample

duplicate symbol _objc_retainedObject in:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a(arclite.o)
/Users/cggaurav/Projects/BMSocialShare/iOS/Binary/BMSocialShare.framework/BMSocialShare(BMSocialShare)
duplicate symbol _objc_unretainedObject in:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a(arclite.o)
/Users/cggaurav/Projects/BMSocialShare/iOS/Binary/BMSocialShare.framework/BMSocialShare(BMSocialShare)
duplicate symbol _objc_unretainedPointer in:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a(arclite.o)
/Users/cggaurav/Projects/BMSocialShare/iOS/Binary/BMSocialShare.framework/BMSocialShare(BMSocialShare)
ld: 3 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can I resolve this?

Owner

vinzenzweber commented Aug 27, 2012

It seems to be some issue with ARC. Have you changed any settings in my example project?

@vinzenzweber I didn't change any setting in the example Project. I am using XCode 4.4.1 FYI.

But I understand that the example project works on XCode 4.3.1

Yes, It was working on iOS 5 and XCode 4.3 but when I have updated my iOS to 6th version and XCode also, then the above issue has appeared. Please let me know how to resolve it.

MobilGm commented Jan 8, 2013

Hi same problem here...

I m also facing the same problem.
Can anyone solve this issue ?

ask123 commented Mar 21, 2013

I am also facing the same problem, when i am using the latest xcode...
Did anyone fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment