SWIFT: Unable to downlaod larger files from aws bucket using transfer utility

I have a swift application and there is a requirement to download mp4 files from AWS bucket. I'm able to download file with smaller sizes but can't download files above particular sizes say 2GB and its depend on device too. While trying to download such kind of files, getting the below error

`Failed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file couldn’t be opened."

Also noticed that when trying to download 140 files with size of 100 MB each only able to download a maximum of approximately 100 files, after that I got the same error.

Is there any such limit on iOS for downloading files.

I have a swift application and there is a requirement to download mp4 files from AWS bucket.

What API are you using for these downloads?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I used the AWSS3TransferUtility to download the files. Here is my code snippet

https://stackoverflow.com/questions/74046858/swift-unable-to-downlaod-larger-files-from-aws-bucket-using-transfer-utility

Unfortunately I can’t help you with a third-party library. I recommend that you escalate this via the support channel for that library.

FWIW the errors you’re seeing don’t line up with any iOS native behaviour. It’s likely that this library is using NSURLSession for its downloads, and NSURLSession has no size limit [1]. To understand what’s going on here, you have to peek inside this library to see how it’s using NSURLSession (assuming it is actually doing that).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Well, no practical size limit. It probably won’t handle files larger than 2^63-1 bytes long, but you won’t see a file that large.

SWIFT: Unable to downlaod larger files from aws bucket using transfer utility
 
 
Q