07-19-2023, 12:48 AM
I never get this before, What is the meaning of this error message in Swift:
> No exact matches in call to instance method 'dataTask(with:completionHandler:)'
Here is my code block:
var request: NSMutableURLRequest? = nil
let task = URLSession.shared.dataTask(
with: request,
completionHandler: { data, response, error in
DispatchQueue.main.async(execute: {
/// ...
})
})
task.resume()
### Bug Report
Reported via feedbackassistant.apple.com: **FB7717686**
**Note: The Error still exists in the Xcode Version 14.3 on 2023, May 1**
> No exact matches in call to instance method 'dataTask(with:completionHandler:)'
Here is my code block:
var request: NSMutableURLRequest? = nil
let task = URLSession.shared.dataTask(
with: request,
completionHandler: { data, response, error in
DispatchQueue.main.async(execute: {
/// ...
})
})
task.resume()
### Bug Report
Reported via feedbackassistant.apple.com: **FB7717686**
**Note: The Error still exists in the Xcode Version 14.3 on 2023, May 1**