In my app, I use api provided in Photos framework to delete specified photo.
But after upgrading to iOS 26, the delete function in some iOS device no longer work.
The api will never triggers the system confirmation dialog, and the completionHandler is never called.
In the iOS Photos app, deletion works correctly on the same assets, but calling the API from my app does not work.
Steps to Reproduce
- Make sure the app has Full Photo Library Access.
- Execute the following code:
PHPhotoLibrary.shared().performChanges({
let assetsToBeDeleted = PHAsset.fetchAssets(withLocalIdentifiers: delUrls, options: nil)
PHAssetChangeRequest.deleteAssets(assetsToBeDeleted)
}, completionHandler: completionHandler)
Expected Behavior
- The system should present a confirmation dialog asking the user to delete the selected photos.
- After the user confirms, the deletion should occur, and the completionHandler should be called with success or error.
Actual Behavior
- The system delete confirmation dialog does not appear.
- The completionHandler is never called.
Environment
- iOS Versions: 26.1 / 26.0.1
It looks like api bug. I want to check Is it a know issue and will be fixed. Thanks