mogenerator icon indicating copy to clipboard operation
mogenerator copied to clipboard

mogenerator --configuration does nothing now

Open mulle-nat opened this issue 1 year ago • 1 comments

Question

I came back to an old project, which uses mogenerator with the --configuration option to create different kinds of classes. This isn't working anymore though nothing has changed, except for a newer mogenerator version installed by brew. When I remove the --configuration <name> from the call (see below), classes are created. The configuration in the model file still exist (here is a small example from the much larger file):

    ...
    <entity name="XEKEvent" representedClassName="XEKEvent" syncable="YES">
        <attribute name="ekIdentifier" optional="YES" attributeType="String" indexed="YES" syncable="YES"/>
        <attribute name="ekModificationDate" optional="YES" attributeType="Date" indexed="YES" syncable="YES"/>
    </entity>
    ...
    <configuration name="XEK">
        <memberEntity name="XEKEvent"/>
    </configuration>
    ...

The question is, is this known ? Has something changed, so I need to do something more ?

Expected Behavior

Some stuff should be generated.

Actual Behavior

No stuff was generated.

Additional Information

mogenerator --configuration XEK -m ../XEKModel.xcdatamodeld -H . -M ./Generated\ Bases --template-path ../mogenerator\ Templates

mulle-nat avatar Sep 19 '23 09:09 mulle-nat

Can't reproduce this anymore. No idea what happened

mulle-nat avatar Sep 22 '23 09:09 mulle-nat