Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 red files but not missing

Tags:

git

xcode

ios

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.

like image 264
Fernando Reynoso Avatar asked Oct 24 '16 20:10

Fernando Reynoso


2 Answers

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.

enter image description here

like image 94
i_am_jorf Avatar answered Oct 19 '22 06:10

i_am_jorf


I have the same problem - definitely not missing files. This is too late for OP but for anyone finding this ... it might help to change the file 'Location' setting from "Relative to Group" to Relative to Project" and then clicking on the folder to reselect the file. It worked for me. I think the path of the group can get messed up.

like image 29
Alan Avatar answered Oct 19 '22 06:10

Alan