PHAssetChangeRequest deleteAssets not working some time

Hello Team, I try to delete photo from Photos for that i used this method,

[[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{
[PHAssetChangeRequest deleteAssets:@[assetToDelete]];
completionHandler:^(BOOL success, NSError *error) {
 }];

This method pops up a dialog with Don't Allow or Delete. But some time in some iPhones not respond PHAssetChangeRequest deleteAssets method that's why that completionHandler not called because of that i can't perform any operation of PHPhotoLibrary then after. If I restart my iPhone then it works. Many users of my app complained about this issue. I have an iPhone 11 with iOS 15.3. But some iOS 12,14,16 users also face the same issue.

So what exact issue is there? Is it related to iOS or a method?

Thanks, Ankur

I have the same issue. Some times it works again but after few deletions it stops for a long time and nothing helps

Since iOS 26, our users have also been experiencing this issue. Unfortunately, we can't find a solution on our side. On some devices, the completionHandler is never called, and afterward, you can no longer perform any operations on PHPhotoLibrary.

It's getting worse and worse since iOS 26. I have to tell users to kill the app or even restart the iPhone when encountering this issue, which will still happen after a while after restarting.

PHAssetChangeRequest deleteAssets not working some time
 
 
Q