Closed dalehqb closed 6 years ago
已经可以正常下载了,估计是最新版本的Alamofire需要的参数不同: let destination: DownloadRequest.DownloadFileDestination = { _, response in //两个参数表示如果有同名文件则会覆盖,如果路径中文件夹不存在则会自动创建 return (filePath, [.removePreviousFile, .createIntermediateDirectories]) }
‼️‼️‼️ 2018-06-06 13:56:19.760 [Error] [main] [AudioPlayManager.swift:176] downloadAudio > Failed with error: responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputFileReadFailed(file:///private/var/mobile/Containers/Data/Application/E7830B0F-4BD0-44C0-AC2C-B6B45B4F667C/tmp/CFNetworkDownload_m5q8qZ.tmp)) ‼️‼️‼️