目标属性映射在 Coredata 迁移时未在 xcmod​​elmappingmodel 中显示新添加的属性

Destination attribute mapping not showing newly added attribute in xcmodelmappingmodel while Coredata migration

我有一个核心数据映射,其中 Version 模型有 4 个属性

appName, authCode, passPhrase, appVersion.

但是在下一版本的 Coredata 中,passPharse 实体被删除了。那里没有 passPhrase 的映射。

后来我在 Version 模型中添加了另一个属性

oldPassPhrase

但是在实体映射 VersionToVersion 上它没有显示在目标属性下拉列表中。还有其他 3 个属性。

如何在 xcmod​​elmappingmodel

的目标属性下拉列表中获取 oldPassPhrase 属性

创建一个新的 .xcmappingmodel 解决了我的问题。