LivePhotos taken with iPhone13 cannot be saved in PhotoLibrary of iOS11

LivePhotos taken with iPhone13 cannot be saved on iOS11 iPhone

The application incorporates a function to send image data between iPhones and save it to PhotoLibrary on the receiving iPhone side.

We receive the image data and save it in PhotoLibrary from the URL where the data is located, following the method on Apple's official website to save LivePhotos in PhotoLibrary.

However, when I receive LivePhotos taken by iPhone13 and try to save them in the same way on iPhone7 (iOS11), I get the following error and cannot complete the process

"error The operation couldn’t be completed. (Cocoa error -1.)"

func saveLivePhotoToPhotosLibrary(stillImageData: Data, livePhotoMovieURL: URL) {    PHPhotoLibrary.requestAuthorization { status in
        guard status == .authorized else { return }
        
        PHPhotoLibrary.shared().performChanges({
            let creationRequest = PHAssetCreationRequest.forAsset()
            creationRequest.addResource(with: .photo, data: stillImageData, options: nil)
            let options = PHAssetResourceCreationOptions()
            options.shouldMoveFile = true
            creationRequest.addResource(with: .pairedVideo, fileURL: livePhotoMovieURL, options: options)
        }) { success, error in
            // Handle completion.
        }
    }
}

When I send the same LivePhotos data via AirDrop, I also get an error message and cannot migrate it. Does iOS11 not support LivePhotos on the latest iPhones?

LivePhotos taken with iPhone13 cannot be saved in PhotoLibrary of iOS11
 
 
Q