Files in Xcode not working (names in red)
If files marked in red, they are "not found" by Xcode.
You either moved or deleted them within File Finder, outside Xcode.
Delete the red marked files within XCode, then add them again to XCode.
This will solve your problem.
Xcode 9 - Some folders marked with red text
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.
Dragged files into Xcode show up as red, automatically using wrong path
Delete the group files AND group folder, not just the group files! The group folder has its own path that is causing group files under it to have an incorrect path.
Does anyone know why if I move a xcode project to another computer some files are broken?
Get Info on the files in question in the Groups & Files list, and ensure that Path Type is set to one of the relative values. Mostly likely the files that are showing as missing were set to Absolute.
Frameworks are 'red' in Xcode
The red text indicates that the actual files are not at the path that the project has for them.
Get info on the framework and look under the General
tab. The first section shows the name and path of the framework bundle itself. The most common cause of a problem with system supplied frameworks is that the path type has been changed to something that breaks the path. The default setting is Relative to Current SDK
. Change the path until you get one that leads to the actual framework.
If you have the developer tools installed in a custom location, you are more likely to run into this problem. If you copy a project from someone with non-standard settings, you can encounter it as well.
Related Topics
"The Run Destination iOS Device Is Not Valid for Running the Scheme"
Removing Object from Array in Swift 3
What the Meaning of Question Mark '' in Swift
Change the Color of a Link in an Nsmutableattributedstring
Info.Plist Utility Error: "Info.Plist Couldn't Be Opened Because There Is No Such File"
Lock iOS App in Single App Mode Programmatically
Uinavigationcontroller Interactivepopgesturerecognizer Working Abnormal in iOS7
iOS 7 Device Token Is Different for Same Device
Swift 3: How to Add Watermark on Video? Avvideocompositioncoreanimationtool iOS 10 Issue
Peripheral and Central at the Same Time on iOS
Detect Moment When Newline Starts in Uitextview
iPad - Parsing an Extremely Huge JSON - File (Between 50 and 100 Mb)
Get Tapped Word from Uitextview in Swift
How to Take Screenshot of Portion of Uiview
Autolayout Aspect Ratio for Uiimageview/Uiview
Uisearchdisplaycontroller - How to Preload Searchresulttableview
Calayer - Cabasicanimation Not Scaling Around Center/Anchorpoint