Primary key property 'name' does not exist on object 'RealmSwiftPermissionRole'

前端 未结 4 1099
一个人的身影
一个人的身影 2021-01-31 08:20

I\'m using RealmSwift as a database in my swift project. Today, after opening my project in Xcode-beta version 11, my app crash with this error:

Terminati

4条回答
  •  借酒劲吻你
    2021-01-31 08:42

    I had run into the same issue with RealmSwift 4.3.1, the problem was I forgot to mark the property as @objc

    @objc dynamic var id = ""
    

提交回复
热议问题