微博的iOS SDK位码误差Xcode7.1

问题描述:

环境微博的iOS SDK位码误差Xcode7.1

  • Xcode的归档7.1
  • OS X 10.11.1
  • 归档的iOS与最小目标要求时8.0

Podfile

荚 “WeiboSDK”:头

错误消息

ld: bitcode bundle could not be generated because '/Users/XX/code/iOS/Pods/WeiboSDK/libWeiboSDK/libWeiboSDK.a(WBSDKNormalWebViewController.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

建设时,这是确定的,但会失败归档

1.If your app doesn't need bitcode (for Apple Watch).you should check you settings:

PROJECT/TARGETS -> Build Settings -> Enable Bitcode -> NO 

2.If you need the Bitcode enable in your project,you should import the newest SDK from Weibo which has been build by Bitcode enabled.

你遇到的问题是,如果你想在你的项目中启用你的位码,你项目中的库必须通过“启用位码”来构建。

关于位码,官方文档在这里:
https://developer.apple.com/library/prerelease/watchos/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html#//apple_ref/doc/uid/TP40012582-CH35-SW2

的“位码”是的的iOS 9.0或above.You的适应细节要注意this.Here一个是一个很好的资源库上Github for iOS 9自适应细节收集:
https://github.com/ChenYilong/iOS9AdaptationTips

下载最新版本的WeiboSDK。它支持位代码

weibo_ios_sdk