我正在尝试让 mogenerator(最新 1.26)从核心数据模型(xcdatamodel)生成一些样板类,它报告:
No entities found in model. No files will be generated.
(model description: (<NSManagedObjectModel: 0x10012e410>) isEditable 1, entities {
}, fetch request templates {
})
即使 xcdatamodel 的内容明确存在
<?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>
...
我究竟做错了什么?
我正在使用 Xcode 4.4.1 和 mogenerator 1.26