download mogenerator tool and install
//
We have two ways to do it
1: download the dmg file in this web http://rentzsch.github.com/mogenerator and install directly
2:we can use the tool named Homebrew to install it , Install command :brew install mogenerator
//
this is the core commands:
mogenerator -m (path)*****.xcdatamodeld/*****.xcdatamodel -M(path)/_class -H (path)/class --template-var arc=true
we can use it to get the files we want