Start a new topic

Unrecognized selector starting from sdk version 1.41.0


I was using sdk version 1.40.8 and 1.40.9 and everything is working fine.

But with versions 1.41.0 and 1.41.1 my app crashes with this message:



-[__NSCFConstantString kinveyObjectBuilderOptions]: unrecognized selector sent to instance 0x10a55dfd8
2016-09-29 21:44:58.209 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString kinveyObjectBuilderOptions]: unrecognized selector sent to instance 0x10a55dfd8'
Please notice, that it's crashing with iOS 8, 9 and 10.
I'm using XCode 8

The code where the crash occurs is displayed below:


KCSAppdataStore *store = [KCSAppdataStore storeWithOptions:@{
                                                                 KCSStoreKeyCollectionName : @"MyCollection",
                                                                 KCSStoreKeyCollectionTemplateClass : [MyCollection class]

    KCSQuery* ownerQuery = [KCSQuery queryOnField:KCSMetadataFieldCreator withExactMatchForValue:user.userId];
    KCSQuery* inviteeQuery = [KCSQuery queryOnField:@"Invitees._id" withExactMatchForValue:user.userId];
    KCSQuery* joinedQuery = [KCSQuery queryForJoiningOperator:kKCSOr onQueries:ownerQuery, inviteeQuery, nil];
    //----> Here the crash occurs
    [store queryWithQuery:joinedQuery withCompletionBlock:^(NSArray *objectsOrNil, NSError *errorOrNil) {



 Any advise?

Thank you



Hello Akim,

Please confirm whether you made any changes to your application or not between SDK 1.40.x and 1.41.0 or 1.41.1.

Was this simply an upgrade from the old SDK to the latest SDK and started occurring? That is what your post reads like but I just want to make sure.



Hi, Thanks you for your reply. Indeed I didn't do any changes in my code. I just upgraded to the last versions and get this error. When I switch back to 1.40.x everything is working well. I tried with simulator and real devices, and still having this error only with SDK 1.41.x

Hello Akim,

That's what I thought. I just need to confirm. I have already escalated to Engineering. I will provide them with your last comments as well. 

We'll updated you when we know more.


Billy Gee

Login or Signup to post a comment