This pull request allows to put xmod tag on a versionned model (.xcdatamodel__d_)_
Script then will automatically detect current version and call mogenerator on it.
This modification is non intrusive and not breaking existing behavior.
This is a popular request related to several issues : #7, #14, #37
Thanks to nvie who this is largely inspired from : nvie/mogenerator@5755843
extract model relative code into updateModel method
Automatically select current version of a model (xmod comment has to …
…be set on xcdatamodeld group)
Replaced reference to PlistBuddy using standard AppleScript
oh that's a nice improvement, thanks!
is this in the version 1.22 DMG? Doesn't seem to work in Xcode 3.2.6...
It should be. There may be an issue with 3.2.6 or there may not be. I'm still on 3.2.5, and haven't checked personally yet.
Yeah, as others have noted, under 3.2.6, xmod will create the folder for the files, but not the files themselves once you version the model file.