We're experiencing an issue on an iPhone 15 (iOS 17.1) where some video files can't be loaded from the results of a PHPickerViewController.
results[index].itemProvider.loadFileRepresentation(forTypeIdentifier: UTType.movie.identifier)
Gives error:
Cannot load representation of type public.movie
Video info (taken from Mac Finder):
H.264
MPEG-4 AAC
HD (1-1-1)
480x848px
Filetype .MP4
Origin: Recorded on iPhone 14, sent over WhatsApp, & auto saved from WhatsApp to an iPhone 15
The iPhone 15 has iCloud enabled and the videos failing are frequently viewed and used in testing, so are likely to be downloaded/cached locally.
I've tried changing the PHPickerConfiguration preferredAssetRepresentationMode to .current with no difference in the error.
I've also tried using the openInPlace alternative but it complains that it's not supported in the debug output.