Found these articles, but can't figure out how they help:
Understanding crash report (Partial apply...) in Swift Swift closure crashes when called as Objective-C block
I am getting Partial Apply Forwarder in the below code:
let task = session.dataTask(with: request, completionHandler: {
(data, response, error) in
if error == nil {
let result = String(data: data!, encoding: String.Encoding.utf8)!
if WebService.THETA_INVALID == result {
failure(LoginService.INVALID_MESSAGE)
}
else if WebService.THETA_UNVALIDATED == result {
failure(LoginService.UNVALIDATED_MESSAGE)
}
else {
let loginCredentials = LoginCredentials()
loginCredentials.username = user
loginCredentials.password = password
loginCredentials.authorization = result
success()
}
} else {
failure(error!.localizedDescription)
}
})
task.resume()
The error object.failure contains "Partial Apply Forwarder" and I have no idea what this means. I've tried googling and it appears to have something to do with optionals, but most things have something to do with Thunk?
Can anyone help point me to the issue?