Recently I received multiple user email supports because the app cannot save video to photos, they are all on iOS 26.x
- The code in my app around recording video and saving to Photos hasn't changed in years.
- I'm not able to reproduce it locally, I tried on all my available devices.
- In recently published build I added additional logs and it appears that all of cases that fail with 3302 have the photos access set to "Limited Access". It never happens to users with "Full Access".
- In that build I also added a fallback, when saving to photos fails, the app saves to Documents and it seems it works (two of my users affected users confirmed it), but it's very unfortunate. I think it kind of proves that videos aren't broken given that users are able to play them just fine.
On of users says that for him saving to Photos works for 2-3 times after he reinstalls the app and then it stops working.
Did anything recently changed in how we should save videos to photos?
I'm using the following code. I can see in git blame that I haven't changed in since 2020 and never encountered those errors in development or heard about those issues until around 1 month ago.
Thank you.
PHPhotoLibrary.shared().performChanges {
PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: fileURL)
} completionHandler: { success, error in