Realm Migration doesn't work

后端 未结 8 1150
天涯浪人
天涯浪人 2020-12-28 17:16
    let config = Realm.Configuration(
        // Set the new schema version. This must be greater than the previously used
        // version (if you\'ve never set a         


        
相关标签:
8条回答
  • 2020-12-28 17:53

    Are you sure that you updated your schemaVersion properly? If you set schemaVersion: 1 before you made changes, you need to change it to 2 in order for the migration to trigger.

    0 讨论(0)
  • 2020-12-28 17:58

    Delete app from iPhone and install again. works good.

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