Start a new topic

Swift and redundant conformance


I'm new to iOS and Swift and I'm trying to query my Kinvey store.

I have followed the documentation :

class Event: NSObject, KCSPersistable {



but XCode tells me "Redundant conformance of 'Event' to 'KCPersistable'".

Am I wrong ?

Thank you

Thanks, it's ok without KCSPersistable.

I have another issue while loading empty values :


var entityId: String? 
var zipCode:String?

override func hostToKinveyPropertyMapping() -> [NSObject : AnyObject]! {
 return [
 "entityId" : KCSEntityKeyId, //the required _id field
 "zipCode" : "zipCode"


If zipCode is empty on the backend, I have an error : 

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0xe52238'



You should be able to do:

class Event: NSObject

In swift without any issues, omitting the KCSPersistable should run without issue.

Please let me know if you run into any issues.


No idea ?

Login or Signup to post a comment