Enabling core data lightweight migration in Swift 3

后端 未结 5 859
野的像风
野的像风 2021-02-04 03:01

According to the articles I have read the correct way to enable core data light weight migrations is by passing options to addPersistentStoreWithType:



        
5条回答
  •  一生所求
    2021-02-04 03:29

    Note that both NSPersistentStore's shouldInferMappingModelAutomatically and shouldMigrateStoreAutomatically are true by default.

    Apple reference for:

    • shouldInferMappingModelAutomatically

    • shouldMigrateStoreAutomatically

提交回复
热议问题