Start a new topic

KCSUser.ActiveUser crash

Using Kinvey iOS SDK 1.28.0

On first launch of app, I login using the username/password login method on KCSUser.

On second app launch, I try to access saved used credentials using KCSUser.activeUser => Crash

2014-12-18 12:07:20.851 PetPals[4181:5585457] -[__NSDictionaryM userId]: unrecognized selector sent to instance 0x7fe068e3cc30

(lldb) po 0x7fe068e3cc30


"_id" = 543685cf3d438d542204d131;

"_kinveymeta" = "";

"_push" = {


email = "";

"first_name" ="";

"last_name" = "";

username = "some username";


(lldb) po [0x7fe068e3cc30 class]


Can you shed some light on this?

Good morning VesterBaek,

Before I try to answer your question I was hoping to get a little bit of background on this issue. Did this code work for you in a previous version of the library or is this the first project that you've built with Kinvey?

Are you developing this using Swift, or in objective - C ?

If you want to shoot me a sample of your code to I will look it over and get back to you as soon as possible.

Using Swift. I cannot reproduce the problem consistently, but can you check your code for calls to "userId"? I've switched to using your REST API for now.
Good afternoon Vesterbaek,

I wanted to loop back with you to let you know that we've been unable to reproduce the issue that you're having locally at this time. There are some ways that you can implement this function that are technically "wrong" that will still compile and run with Xcode.

Can you please shoot me a 1-line sample of your code (just the line where you are experiencing the error) so we can double check it? My email is Once you shoot that over I'll be more than happy to work with you to resolve this issue (off-forums).

Login or Signup to post a comment