Hello,
we have currently an issue when trying to export a video with AVAssetExportSession on iPhone XS/XR with latest iOS version.
It's working well on simulator and other devices.
I made a small sample with a video which can't be exported, just launch it with the iPhone XS/XR et see the output.
Error Domain=AVFoundationErrorDomain Code=-11821 "Cannot Decode" UserInfo={NSLocalizedFailureReason=The media data could not be decoded. It may be damaged., NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x282a44060 {Error Domain=NSOSStatusErrorDomain Code=-16977 "(null)"}}
[link is now public]
https://drive.google.com/file/d/17qoE9Db6N6gEOaFZIpevFrFKLQdmPOhc/view?usp=sharing
I guess the issue come from the video and the system (why??).
If someone can give a solution/alternative/advice for avoiding this situation.
Regards
François