Getting this warning in console.
It happens both JPG and HEIC images.
The same thing happens to me when I tap some image (not all) in the library. Despite this, everything works normally. Using the v3.0.0 on the iPhone X iOS 11.3
Hi @onurgenes & @DamascenoRafael apparently we're not the only ones experiencing the issue (cf: https://stackoverflow.com/questions/46377824/ios-11-imagemanager-unable-to-load-image-data)
Some say it's an iOS 11 bug. As you said, everything works fine in spite of the warning. I'm going to look into it :)
Looks like a common bug in iOS11, let's close this for now, feel free to reopen.
https://stackoverflow.com/questions/46377824/ios-11-imagemanager-unable-to-load-image-data
https://forums.developer.apple.com/thread/85717
Looking at it I found that replacing
CGSize(width: asset.pixelWidth, height: asset.pixelHeight)
by
PHImageManagerMaximumSize
removes the warning log 🎉 in requestImage call in PHCachingImageManager+Extensions
Woop Woop!
Thanks! Perfect!
@onurgenes this should be good now :)
Looks fantastic! Thanks @s4cha !
解决方案: 调整参数,适当缩小 targetSize
It works for me.
Most helpful comment
Hi @onurgenes & @DamascenoRafael apparently we're not the only ones experiencing the issue (cf: https://stackoverflow.com/questions/46377824/ios-11-imagemanager-unable-to-load-image-data)
Some say it's an iOS 11 bug. As you said, everything works fine in spite of the warning. I'm going to look into it :)