標籤:
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 armv7clang: error: linker command failed with exit code 1 (use -v to see invocation)
SDK增加了圖片處理功能,因此需要引入imageio這個架構
imageio.framework 包含在IOS SDK裡,可以直接匯入
新浪微博iOS SDK UIImage+WBSDKResize.o