You can try the code posted in this other thread: Crash in URLConnectionState::run() while app is shutting down - #10 by ed95
Just add a button that, when clicked, will call task.reset()
and the iOS App freezes.
The destructor of the class FallbackDownloadTask
remains stuck in a while loop waiting that some sort of session deletes itself… something that ends up in swift code that I don’t understand.