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.
I used the following way to deal with tha issue:
Launch the terminal and cd to the project directory. (ex: cd /Users/Mauro/Src/Pippero-1.2/ )
Then enter the following command:
the command will recursively search for files (and folder) called .svn and delete them
This worked for me:
File
->Source Control
->Hide Working Copy Status
then
File
->Source Control
->Show Working Copy Status
I didn't have to do anything. I committed my code and pushed it up. Turned off XCODE. Pulled it down again and everything just worked.
Dont delete the file directly in your .xcode folder. Delete files from xcode project navigator. (Right click on that file and choose move to trash).
Now, To clear this issue add same files in same location. And delete from the project navigator.
Overview:
In my case there was an xcode Project called
Sample
in the following folder path/folder1/folder2
.There was a
.git
file inside/folder1/folder2/Sample/
which is expected.Root cause:
There was another
.git
file in the parent directory (/folder1
) which was causing the issue. The folders might have been deleted leaving behind the.git
fileSolution
rm -rf /folder1/.git
Clue
If moving your project to a completely new location fixes the issue where there was no
.git
file in the parent directories up the hierarchy then it is a clue that the above solution could work.