title: iOS NSURLSession with Wi-Fi Assist turned on results in crashing app
body: <p>I'm performing an HTTP request using iOS's NSURLSession. My code looks like this:</p>
  
  <pre><code>let session = NSURLSession.sharedSession()
  
  let url = NSURL(string:"www.example.com")
  
  guard let url = url else {
     return
  }
  
  let request = NSURLRequest(URL: url)
  
  var task = session.dataTaskWithRequest(request){
       (data, response, error) -&gt; Void in
  
       //do stuff with the data
  }
  
  task.resume()
  </code></pre>
  
  <p>(sorry if my code isn't 100% correct I just typed it real quickly inside my browser, you get the idea)</p>
  
  <p>When Wi-Fi Assist is turned off it works fine, but when Wi-Fi Assist is turned on the app crashes.</p>
  
  <p>I found <a href="https://forums.developer.apple.com/thread/20853" rel="nofollow">this</a> but the discussion never got an answer.</p>
  
  <p>Apart from the fact that I want to fix the problem I am very curious WHY this is happening.</p>