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?
When you create these files be sure to save in your app directory. Or if you import classes from other project be sure to check the copy option.
Did you move files in to folders directly in your project folder and not in xcode?
I had the same problem, when I changed the permission on the files/folders to everyone read/write they then appeared in Xcode.
I dont know if this is the main reason but when you are importing files to the application, do you mary the "Copy items in to destination group's folder (if needed)" ?
this make sure the file is not only referenced but added to your project folder and ir will move any where you move your project.
It's too simple to do : Close the project that includes the missed files and open the Xcode, go to "Organizer">"Projects" and remove the project from the list there. Open your project from Finder and that's it.
hope this help.