【问题标题】:Apple Mach-O-linker Error?Apple Mach-O-linker 错误?
【发布时间】:2013-03-01 08:02:35
【问题描述】:

亲爱的朋友们,我添加了 BMsocial.framework 用于将图像分享到 Facebook、tiwitter 和 Emai。所以我添加然后构建项目,我得到以下 Apple Mach-O-linker 错误。我正在使用 xcode 4.5.1 和 iOS 6 模拟器。

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)

请任何人帮助我解决这个错误我是新开发 Facebook 集成到 iphone 如果它不是很好的框架然后给我一些使用完整的教程来开发共享选项

提前致谢

【问题讨论】:

  • 您只需要 ios6 吗?还是其他版本?
  • 适用于 ios 5 及以上版本

标签: iphone facebook twitter sharing


【解决方案1】:

我不知道 BMsocial.framework。 对于 ios5 及以上版本 ShareKit 是不错的。 检查这个 http://getsharekit.com/install/ 如果仅适用于 ios 6,那么苹果已经添加了支持 facebook、twitter 共享的社交框架。

【讨论】:

  • 好的,谢谢您的参考,我会尝试共享工具包实现
猜你喜欢
  • 2014-12-03
  • 1970-01-01
  • 1970-01-01
  • 2017-06-22
  • 2017-08-26
  • 2016-02-05
  • 2014-11-17
  • 1970-01-01
  • 2012-02-01
相关资源
最近更新 更多