gpt4 book ai didi

iphone - Apple Mach-O-linker 错误?

转载 作者:行者123 更新时间:2023-11-30 05:29:32 25 4
gpt4 key购买 nike

亲爱的 friend 们,我添加了 BMsocial.framework 用于将图像分享到 Face book、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)

谁能帮我解决这个错误我是开发将 Face book 集成到 iphone 中的新手如果框架工作不好,请给我一些使用完整教程来开发共享选项

提前致谢

最佳答案

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

关于iphone - Apple Mach-O-linker 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15153109/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com