2015-11-03 67 views
0

環境微博的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)

建設時,這是確定的,但會失敗歸檔

回答

0

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