Xcode 无法保存文件
我在 Mac OS X 10.6.8 上使用 Xcode 4 和 Cocos2D。
有一天,我在尝试运行我的项目时突然收到一条错误消息:
无法保存文档“MainMenuScene.m”。
我尝试了以下操作,但没有一个起作用:
- 替换文件
- 创建一个新文件并重命名它(我无法重命名它。我被告知我没有权限)
- 创建一个全新的项目并读取文件/副本将代码粘贴到
- 打开磁盘实用程序并运行修复风险权限(再次运行一次,但随后恢复)。
有时我会遇到机会,文件确实保存了,但又恢复为不再保存。
有人对我能做些什么来解决这个问题有任何想法吗?
I am on Mac OS X 10.6.8 using Xcode 4 with Cocos2D.
The other day, I got an error message out of the blue when trying to run my project:
The document "MainMenuScene.m" could not be saved.
I tried the following, none of which has worked:
- replacing the file
- creating a new one and renaming it (which I could not rename it. I was told I didn't have permission)
- creating a whole new project and reading the files/copy pasting the code in
- opening Disk Utilities and running Repair Risk Permissions (which works again once, but then reverts back).
I sometimes get the off chance and the file does save, but reverts back to not saving again.
Anyone have any ideas on what I can do to fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在外部 SSD 上的一个项目中遇到了这个问题。断开 SSD 并重新连接为我修复了它。
简而言之:
您是否尝试过将其关闭并再次打开?
I had this issue with a project on an external ssd. Disconnecting the ssd and reconnecting fixed it for me.
In short:
Have you tried turning it off and on again?
请参阅评论中的完整对话,但这最终得到了解决。为了清晰和结束,将建议/要求的内容移至此处。
这是完整的错误吗?另外,你是把它保存在 USB 还是 HD 上?
您是计算机等的管理员吗?您是否尝试过完全移动该项目,或者从其他地方复制并尝试对其进行处理?根据目前提供的信息,我想不出有什么会导致此类问题。自从您上次能够顺利编辑和保存以来发生了什么变化?
很高兴我们弄清楚了!
-卡罗利
See the full conversation in the comments, but this ended up being solved. Moving what was suggested/asked here for clarity and closure.
Is that the full error? Also, are you saving it on a USB or your HD?
Are you an admin on your computer, etc? Have you tried to move the project completely, or copy and try to work on it from somewhere else? With the currently given information I cant think of anything that would cause that kind of problem. What has changed since you were last able to edit and save without issues?
Glad we got it figured out!
-Karoly
您是否尝试过仅移动文件?这可能会做到。
Have you tried just moving the file? That'll probably do it.