I create an application in which there are messages. I created messages via firebase, and everything worked almost fine until this error was released.

I tried to delete user, messages, user-messages - the data from the firebase, and then leave the account and create a new one. But it did not help.

Previously, I had the same thing, but the error was that User () did not have the necessary data, there is connected ... with which I assigned values ​​from the firebase. But right now, everything is there and I do not understand why I swear. Can you please tell what the problem is and how it can be solved.

Previously, user id: ... data was recorded and more ... as shown in the last photo. Over time, the count increased. data that you need to write. One with the other norms. everything worked.

 ** Error: ** 2017-02-24 15: 38: 41.437 Wimp General [4630: 838440] Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[setValue: forUndefinedKey:]: *** this class is not key value coding-compliant for the key 65. *** '
 *** First throw call stack:
 Of the v-vs of the v-v-vs ox240039 vb 0x23feee17 0x24853629 0x24fc71f3
 libc ++ abi.dylib: terminating with uncaught exception of type NSException

Mistake

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here

  • What's in this dictionary? Can you add to the question? - Max Mikheyenko
  • I added all the data that might come in handy. I myself think that the matter is in the data that is recorded in users, but I don’t know how to delete all the data at the same time, but not to delete the users model itself. - Nikola Cvetkovic
  • I deleted all the data from users, user-massage, massage right now, but nothing has changed unfortunately. - Nikola Cvetkovic
  • as you probably already understood, you have crash because of this "65". I can not say exactly what is what. need to think - Max Mikheyenko
  • I commented out this part right now and output the user.id values. It came out a lot of value, I do not know where they came from if I had already deleted them - Nikola Cvetkovic

1 answer 1

The problem is that an instance of the User class does not support the NSKeyValueCoding protocol.