新浪微博iOS SDK UIImage+WBSDKResize.o

Undefined symbols for architecture armv7:
  "_kCGImageSourceThumbnailMaxPixelSize", referenced from:
      +[UIImage(WBSDKResize) wbsdk_resizeImageToMaxSize:sourcePath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_kCGImageSourceCreateThumbnailWithTransform", referenced from:
      +[UIImage(WBSDKResize) wbsdk_resizeImageToMaxSize:sourcePath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_kCGImageSourceCreateThumbnailFromImageAlways", referenced from:
      +[UIImage(WBSDKResize) wbsdk_resizeImageToMaxSize:sourcePath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_kCGImagePropertyPixelHeight", referenced from:
      +[UIImage(WBSDKResize) wbsdk_imageSizeWithoutLoadingWithPath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_kCGImagePropertyPixelWidth", referenced from:
      +[UIImage(WBSDKResize) wbsdk_imageSizeWithoutLoadingWithPath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_CGImageSourceCopyPropertiesAtIndex", referenced from:
      +[UIImage(WBSDKResize) wbsdk_imageSizeWithoutLoadingWithPath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_CGImageSourceCreateWithURL", referenced from:
      +[UIImage(WBSDKResize) wbsdk_resizeImageToMaxSize:sourcePath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
      +[UIImage(WBSDKResize) wbsdk_imageSizeWithoutLoadingWithPath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
  "_CGImageSourceCreateThumbnailAtIndex", referenced from:
      +[UIImage(WBSDKResize) wbsdk_resizeImageToMaxSize:sourcePath:] in libWeiboSDK.a(UIImage+WBSDKResize.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

SDK增加了图片处理功能,因此需要引入imageio这个框架

imageio.framework 包含在IOS SDK里,可以直接导入

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。