I put some files on the same level of *.xcodeproj file carelessly. When I move these files into the right location in Finder, Xcode tells me that these files a
I found the answer.
3 things
1 removed the reference to the red files then dragged them back into the project relinked all my .m and .h files just incase
2 then removed the .app reference and dragged it back in to the project.
3 removed any duplicates or red files in the build phases
Fixed Thanks everyone for your suggestions and help