调试核心数据迁移以比较哈希值 [英] Debug Core Data Migration to compare hash values

查看:29
本文介绍了调试核心数据迁移以比较哈希值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我阅读了这个发布(点击)关于修复令人讨厌的核心数据迁移问题的帖子.

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

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

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?

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

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.

我使用的是 XCode 4.5.1 并使用 iOS6.但是我在使用旧版本时遇到了同样的迁移问题.

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

推荐答案

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

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 技术说明 TN2124 描述了这一点以及许多其他调试功能.

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

这篇关于调试核心数据迁移以比较哈希值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆