问题
Is there any way to reverse engineer a Core Data 'mom' file (compiled core data model)?
回答1:
There is a way to do this easily.
You can import a compiled datamodel file (.mom) into a model design document (.xcdatamodel) using Xcode > Design > Data Model > Import. This will effectively allow you to 'reverse engineer', if you wish, the compiled mom file and inspect it's model.
Edit:
In the Xcode 5 and later, the menu is under Editor->Import. But this menu will only appear when you click the .xcdatamodel
来源:https://stackoverflow.com/questions/4645685/reverse-engineer-core-data-mom-file