I get this error when I try to save a file in Xcode 4: "The document cannot be saved. You do not have permission. To view or change permissions, select an item in Finder and choose File> Get Info.
Naturally, saving a file in TextMate is wonderful. Permissions: -rw-rr -
Nothing changed when he last worked. The files are not locked, I tried rebooting, the disk space is in order, the files are on the local disk, the error was launched. Any ideas?
Thanks.
Update: also tried to copy files or rename them. Directories are not locked. By the way, when I edited the project configuration in Xcode, this saves excellent, I just met the problem of saving .m / .h files. I assume copying the actual text in the files will work, but I'm trying to find a slightly less hardcore solution (a bash script will not be a problem, but there may be other problems). This is not the easiest project (~ 70 files, edited config).
Update 2: a possible duplicate found doesn’t really solve the problem Can't unlock the file for editing in Xcode 4?
Update 3: The commit was checked earlier, and when you open Xcode it says that the project is locked. You also checked the same message and the error will not appear again (all files other than DS_Store are tracked). What.
Update 4: I created a new user and installed chmod -R 777 in the project directory. Editing now works great. However, I cannot get it to work under my main account (I have all my settings here.)
source share