I am trying to use Mogenerator with Xcode 5 but it is generating only one set of ManagedObject class (.h and .m) files instead of two set of (Machine and Human) files. I have tried many tutorials already but no use so far. If anyone could provide a step by step guide to use Mogenerator with Xcode 5 would be really helpful.
I followed the procedure mentioned in the below link. http://adoptioncurve.net/archives/2012/12/setting-up-mogenerator-in-xcode-4-dot-5/
These are the steps I followed,
- Installed 'Mogenerator'
- Added new mogenerator target.
- Selected 'New Mogenerator' target and then selected 'Build Phases'.
- Then from the Editor tab --> Add Build Phase --> Add Run Script Build Phase
- Opened Run Script section on 'Mogenerator' target and edit the script like this mogenerator -m MyCoreDataApp/MyCoreDataApp.xcdatamodeld -O MyCoreData/Model --template-var arc=true
- Selected 'Main' target and added Target dependency as Mogenerator.
- Selected the 'Entity' on the Core Data file (xcdatamodeld) and then selected Editor --> Create NSManagedObject Subclass.
- Checked 'Main' target in the popup window. (Even tried selecting 'Mogenerator' target).
Only two files, which are NSManagedObject subclasses (.h and .m) are being recreated.
Please let me know if I missed any steps in the process.
