NSUnknownKeyException for existing and non-mistyped key

前端 未结 1 1907
长发绾君心
长发绾君心 2021-01-27 12:21

I\'m getting the following output:

*** Terminating app due to uncaught exception \'NSUnknownKeyException\', reason:
\'[ setValu         


        
1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-27 12:52

    The problem is quite strange (sometimes works, sometimes not), so I would suggest to change the name of the attribute (e.g. booleanStatus) and verify if the problem still persists or not.

    Since you have changed the model you need to remove the app and ricreate it. Alternatively you could perform an automatic migration on Core Data. As you prefer.

    Hope it helps.

    0 讨论(0)
提交回复
热议问题