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

前端 未结 8 702
没有蜡笔的小新
没有蜡笔的小新 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 00:50

    The issue was due a second file named:"Extensions.swift" in my project.

    After deleting the duplicate "Extensions.swift" the error got resolved. Your error message might tell you which file is duplicated.

提交回复
热议问题