Xcode 无法保存文件

发布于 2024-11-28 08:56:08 字数 374 浏览 0 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

裸钻 2024-12-05 08:56:08

我在外部 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?

鲜肉鲜肉永远不皱 2024-12-05 08:56:08

请参阅评论中的完整对话,但这最终得到了解决。为了清晰和结束,将建议/要求的内容移至此处。

这是完整的错误吗?另外,你是把它保存在 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

清醇 2024-12-05 08:56:08

您是否尝试过仅移动文件?这可能会做到。

Have you tried just moving the file? That'll probably do it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文