move xcode project causes red text (missing files from project)
Here is how to locate the missing (red) files using the Xcode 4 interface:
- Select the file or files in the left hand Project Navigator (the folder icon)
- In the right sidebar click on "File Inspector" which is the leftmost icon resembling a page
- In the "Identity and Type" section, there is a grey box labeled "Location".
- Click on the small icon to the lower left that resembles a file browser - this will come up with a file browser to locate the file.
Voila, you are done.
1.) Right click on the red (missing) file.
2.) Select "Show File Inspector"
3.) Look at the right hand side of the screen under "Identity and Type" between "Location" and "Full Path"
4.) Click on the folder icon to the right of the file name.
5.) Navigate to the file's new location in the pop-up window and select the file.
I encountered this issue when copying my project from one mac to another.The solution for me:
assuming your files are grouped (in folder)
from xcode open the group in file inspector
The group will probably be missing the absolute path.
press the little icon nearby to pick the folder to associate the group with.
restart xcode to see the changes.