AVAssetExportSession succeeds to convert mp4 to m4a on iPhone simulator but iPhone device – Ios swift
I'm trying to convert mp4 video file to m4a audio format by AVAssetExportSession on my iOS app. This is the conversion code: let outputUrl = URL(fileURLWithPath: NSTemporaryDirectory() + "out.m4a") if FileManager.default.fileExists(atPath: outputUrl.path) { try? FileManager.default.removeItem(atPath: outputUrl.path) } let asset =…