URLSession trowing an NSURLSession exception
<p>Swift 3 on Xcode 8β3.</p>

<p>Any ideas why the code below is throwing the error (further) below, particularly given that I am using <em>URLSession</em> not <em>NSURLSession</em>?</p>

<p><strong>CODE</strong></p>

<pre><code>public func updateCurrentConditions() {

    let session = URLSession()
    let url     = URL(string: "http://api.wunderground.com/api/\(key)/conditions/51.32,-1.0.json")!
    let loadDataTask = session.dataTask(with: url, completionHandler: self.dataHandler) 
    loadDataTask.resume()
}

private func dataHandler(data: Data?, response: URLResponse?, error: NSError?) -&gt; Void {
    print("dataHandler executed.")
}
</code></pre>

<p><strong>ERROR</strong></p>

<p>failed: caught "NSInvalidArgumentException", "-[NSURLSession dataTaskForRequest:completion:]: unrecognized selector sent to instance 0x7fac89569f00"</p>