Core Data Codegen fail in Xcode 8

后端 未结 6 1488
萌比男神i
萌比男神i 2021-02-04 05:01

I have an iOS app containing a Core Data model with 6 entities. The entity Name is set up as follows:

Class Name: Name

6条回答
  •  太阳男子
    2021-02-04 05:51

    It's actually pretty easy to fix it.

    Go to configuration:

    Then delete the points. These are only there in older projects. The import statements are fixed after this and you are good to go.

    You also should put your models to the Global namespace. Mine were in a extra namespace, but i have no idea why.

    Apples approch is that you can use this in a custom framework.

    This feature is pretty nice, if you get it working ;)

提交回复
热议问题