I am getting this error on generating an NSManagedObject in Xcode 8.1 in Swift.
:0: error: filename \"DemoOne+CoreDataClass.swift\" used twice: \'/Us
In my case Data Model (as example: MyCoreData.xcdatamodeld) was listed twice under Editor -> Create NSManagedObject Subclass... And here was reason why it was getting this type of error.
What I did: