thibaultcha / TCBlobDownload

Concurrent large files downloads for iOS
http://cocoadocs.org/docsets/TCBlobDownload
MIT License
919 stars 182 forks source link

Does not work with iOS 11.3 #76

Open strawherotk opened 6 years ago

strawherotk commented 6 years ago

Hi,

I've just updated Xcode to 9.3 & run my app again with iOS 11.3. This framework does not work anymore. The framework triggers the interface 'didFinishWithSuccess', the flag 'downloadFinished' is also true, the file is created but it's empty there. Nothing is downloaded. Console log: After I start the download using function startDownload(), got this strange log:

WebVidDownloader[3177:205241] [Symptoms] {
  "transportType" : "HTTP Progressive Download",
  "mediaType" : "HTTP Progressive Download",
  "BundleID" : "WebVidDownloader",
  "name" : "MEDIA_PLAYBACK_STALL",
  "interfaceType" : "Other"
}

Then the download seem to fail with below log, but it does not trigger the didStopWithError function in the delegate method. Task <582147FA-9C74-49CD-8586-55E28A31DD67>.<2> finished with error - code: -999

Does anyone have the same issue? Have you figured somehow to fix it? Looking for your news.

Thanks.

crespoxiao commented 6 years ago

I think this framework need upgrade, use NSURLSession instead.

huangc83 commented 4 years ago

class TCBlobDownloader.m

self.receivedDataBuffer = [[NSMutableData alloc] init]; replace [self.receivedDataBuffer setData:nil];