2013-03-01 110 views
4

亲爱的朋友们,我将BMsocial.framework分享给Face book,tiwitter和Emai。所以我加入然后建立该项目,我得到以下苹果Mach-O-linker错误。我正在使用xcode 4.5.1和iOS 6模拟器。Apple Mach-O-linker错误?

Ld /Users/xxxxxx/Library/Developer/Xcode/DerivedData/ShareExampleFramework-csgovwlrowaupgfvjrudqedpflug/Build/Products/Debug-iphonesimulator/ShareExample.app/ShareExample normal i386 
cd /Users/xxxxxx/Downloads/BMSocialShare-master/Examples/ShareExample 
setenv IPHONEOS_DEPLOYMENT_TARGET 4.0 
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/iPhoneSimulator6.0.sdk -L/Users/xxxxxx/Library/Developer/Xcode/DerivedData/ShareExampleFramework-csgovwlrowaupgfvjrudqedpflug/Build/Products/Debug-iphonesimulator -F/Users/xxxxxx/Library/Developer/Xcode/DerivedData/ShareExampleFramework-csgovwlrowaupgfvjrudqedpflug/Build/Products/Debug-iphonesimulator -F/Users/xxxxxxx/Downloads/BMSocialShare-master/Examples/ShareExample/../../iOS/Binary -filelist /Users/xxxxxx/Library/Developer/Xcode/DerivedData/ShareExampleFramework-csgovwlrowaupgfvjrudqedpflug/Build/Intermediates/ShareExampleFramework.build/Debug-iphonesimulator/ShareExample.build/Objects-normal/i386/ShareExample.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=4.0 -framework Twitter -framework MessageUI -framework UIKit -framework Foundation -framework CoreGraphics -framework BMSocialShare -o /Users/xxxxxxx/Library/Developer/Xcode/DerivedData/ShareExampleFramework-csgovwlrowaupgfvjrudqedpflug/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/xxxxxxx/Downloads/BMSocialShare-master/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/xxxxxxx/Downloads/BMSocialShare-master/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/xxxxxx/Downloads/BMSocialShare-master/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) 

请任何一个可以帮助我这个错误我是新开发的脸书整合到iPhone,如果这是不好的框架工作,然后给我一些使用全教程开发共享选项

谢谢提前

+0

你只想要ios6吗?或其他版本也? – Durgaprasad 2013-03-01 08:04:32

+0

为ios 5及以上版本 – Vijay 2013-03-01 08:08:15

回答

1

我不知道BMsocial.framework。 对于ios5及以上的版本,ShareKit不错。 检查此 http://getsharekit.com/install/ 如果只为iOS 6,然后苹果已添加支持Facebook,Twitter分享的社会框架。

+0

好的,谢谢你你的参考我会尝试共享套件的实施 – Vijay 2013-03-01 08:15:29