调试核心数据迁移以比较散列值

时间:2021-08-17 12:58:21

I read this Post (click) about fixing a nasty core data migration problem.

我读了这篇关于修复令人讨厌的核心数据迁移问题的帖子(点击)。

The author Victor Bogdan wrote that he enabled Data Migration Debug to get the hash values for the entities. What does it mean? Is it possible to enable more debug output for a migration? Or did he wrote a migration process with debug output?

作者Victor Bogdan写道,他启用了数据迁移调试来获取实体的哈希值。这是什么意思?是否可以为迁移启用更多调试输出?或者他是否用调试输出编写了一个迁移过程?

My problem is that I can't get the entity hashes for the mapping model to compare them with the source and destination entity hashes.

我的问题是我无法获取映射模型的实体哈希值,以将它们与源和目标实体哈希值进行比较。

I am on XCode 4.5.1 and use iOS6. But I had the same migration problems with older versions.

我在XCode 4.5.1上并使用iOS6。但是我对旧版本有相同的迁移问题。

1 个解决方案

#1


19  

To enable core data migration debug mode, you will need to add

要启用核心数据迁移调试模式,您需要添加

-com.apple.CoreData.MigrationDebug 1

to the "Arguments Passed on Launch" location in your scheme.

到你的计划中的“在发射时传递的参数”位置。

Apple Technical Note TN2124 describes this as well as many other debugging features.

Apple技术说明TN2124描述了这一点以及许多其他调试功能。

#1


19  

To enable core data migration debug mode, you will need to add

要启用核心数据迁移调试模式,您需要添加

-com.apple.CoreData.MigrationDebug 1

to the "Arguments Passed on Launch" location in your scheme.

到你的计划中的“在发射时传递的参数”位置。

Apple Technical Note TN2124 describes this as well as many other debugging features.

Apple技术说明TN2124描述了这一点以及许多其他调试功能。