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.
All the above didn't work to solve the same kind of issue I had. Doing some search, I understood that the issue I had was related to SVN conflicts.
I found out that there were conflicts using the command line:
Then all conflicted files had to be resolved
Once the conflicts resolved, the warnings were gone from Xcode
Go in to the appropriate directory and run:
The answer by Alex fixed my issue of missing files.
I had one other problem ( though it is not related to missing files, i feel this would be the better topic)
I fixed this by going directly into the repository, create a new directory under images so that the physical folder is now in the SVN server
I then took an update of the source, and got the newly created directory inside my working copy (though it is not added to the project).
I then copied the images to that directory and added them to the project using "Add File" option, which brought me back the "A" status and I was able to check in the files.
Just wanted to share this.....because it took a lot of time from me.
-anoop
In Xcode5 & Xcode6, below steps worked for me
Xcode
->Preferences
->Source Control
->uncheck Enable Source Control
then
Xcode
->Preferences
->Source Control
->check Enable Source Control
I had that bug and found no way to solve it other than creating an empty file on that position and then deleting it. It happened with files I had deleted from the project, and cleaning, building, deleting manually the Derived Data directory didn't work either. I believe it is a bug, and that it can be quite painful if it happens with more than a few files.
It has something to do with .svn hidden folders in your project.
I solved this issue by detaching the project from svn.
a. Open terminal and type the following commands:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
This will allow you to view the .svn folders inside your project
b. Delete every .svn folder in your project folders/subfolders
c. Re-enable hidden files:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder
d. Now your project is detached from svn and you no longer get build issues.
e. Re-add your project to svn or whatever.
I'm a beginner myself and this was my way of dealing with that issue, so I'm not sure this is the best way to go. Anyway, the problem was solved.