27
2017
09

ios接入微博SDK的一些坑(后期会陆续更新)

1.按官方文档和网上教程装好微博SDK后运行报错:Undefined symbols for architecture arm64:
OBJC_CLASS$_PHAsset”, referenced from:
objc-class-ref in libWeiboSDK.a(WBImageObject.o)
objc-class-ref in libWeiboSDK.a(WBNewVideoObject.o)
OBJC_CLASS$_PHAssetChangeRequest”, referenced from:
objc-class-ref in libWeiboSDK.a(WBImageObject.o)
objc-class-ref in libWeiboSDK.a(WBNewVideoObject.o)
OBJC_CLASS$_PHPhotoLibrary”, referenced from:
objc-class-ref in libWeiboSDK.a(WBImageObject.o)
objc-class-ref in libWeiboSDK.a(WBNewVideoObject.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocati

如图:
这里写图片描述

原因:缺少了系统依赖库(官方文档的大坑)

解决方式:比照官方demo你会发现你的build phases里少了个photos.framework!!!加上运行无报错.
这里写图片描述

相关推荐: ios微信接入SDK的一些坑(后期会陆续更新)http://blog.csdn.net/fantasy_jun/article/details/78086550

上一篇:ios接入微信SDK的一些坑(后期会陆续更新) 下一篇:iOS-增大按钮点击范围