Mogenerator does not generate any objects, although there are entities in the datamodel. Reports "No objects were found in the model. Files will not be created."

I am trying to get mogenerator (1.26) to create some boiler tile classes from the base data model (xcdatamodel) and it reports:

No entities found in model. No files will be generated. (model description: (<NSManagedObjectModel: 0x10012e410>) isEditable 1, entities { }, fetch request templates { }) 

Although the contents of xcdatamodel explicitly exist

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <model name="" userDefinedModelVersionIdentifier="" type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="1487" systemVersion="11E53" minimumToolsVersion="Xcode 4.3" macOSVersion="Automatic" iOSVersion="Automatic"> <entity name="Chair" representedClassName="Chair" syncable="YES"> <attribute name="name" attributeType="String" maxValueString="50" syncable="YES"/> </entity> ... 

What am I doing wrong?

I am using Xcode 4.4.1 and mogenerator 1.26

+6
source share
1 answer

This is a quote from http://raptureinvenice.com/getting-started-with-mogenerator/

When you create entities in your data model, be sure to fill in the Class field with the same name as the object.

So what you need to do:

  • Open data model
  • Choose your object
  • In the right pane, select β€œData Model Inspector” (third).
  • Edit the Class field with the same name as the Name field
+10
source

Source: https://habr.com/ru/post/924424/


All Articles