In my didReceive(_:withContentHandler:) method I'm trying to download a file. I get the URL of the mp4 file I want to download and then do this:
The body isn't modified at all when I do a file download like that. If I comment out line 4, the body is updated as expected.
I verified that it's not timing out because the serviceExtensionTimeWillExpire method changes the title so I know a timeout happened and that's not the case.
In the debugger I verified the URL is exactly what was passed as part of the payload, and I've verified that URL is correct. If I try to step over line 4 in the debugger it just goes into assembly code and never moves on.
The file only takes a few seconds to download from my mac.
Both the main project and the service extension allow insecure loads from the net.
Any thoughts on why it seems to abort and yet not simply move into the catch block as expected?
Code Block bestAttemptContent.body = "I'm here" do { let data = try Data(contentsOf: url) } catch { bestAttemptContent.body = error.localizedDescription }
The body isn't modified at all when I do a file download like that. If I comment out line 4, the body is updated as expected.
I verified that it's not timing out because the serviceExtensionTimeWillExpire method changes the title so I know a timeout happened and that's not the case.
In the debugger I verified the URL is exactly what was passed as part of the payload, and I've verified that URL is correct. If I try to step over line 4 in the debugger it just goes into assembly code and never moves on.
The file only takes a few seconds to download from my mac.
Both the main project and the service extension allow insecure loads from the net.
Any thoughts on why it seems to abort and yet not simply move into the catch block as expected?