I recently upgraded to Xcode 4 (which is a great upgrade) but now I'm getting some warnings that I did not get before. I have looked through forums and other SO posts but have not come across how to fix this.
The warnings I get are project level warnings for a missing file. The files that are being shown have been deleted from the project navigator view (also choosing to delete from file system). However it still seems to be showing up as somehow linked to the project, even though the file no longer appears in the Project navigator.
I have looked around and not found how I can tell Xcode that these files are gone, stop giving me warnings. Here's a screenshot that I get in Xcode4, but never got in Xcode 3.
In XCode 4.2.+ (possibly in 4+) you can avoid manual work and command line :
And that's it :)
All those nasty warnings are gone!
Additionally for Xcode 6+: After selecting the file view 'middle icon' - you can click the checkbox to the left and this will mark them as deleted for SVN when you next commit!
I solved it the following way:
I am using svn and manage to solve this problem by
svn delete pathToMissingFile
which is going to remove the local svn copy of the missing file as well as the copy in the remote repository.
or
svn revert pathToMissingFile
which is going to discard changes on the missing file which mean putting the missing file back to where it was.
Press Cmd + 7 after build and select the latest build action. Does it look like good old Xcode a bit? :)
I also had this problem, and as user151215 has described it IS due to .svn folders.
I had a old .svn folder, not in the project itself but in the projects parent folder.
the offending .svn folder will have an entries file that contains your missing files. So you can use Teminal and search for a missing file name string, e.g. grep -lir BagController.m yourRootDevDir/*
simpler than enabling hidden files in finder, just use the terminal. cd to relevant directory, and mv .svn ~/.Trash
Hope this helps!
In my case