I am building an app targeting iOS 8.0 that needs to download files that are up to 250Mb. I had a version of the download code roughly working using Alamofire
but I recently replaced that with a pure NSURLSession
implementation. This new implementation is working as expected in the simulator and on my iPhone 5S running iOS 9.2 (13C75). It works on my phone whether I install through XCode
and a physical connection or through TestFlight
. I have deleted the app, restarted the phone, and reinstalled and it always completes downloads correctly. One of my colleagues pulled the code and was able to successfully simulate it from XCode
.
However, downloads fail on all of my collaborators' devices. They are installing the app through TestFlight
and are set up as internal testers. One collaborator also has a iPhone 5S running iOS 9.2 (13C75). The Alamofire
-based implementation worked as intended when deployed through TestFlight
to those same devices and very little other code has changed.
I have added some remote logging and I can see that on the failing devices, downloads are correctly triggered and the download tasks I create each have a taskIdentifier
which I can log. However, none of the NSURLSessionDelegate
or NSURLSessionDownloadDelegate
methods are called.
What suggestions do you have for troubleshooting?
Is it possible that this could be related to a TestFlight
problem? My current next step is to try an alternative to TestFlight
. Ultimately, I would like to be able to deploy betas through TestFlight
if possible.
I'm using Swift 2.1.1
in XCode 7.2 (7C68)
.