User returned as NSDictionary

I am trying to get a property from a BackendlessUser object but when I try to get the property I get this error:
-[__NSDictionaryM getProperty:]: unrecognized selector sent to instance 0x154dc6600
This occurs when I try to call the “updateProperties:” method. In other words, when I get an user by findById the returned user is not an BackendlessUser object but a NSDictionary.
I am using the last version of the SDK installed via CocoaPods.
Best regards.

Francisco,

Could you please illustrate the problem with some sample code? Make sure to point out the line where the error happens.

Regards,
Mark

Hi, this is an example of what I am trying to do:

NSDictionary *userData = @{@"birthdate":[NSDate date]};





[backendless.userService findById:userIdentifier response:^(BackendlessUser *user) {

[user updateProperties:userData];

} error:^(Fault *fault) {






}];

This generates:

-[__NSDictionaryM updateProperties:]: unrecognized selector sent to instance 0x7aaab850

Any new about this issue?

Francisco, this issue is fixed, please update the latest Backendless SDK from CocoaPods (3.0.22 release) or from github (CommLibiOS & backendless libs)

Also you can check the sample project demonstrated the operations with users (see in attachment)

TestUserService.zip (19.28MB)

Ok, now its fixed. Thank you :slight_smile:

Best regards.