Sunday, November 27, 2022
HomeiOS Developmentios - Photograph save fails with Error Area=PHPhotosErrorDomain Code=3302

ios – Photograph save fails with Error Area=PHPhotosErrorDomain Code=3302


When attempting to avoid wasting display screen recording file to my machine like:

PHPhotoLibrary.shared().performChanges({() -> Void in
                    PHAssetChangeRequest.creationRequestForAssetFromVideo(atFileURL: url)
                }, completionHandler: { (_, error) -> Void in
                    if let error = error {
                        self.showAlert(title: .saveFailed, message: error.localizedDescription)
                        return
                    }
                    do {
                        strive FileManager.default.removeItem(at: url)
                        self.showAlert(title: .saved) {
                            self.dismissSelf()
                        }
                    } catch let error {
                        print(error)
                    }
                })

It someday fails with error:

Area=PHPhotosErrorDomain Code=3302

It succeed generally although. (I really feel like this error started to appear with iOS16.)
Does anybody know what’s the error 3302 imply??

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments