How do I use Mogenerator?

前端 未结 6 1670
逝去的感伤
逝去的感伤 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:40

    using mogenerator:

    1. download mogenerator

    2. run and build the mogenerator project

    3. locate the built file in the product group enter image description here

    4. copy the built file in to /usr/bin directory

    5. in the terminal copy this code and hit enter: mogenerator -m /Users/hashem/Desktop/Projects/myApp/myAppModel.xcdatamodel -O /Users/hashem/Desktop/Projects/myApp/managedObjects --template-var arc=true

    NOTE: here first I have entered myApp.xcdatamodel file path, and next path is the location of generated files. if the file path contains space character be sure to add \ character before space in the file path. like /desktop/xcode\ projects/myApp/....

    enjoy!

提交回复
热议问题