Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I resolve a red (moved) file in Xcode 5?

Tags:

xcode

ios

xcode5

In Xcode 4 when you would move a file, you could resolve the new location of the file by clicking a button in the right menu, and selecting the new location through Finder.

In Xcode 5, there is no button in the right menu and I haven't found any way to specify the new location of the file through right clicking the file, or the top menu bar options.

like image 460
user Avatar asked Oct 26 '13 05:10

user


People also ask

Why are files red in Xcode?

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.

How do I copy one project to another in Xcode?

Click the arrow button to the right of the file and select Move or Copy file from the dropdown menu. When you choose Copy this file from the move or copy dropdown, you will then be able to select which project to copy it to. You can make a copy of the file in the existing project or in another project.

Where are Xcode files on Mac?

In Xcode if you click on Window -> Organizer you will se a list of build archives. You can right click on then (if there is any of course) and click on Show in Finder.


2 Answers

  1. Right click the file in Xcode and select "Show File Inspector"
  2. In the file inspector click the little folder icon next to the file path.

enter image description here

This will open a file dialog allowing you to update the file path.

like image 166
Kirby Todd Avatar answered Sep 16 '22 16:09

Kirby Todd


Just delete the old one and add the moved one.

like image 36
Khanh Nguyen Avatar answered Sep 19 '22 16:09

Khanh Nguyen