Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Xmod.scpt doesnt support versionned Models (a must for migrating models across versions) #14

Closed
puy0 opened this Issue Feb 21, 2010 · 5 comments

Comments

Projects
None yet
2 participants

puy0 commented Feb 21, 2010

Xmod script assume that model is in a /project/path/MODEL.xcdatamodel
Then it works on /project/path/MODEL node / folder

So iIt fails with versionned models which are in /project/path/MODEL.xcdatamodeld/MODEL.xcdatamodel
because trying to work on read only bundle path : /project/path/MODEL.xcdatamodeld/MODEL

I'm currently fixing that script so it work correctly on /project/path/MODEL whatever version is saved...
Too bad I'm an AppleScript noob ;)

Grea work on the generator btw, I'm loving it, would not consider using CoreData without.
Thanks a lot.

puy0 commented Feb 21, 2010

UPDATE : looks like nvie already fixed that one : http://github.com/nvie/mogenerator/
testing it :)

puy0 commented Feb 21, 2010

nvie script doesnt work for me or there is a trick to refer .xcdatamodeld as a file reference in project (it is a group for me)
anyway, now got a working script, but a bit dirty due to my AppleScript skills...
and thanks to nvie it even takes automatically the latest model version :)

Owner

rentzsch commented Jul 1, 2010

this should be working 1.18 now.

puy0 commented Jul 1, 2010

great news, thanks for the update rentzsch, i'll check that in the coming days.
I could have provided my AppleScript, but it is so dirty i didn't dare.
I will bring feedback on that topic if needed.

Owner

rentzsch commented Feb 16, 2011

See also #46

seanm pushed a commit to seanm/mogenerator that referenced this issue Jan 6, 2012

Merge pull request #46 from vguerci/mogenerator
---

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

ddrccw pushed a commit to ddrccw/mogenerator that referenced this issue Jan 20, 2014

Merge pull request #46 from vguerci/mogenerator
---

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

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment