fluttercandies / flutter_image_compress

flutter image compress
MIT License
633 stars 214 forks source link

Unable to build on iOS: No visible @interface for 'UIImage' declares the selector 'imageByPreparingForDisplay' #215

Closed getpoucher closed 2 years ago

getpoucher commented 2 years ago

Hello,

I'm using flutter 2.10.5 and I'm trying to build to iOS 15.5, but I'm having the following error:

Could not build the precompiled application for the device.
ARC Semantic Issue (Xcode): No visible @interface for 'UIImage' declares the selector 'imageByPreparingForDisplay'
~/app/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.m:373:39

ARC Semantic Issue (Xcode): No visible @interface for 'UIImage' declares the selector 'imageByPreparingThumbnailOfSize:'
~/app/ios/Pods/SDWebImage/SDWebImage/Core/SDImageCoderHelper.m:441:39
AlexV525 commented 2 years ago

The issue seems to be related to SDWebImage, please verify if the example can reproduce the problem. Otherwise, run pod install and make sure everything is installed correctly.

AlexV525 commented 2 years ago

Tested with the example and no issues occurred. Closing.