Dear Backendless-Team
I try to login and it doesn´t work anymore. My setup:
- iOS 10
- xCode 8.3.3
- Swift 3
- Backendless Cloud 4.0
- Both Backendless SDK iOS 4.0b13 and 4.0.1 (which is available via pod)
Error message:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSDictionary initWithDictionary:copyItems:]: dictionary argument is not an NSDictionary'
The error is thrown, but when I have a look in Backendless Cloud, the timestamp in the column “lastLogin” is updated. So I think that the function works but the object that is returned does not conform to BackendlessUser or something else.
I use the ASYNC function from your Backendless 4.0 Documentation site:
https://backendless.com/docs/ios/doc.html#users_login
let backendless = Backendless.sharedInstance()!
func loginUser () {
backendless.userService.login("james.bond@mi6.co.uk",
password: "iAmWatchingU",
response: {
(loggedUser : BackendlessUser?) -> Void in
print("User logged in")
},
error: {
(fault : Fault?) -> Void in
print("Server reported an error: \(fault?.description)")
})
}
In the past, this functionality was no problem. But now it does not work anymore.
I have cleared the complete Backendless 4.0 Cloud Database, so that there is only one single user and no relation to any other object.
Do you have an Idea what could be the reason?
Thank you very much for your strong support.
Best regards
Michael