Warning - Xcode - Skipping duplicate build file

Xcode is giving me this warning


Skipping duplicate build file in Compile Sources build phase

and a path to my entity class declaration file (for CoreData)

then (in target 'myAppName')



in my XCDataModelD - when i select the entity , i choosed for codegen -> Catergory/Extension

then i created a Class with the same name as my entity.


the warning was not there in the beginning and it was working, then

2 things might have helped create this problem

1- because i had error in my code with entity :-) i tried the menu Editor -> Create NSManagedObject Subclass...

then i decide to delete both of those generated files


2- stll trying to resolve the other problem, I think i have might drag the class from my other project once and it did not work, dragged it again, then it showed up , look at it, and delete it from xcode


but in the finder, when i look in my project,there is only one file for this class ?

i did the Product -> Clean Build Folder

(both without and with ALT key - but i think ALT is not necessary anymore)

Accepted Reply

OOHHHH


I selected 3 files with one of them was my entity class file RideData and choose

New group with selection


the folder was create with the 3 files


but


then Magically, another RideData Appear outside of this folder but in read

I deleted the file, built and error was gone !!!

Replies

OOHHHH


I selected 3 files with one of them was my entity class file RideData and choose

New group with selection


the folder was create with the 3 files


but


then Magically, another RideData Appear outside of this folder but in read

I deleted the file, built and error was gone !!!