Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
644 views
Welcome To Ask or Share your Answers For Others

1 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...