I've setup Mogenerator for my project using tutorial but is some reason it doesn't generate files on Build.
Here is my script:

My Project Folder:
And *.xcdatamodel file:

I'm choosing Mogenerator target, pressing build. Build succeeded, but no files created. I know that mogenerator doesn't add it to my xcode project and lookup for files in project folder in finder, but nothing new there :(. I just don't understand what am I doing wrong. Tried a lot of scripts variants.
I'll be grateful for any help! Thanks.
This is my script. It works fine. Replace content inside <> with yours. Also check the path to shell. Mine is
/bin/sh.https://gist.github.com/madnik/8a91d546cc7031f829c5
Note I'm using latest version of mogenerator. --v2 argument is basically semantic versioning for tool arguments.