Generating Swift models from Core Data entities

前端 未结 7 1531
我在风中等你
我在风中等你 2020-12-08 09:36

Update for Xcode 8:

In Xcode 8, one needs to go to the Core Data Model Editor and Show the File Inspector. Near the bottom is an option for code gen

7条回答
  •  时光取名叫无心
    2020-12-08 09:38

    I tested @NSManaged, it didn't work. :( . But mixed models files(.h) generated by xcdatamodel, it succeed. please read the doc and code in https://github.com/iascchen/SwiftCoreDataSimpleDemo

提交回复
热议问题