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

Categories

0 votes
616 views
in Technique[技术] by (71.8m points)

objective c - Debug Core Data Migration to compare hash values

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

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

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...