Alamofire - Alamofire.AFError.responseSerializationFailed - Xcode 8

Bekomme ich die Fehlermeldung in Alamofire.downloand wie folgt:

Alamofire.download(URLString).responseData { response in

            if let data = response.result.value {
                let image = UIImage(data: data)
            }else{
                print(response.result.error)
            }
        }

Alamofire.AFError.responseSerializationFailed(Alamofire.AFError.ResponseSerializationFailureReason.inputFileReadFailed(file:///private/var/mobile/Containers/Data/Application/40167F58-FF4A-4D19-B01A-F8ED90F794DD/tmp/CFNetworkDownload_1dnNQR.tmp)))

Kann jemand helfen es gelöst oder vor dieselben Probleme?

Dank

  • Was ist der Wert von URLString so können wir testen, dieses Bild zu?
  • Test-url: qqxxzx.com/images/cute-wallpaper/cute-wallpaper-10.jpg
  • Mögliche Duplikate von Alamofire download Problem
InformationsquelleAutor user831098 | 2016-09-20
Schreibe einen Kommentar