重命名后项目崩溃 [英] Project Crashes After Rename

查看:61
本文介绍了重命名后项目崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在导航器视图中的 XCode 中更改我的 iOS 项目的名称:

If I change the name of my iOS project in XCode either in in the navigator view:

Project 的等价物是什么->在 Xcode 4 中重命名

或者在检查器中,像这样:

Or in the Inspector, like this:

http://woolybeastsoftware.com/woolyblog/2012/01/22/xcode-4-renaming-projects/

...XCode 意外退出?有人遇到过这个问题吗?

...XCode quits unexpectedly? Anybody run into this problem?

为什么会发生这种情况,如何避免?

Why does this happen and how can you avoid it?

推荐答案

如果您的 Xcode 项目损坏,您可以执行以下操作,

If your Xcode project is corrupted, you can do the following,

  • 在 finder 中,右键单击您的 .xcodeproject 文件,然后单击显示包内容.
  • 然后右键单击您的 project.pbxproj 并在一些文本中打开它编辑器.
  • 然后搜索您之前使用的项目名称并手动重命名改为新名称.
  • 更改后保存,然后重新打开项目.

原因是因为您存储与项目相关的所有详细信息的 project.pbxproj 文件已损坏,导致 Xcode 无法解析它并因此崩溃.理想情况下,重命名时不应发生这种情况,但在您的情况下,它以某种方式损坏了.——

The reason is because your project.pbxproj file which stores all details related to the project got corrupted which causes the Xcode to not able to parse it and hence it crashes. Ideally this shouldn't happen while renaming, but in your case somehow it got corrupted. –

这篇关于重命名后项目崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆