Closed dcamenisch closed 1 year ago
Seemed to be a issue related to the simulator. After reinstalling the app and restarting the simulator it worked.
However, after sometime it breaks again.
I'm having the same issue, where the call never returns. Re-install in simulator fixed it, then it failed again soon after.
I think it might be due to multipathServiceType = .handover in the default client.
To use the .handover multiparth service type, you have to add the entitlement to Xcode. https://developer.apple.com/documentation/foundation/nsurlsessionmultipathservicetype/nsurlsessionmultipathservicetypehandover
I added the entitlement, but the problem persisted.
I was finally able to fix it by passing in my own client with a URLSession with multipathServiceType left to the default.
Xcode 15.2 macOS 14.3
@yood can you clarify how you passed in your own client? I'm having this same issue and I'm having trouble with figuring out the fix.
Network requests do not seem to work in the Simulator and only on an actual device. The following code was used:
The call never returns.
This behavior was observed with the newest version of TMDb (bb032f0) and iOS 17.0 (both on device and in the Simulator).