Backendless 4.0 iOS User Login - NSDictionary initWithDictionary:copyItems

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

Hi, Michael.
We’ll investigate this issue. Inner ticket assigned to developer. (BKNDLSS-15245)

Hello Michael,
The result of the login method is a Backendless user object (Screenshot attached). Please, clarify where do you get the error message?

Regards, Olga

Dear Olga,

thank you very much for your response. Now it is working without any change in my code.
I have no idea what could be the reason. It seems, the BackendlessUser Object was not received correctly on Saturday. In the meanwhile I rebooted my iMac.

Thank you very much for your support. This ticket can be marked as solved.

Very best regards,
Michael

Thank you very much for your reply!

Regards, Olga