I have been trying to add core data. And every time I got the same error:
error: filename \"EntityName +CoreDataClass.swift\" used twice: \'/Users/userName/
Delete compile file core data in the tab "Build phases" section "Compile source" pressed -