Duplicate files in DerivedData folder using CoreData generator

后端 未结 7 1799
庸人自扰
庸人自扰 2020-12-28 13:29

I\'m trying to generate NSManagedModels from my datamodel. Generation works but after I got many errors :

error: filename \"Station+CoreDataProperties

7条回答
  •  时光说笑
    2020-12-28 14:15

    This post greatly helped me solve this problem myself. Personally I look at this as an Xcode bug. Bug or not this is a huge chicken and egg situation.

    I ran into this by:

    1. Created a new Project using Core Data
    2. Generated my NSManagedObject subclass+extension (while codegen: ClassDefinition)
    3. I accidentally saved the generated classes in the Wrong folder
    4. I deleted the generated files
    5. Re-generated in folder I wanted
提交回复
热议问题