I use xcode 3.2.4 on snow leopard. Today when I tried to save a file on my project I get an error message saying: The document \"nameOfFile.m\" could not be saved. I tried reins
Cleaning the project (Product > Clean), then force quitting Xcode (Command + Option + Escape, select Xcode, click Force Quit) solved the issue for me. I'm not sure if the clean was necessary, but that was what I did. Upon re-opening the project, I let Xcode index the project before doing anything, then did a Build, and all is well.
This can happen when you are working with a network hard drive (or are on a cloud) and not connected to the network (connection lost)
1.Right click on that file 2.Go to Show in Finder . 3.Click on get info . 4.Goto Sharing & Permission
Everyone,username,Fetching & selection ----You can choose appropriate read write option.