升级到 Xcode 4 后出现缺少文件警告

Missing file warnings showing up after upgrade to Xcode 4(升级到 Xcode 4 后出现缺少文件警告)

本文介绍了升级到 Xcode 4 后出现缺少文件警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到 Xcode 4(这是一次很棒的升级),但现在我收到了一些以前没有收到的警告.我浏览了论坛和其他 SO 帖子,但没有找到解决此问题的方法.

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.

我环顾四周,没有找到如何告诉 Xcode 这些文件已经消失,停止给我警告.这是我在 Xcode4 中获得的屏幕截图,但从未在 Xcode 3 中获得.

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.

推荐答案

这些解决方案太难了.问题是您已经从文件系统中删除了该项目,但 SVN 仍然认为它们在那里.从 SVN 中分离项目将起作用,对于删除 .svn 文件夹也是如此,但这会破坏您的存储库!

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!

打开控制台要容易得多,浏览到您的文件夹(cd/pathToYourFolder")并键入以下命令:

It is much easier to open console, browse to your folder ("cd /pathToYourFolder") and type the following command:

svn 删除 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@

对于 GIT 存储库:

For GIT repositories:

git rm nameOfMissingFile

这篇关于升级到 Xcode 4 后出现缺少文件警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:升级到 Xcode 4 后出现缺少文件警告

基础教程推荐