Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default templates? #91

Closed
ryanjm opened this issue Feb 17, 2012 · 4 comments
Closed

Default templates? #91

ryanjm opened this issue Feb 17, 2012 · 4 comments

Comments

@ryanjm
Copy link

ryanjm commented Feb 17, 2012

I've installed Mogenerator via brew. Am I missing a step? When I try to run it, I get:

~/code/iphone-app[apiv3]% mogenerator --model ~/code/iphone-app/IPhoneApp.xcdatamodeld/IPhoneApp\ 6.xcdatamodel
appSupportFileNamed:@"machine.h.motemplate": file not found% 

As far as I can tell (according to the stack overflow answer), I guess there is supposed to be /Library/Application Support/mogenerator/ with default templates, right? I don't have anything there. How do I get them?

Thank you.

As an aside:
Would you consider opening up the wiki section so that documentation could be created by the community? This seems like a very useful tool, but going to Stack Overflow or reading a couple articles isn't really the best way to get into a new project. Especially since for XCode 4 where we need to use the command line tool (correct?).

@rentzsch
Copy link
Owner

Looks like the mogenerator formula has this post-install caveat:

==> Caveats
A default set of Mogenerator templates have been installed to:
  /usr/local/Cellar/mogenerator/1.24/templates

If you haven't written your own templates, you may wish to copy these for
your own use:

  mkdir -p "/Users/wolf/Library/Application Support/mogenerator"
  cp /usr/local/Cellar/mogenerator/1.24/templates/*.motemplate "/Users/wolf/Library/Application Support/mogenerator/"

So I guess it's up to you to copy it where mogenerator expects to find it. Eventually mogenerator will build the default templates into the binary itself (see #79) but it's not there yet.

Good point: I just created mogenerator's wiki.

@ryanjm
Copy link
Author

ryanjm commented Feb 17, 2012

Thanks!

@ryanjm
Copy link
Author

ryanjm commented Feb 17, 2012

Hope it is ok, but I went ahead and added a couple pages to the wiki just to give it a jump start.

@rentzsch
Copy link
Owner

Yup, that's what it's there for :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants