【问题标题】:Destination attribute mapping not showing newly added attribute in xcmodelmappingmodel while Coredata migration迁移Coredata时,目标属性映射未在xcmod​​elmappingmodel中显示新添加的属性
【发布时间】:2016-10-24 12:16:51
【问题描述】:

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

appName、authCode、passPhrase、appVersion。

但在 Coredata 的下一个版本中,passPharse 实体已被删除。并且没有passPhrase 的映射。

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

旧密码短语

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

如何在 xcmod​​elmappingmodel 的 Destination 属性下拉列表中获取 oldPassPhrase 属性

【问题讨论】:

    标签: ios xcode core-data core-data-migration modelmapper


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2016-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-15
      • 2019-09-15
      • 2013-06-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多