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
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:
svn status
Then all conflicted files had to be resolved
svn resolved filename1 filename2 ...
Once the conflicts resolved, the warnings were gone from Xcode
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!
Disabling SVN in Xcode prevents these issues (assuming you're managing your repository with another SVN tool). See this question:
Can you disable version control integration in Xcode 4?
Obviously, this might not be practical if there are other Xcode projects you do want to use SVN with.
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
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.
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
file
rm -rf /folder1/.git
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.
Go in to the appropriate directory and run:
svn revert fileName