How do I use Mogenerator?

前端 未结 6 1636
逝去的感伤
逝去的感伤 2020-12-31 01:43

I installed Mogenerator. Now what do I do? How do I use it?

The first problem I have is that I have no idea where it was installed to. During the install process, it

6条回答
  •  孤城傲影
    2020-12-31 02:25

    mogenerator is a script that is installed into your developer directory as I recall. However it might be installed into the Xcode scripts directory under your ~/Library.

    What do you mean by manually triggering the application? You can trigger a build by "touching" the data model. Any save on the data model will trigger the build

    In Xcode if you select the model file and hit ⌘I you will get its metadata. Click on the comments tab and add xmod there. mogenerator looks for that comment to know if it should generate files.

    Update

    You can run mogenerator from the command line as well as have it monitor your files. Type mogenerator --help in the Terminal to see the options.

提交回复
热议问题