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

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

问题描述

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

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

加入您计划中的启动时传递的参数位置。

应用技术说明TN2124 介绍了此功能以及许多其他调试功能。

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

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

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