本文介绍了Xcode 8红色文件但没有丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在我的一个iOS项目上看到了一个奇怪的错误。
我使用的是Xcode 8(最新版本)。我有一些课程与其他项目一起分享。这些文件通过引用添加到项目中,以防我需要编辑它们,我只做一次。
一切正常。但是我看到很多这些文件在我的一个项目中都显示为红色。奇怪的是,一切正常。所有图书馆都包括在内,一切都运行完美就像我说的,文件被标记为红色,我不能直接从该项目编辑它们,但它们不会丢失(路径正常),我不能直接使用show on finder选项直接进入文件夹。



我尝试更换文件夹。还尝试添加并将它们复制到项目文件夹。但似乎没有任何工作。
我知道,关于这个问题有很多线索,但他们都没有为我工作,因为我的文件没有丢失。



有人看到这个问题吗? / p>

PS。我使用git。

解决方案

在左侧的Project navigator中选择文件,然后打开右侧的Utilities视图和选择文件检查器。然后点击小文件夹图标,并确保指向正确的路径。




I just saw a weird error on one of my iOS projects.I'm using Xcode 8 (last release). I have some classes that I share along with other projects. This files are added to the project by reference, in case I need to edit them, I do it just once.Everything works fine. But I saw that many of this files are on red in one of my projects. The weird thing is that everything works well. All libraries are included, everything runs perfectly. Like I said, the files are marked as red and I can not edit them directly from that project but they are not missing (paths are OK), I cannot go directly to the folder using "show on finder" option.

I tried replacing the folders. Also tried to added and copy them to the project folder. But nothing seems to be working.I know, there are many threads about this issue but none of them worked for me because my files are not missing.

Did someone see this issue?

PS. I'm using git.

解决方案

Select the file in the Project navigator on the left, then open the right side Utilities view and select the File inspector. Then click on the little folder icon and make sure that points to the right path.

这篇关于Xcode 8红色文件但没有丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-10 21:21