We found that the crash occours when we try to call requestImagexxx for a deleted asset.
We got an asset and kept the object, then delete the photo, now if we call requestImageForAsset for the object, crash occours.
It’s difficult for us to fix the issue, since there are no ways to find out if an asset was deleted.
Seems there are some wrong in iOS 16, because the operation didn't make crash before in iOS 15.
And we believe the issue is better to throw an 'error' than a 'crash'.
Post
Replies
Boosts
Views
Activity
We encountered the same problem too, it occurs when we call :
[PHImageManager requestImageDataAndOrientationForAsset:options:resultHandler:]
or
[PHImageManager requestImageForAsset:targetSize:contentMode:options:resultHandler:]