标签: ios swift core-data core-data-migration
NSMigrationManager.migrateStore()失败,出现Cannot migrate store in-place: constraint violation during attempted migration,这并不奇怪。令人惊讶的是,它被源存储URL覆盖了目标存储URL(两者均在抛出的错误的userInfo中提供),并且试图进行就地迁移,尽管另有说明。
NSMigrationManager.migrateStore()
Cannot migrate store in-place: constraint violation during attempted migration
userInfo
关于如何使其迁移到其他商店(即就地不是)的任何线索吗?