Xcode 5 在创建新项目时崩溃 [英] Xcode 5 crashes on new project creation

查看:25
本文介绍了Xcode 5 在创建新项目时崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 Xcode 5 中创建新项目.这适用于任何类型的项目,当我点击 Create 按钮时,IDE 崩溃而没有任何错误消息填写项目信息后新建项目.我什至不知道从哪里开始寻找解决这个问题.

I can't create new projects in Xcode 5. This is for any type of project, and the IDE crashes without any error messages the moment I hit Create button for the new project after filling up the project information. I don't even know where to start looking for to fix this.

我想我上周创建了一个新项目,直到今天都没有问题.一个线索可能是,这最后一次我选中了在...上创建 git 存储库"的框,就在 Create 按钮的顶部 在 Xcode 中创建新项目 部分.如果我现在取消选中它并不重要,并且从 Xcode 首选项中,禁用源代码控制也无济于事.

I think I created one new project last week, had no issues up until today. One clue might be, this last time I checked the box saying "Create git repository on...", right on top of the Create button in the Create new project section in Xcode. Doesn't matter if I uncheck that now, and from Xcode preferences, disabling source control doesn't help either.

我删除了首选项文件夹中的 plist 文件,这没有帮助.我删除了 xcode,然后从应用商店重新安装了它,这也没有帮助.

I deleted the plist file in preferences folder, that didn't help. I deleted xcode, and reinstalled it from the app store, that didn't help either.

我可以跳入现有项目,构建它们并成功地在模拟器中运行它们.

I can jump into existing projects, build them and also run them in simulators successfuly.

有人遇到过类似的问题,有什么解决办法吗?

Anyone encountered a similar issue and what could be the fix?

编辑:我能够收到一个项目模板的错误消息,对于空项目,会产生此错误;

EDIT: I was able to get an error message for one of the project templates, for empty projects this error is produced;

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Sending ok: to <NSOpenPanel: 0x7fc1a40730b0> from <NSButton: 0x7fc1a40c27e0>
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/IDEKit/IDEKit-3591/Framework/Classes/Templates/IDETemplateInstantiationContext.m:145
Details:  Assertion failed: [instantiatedItems count] == 1

推荐答案

尝试删除 Xcode 的首选项文件(从公共库和用户库中)并重新启动 Xcode -

Try deleting Xcode's preferences file (from common and user library both) and restart Xcode -

/图书馆/首选项

com.apple.dt.Xcode

com.apple.dt.Xcode

/Users/您的用户名/Library/Preferences(我有以下 3 个与 Xcode 相关的文件)

/Users/YourUsername/Library/Preferences ( I have following 3 files related to Xcode there )

com.apple.dt.Xcode.plist

com.apple.dt.Xcode.plist

com.apple.dt.Xcode.LSSharedFileList.plist

com.apple.dt.Xcode.LSSharedFileList.plist

com.apple.dt.Xcode.plist.BoGEJ0T

com.apple.dt.Xcode.plist.BoGEJ0T

我建议的其他一些故障排除方法是 -

Couple of other troubleshootings that I would suggest are -

  1. 尝试选择其他项目模板(iOS 或 Cocoa/Mac 应用程序等).
  2. 通过这台机器上的另一个用户使用 XCode(如果没有,请创建一个).

这篇关于Xcode 5 在创建新项目时崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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