Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Linker Error when running ShareExample on iPhone Simulator 5.1 #7

cggaurav opened this Issue · 7 comments

6 participants


Ld /Users/cggaurav/Library/Developer/Xcode/DerivedData/ShareExampleFramework-gceaogtlcfxgdbfbevudrnjwximu/Build/Products/Debug-iphonesimulator/ normal i386
cd /Users/cggaurav/Projects/BMSocialShare/Examples/ShareExample
setenv PATH "/Applications/"
/Applications/ -arch i386 -isysroot /Applications/ -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/ -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/

duplicate symbol _objc_retainedObject in:
duplicate symbol _objc_unretainedObject in:
duplicate symbol _objc_unretainedPointer in:
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?


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.


Hi same problem here...


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


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
Something went wrong with that request. Please try again.