Having the same issue. Here is the workaround I found:
Don't use URLSession.shared. Instead do the following
let configuration = URLSessionConfiguration.default
let session = URLSession(configuration: configuration)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: