First, your steps 7 and 8 should be unnecessary. You're duplicating steps that mogenerator
is supposed to be taking. You should not be taking those steps, and you should delete the files that you created using those steps. Creating those files is mogenerator
's job, when you're using it.
The results you describe suggest one of the following scenarios:
mogenerator
did not actually run for some reason. Take a close look at the build log to make sure that it did.mogenerator
ran but failed for some reason. Again, check out the build log for signs of trouble.mogenerator
ran normally but you're either looking in the wrong place for its results or just not quite understanding the process.
If mogenerator
works normally, it generates two class files for each entity in the model. But it does not automatically add the files to your Xcode project. If the files are already part of the project then Xcode uses the new versions. But if they're new files, you need to add them to the project before Xcode will notice them. If this is the case, then your mogenerator
command means that the files are located in MyCoreData/Model
just waiting for you to find them.