NDM
NDM

Reputation: 944

Xcode 9 - Some folders marked with red text

In my project, there are some folders that have red text. The project compiles and everything works, but I can't understand why only some folders have red text.

Folder with red text

Upvotes: 4

Views: 5327

Answers (2)

93sauu
93sauu

Reputation: 4107

The UI error feedback notifies you that the path is not found. You can select a new one using the folder icon in the right panel. In this way, all files in the folder keep the configuration so it is more convenient.

I illustrate it in the above screenshot.

Example

Upvotes: 1

Dixit Akabari
Dixit Akabari

Reputation: 2547

Check this.

It means they are not found on disk where your project believes they should be. Control-click and Show In Finder to see the folder location to locate the file and drag it back in to the project, and delete the bad reference.Missing. Maybe you moved them somewhere without deleting them from the project or something.

Edit: Don't delete it before add it first, and you should save backup from the files in another folder, also you have to use source controls like Bitbucket, GitHub, or GitLab.

Upvotes: 9

Related Questions