'filenames are used to distinguish private declarations of the same name' error

前端 未结 8 674
没有蜡笔的小新
没有蜡笔的小新 2020-12-08 00:40

I am getting this error on generating an NSManagedObject in Xcode 8.1 in Swift.

:0: error: filename \"DemoOne+CoreDataClass.swift\" used twice: \'/Us

8条回答
  •  执笔经年
    2020-12-08 01:07

    This is what I did to fix this issue,

    1. Select your entity in the data model
    2. Set the Module to Current Product Module
    3. Leave the Codegen to Class Definition though Manual/None also works
    4. Select Editor > Create NSManagedObject Subclass

提交回复
热议问题