本文介绍了由于权限错误,无法保存Xcode中的任何文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我突然无法保存主目录中任何Xcode项目中的任何文件。不知道是什么造成的。这是我收到的错误:
I suddenly can't save any files in any of my Xcode projects in my home directory. Not sure what caused this. Here's the error I'm receiving:
我不认为Xcode是正确的,因为我是 - 并且对受影响的文件具有读取/写入权限。
I don't think Xcode is correct, since I am the owner of -- and have read+write permissions on -- the affected files.
其他一些有趣的事实:
- 我可以在其他应用程序中编辑这些文件同一个用户,所以问题似乎是特定于Xcode。
- 其他用户可以在他们的主目录中创建和编辑项目而不会出问题。
- 以root身份运行Xcode(通过
sudo /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
)允许我编辑这些文件。 -
chown
,chmod -R 755
等在包含我的项目的目录上没有帮助。 - 磁盘工具>修复权限无效。
- 重新安装Xcode,清除Xcode .plists等无济于事。在Xcode 4.1和4.2上都失败了。
- I can edit these files in other applications as the same user, so the problem seems to be specific to Xcode.
- Other users can create and edit projects in their home directory without issue.
- Running Xcode as root (via
sudo /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
) does allow me to edit these files. chown
,chmod -R 755
, etc. on the directory containing my projects doesn't help.- Disk Utility > Repair Permissions doesn't help.
- Reinstalling Xcode, clearing Xcode .plists, etc. doesn't help. Failing both on Xcode 4.1 and 4.2.
想法?希望我只是遗漏了一些简单的东西。
Thoughts? Hopefully I'm just missing something simple.
推荐答案
看起来我在防火墙配置中阻止了netbiosd。解锁并重新启动计算机后,问题似乎已得到解决。
Looks like I had netbiosd blocked in my firewall configuration. After unblocking it and restarting my computer, the issue seems to be resolved.
这篇关于由于权限错误,无法保存Xcode中的任何文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!