When I move iphone project directory to a new path. There are some red texts indicate the missing files from the project source codes. How to avoid these?
Xcode 7
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.
Here is how to locate the missing (red) files using the Xcode 4 interface:
Voila, you are done.
This worked on a Pod project.
I also did this below but now sure if you need it
Quit XCode.
rm -rf project.xcworkspace/xcuserdata/*
Restart XCode and reopen project.
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.
This worked on a Pod project. Quit XCode.
rm -rf project.xcworkspace/xcuserdata/*
Restart XCode and reopen project.
you just have to locate the missing file press in file icon in the identity and type you will find the full path just locate your file where do you move it click the file icon