问:
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.

答:
These solutions are way too difficult. The problem is that you have removed the project from filesystem but SVN still thinks they are there. Detaching project from SVN will work, the same for removing .svn folders BUT that is going to destroy your repository!
It is much easier to open console, browse to your folder ("cd /pathToYourFolder") and type the following command:
svn
delete nameOfMissingFile
If the name of your missing file includes the @ character (eg: retina-specific artwork), ensure the file name terminates with the @ symbol:
svn
delete nameOfMissingFile@2x.png@
For GIT repositories:
git
rm nameOfMissingFile
解决Xcode4中删除文件后仍显示警告的问题
在升级到Xcode4后,您可能会遇到关于已删除文件的项目级警告。本文将指导您如何通过命令行操作解决此问题,确保Xcode正确识别并删除已从文件系统中移除的文件。
14

被折叠的 条评论
为什么被折叠?



