Xcode 项目损坏,在“扫描类"时冻结 [英] Xcode project broken, freezes while 'Scanning Classes'

查看:24
本文介绍了Xcode 项目损坏,在“扫描类"时冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 xcode 项目,每次打开它都会使 xcode 崩溃.

I have an xcode project which crashes xcode every time it's opened.

Xcode 在顶部持续显示Scanning Classes | Processes 0 of 292 files"并最终崩溃,尤其是当我打开 .xib 文件时.这发生在多台计算机上.

Xcode says "Scanning Classes | Processes 0 of 292 files" at the top continuously and eventually crashes, particularly when I open an .xib files. This happens on multiple computers.

有没有人知道是什么导致了这个问题?

Does anyone have idea what could cause this problem?

推荐答案

今天我遇到了类似的问题.Xcode 4.2.1 似乎卡在扫描类"上.它会崩溃,否则,它仍然无法编辑 .xib 文件并将插座连接到对象.

Today I had a similar problem. Xcode 4.2.1 seemed stuck at "Scanning Classes". It would crash, or if not, it would still not be able to edit .xib files and connect outlets to objects.

就我而言,是我的源代码树中带有未终止注释的标头触发了此 Xcode 错误.该标题位于我的源代码树中的文件夹内,但实际上并未包含在我的项目中.(如果是这样,未终止的注释会导致编译警告.)也没有在任何地方 #imported 或 #included .与使用的头文件位于同一文件夹中就足以让 Xcode 无法编辑 .xib 文件.

In my case, it was a header with an unterminated comment in my source tree that triggered this Xcode bug. That header was inside a folder in my source tree, but was not actually included in my project. (If it had been, the unterminated comment would have caused a compile warning.) Nor was it #imported or #included anywhere. Just existing in the same folder as headers that were used was enough to rended Xcode unable to edit .xib files.

无论如何,在解决问题并向 Apple (rdar://10698256) 提交错误的过程中,我创建了一个错误重现演示项目:https://github.com/masonmark/XcodeXibEditBugDemoApp

Anyway in the course of figuring it out and filing a bug with Apple (rdar://10698256), I created a bug reproduction demo project: https://github.com/masonmark/XcodeXibEditBugDemoApp

(我还在我在 Apple 私人开发者论坛上开始的帖子中保留了我所有自己的评论,因为 Apple 的论坛无法在 Google 上搜索.如果您有,这可能比您需要的更多已经阅读了以上内容,但它们位于:http://masonmark.com/more-xcode4-fuckery/)

(I also preserved for posterity all of my own comments in the thread I started on Apple's private developer forum, since Apple's forums are not googleable. It's probably way more information than you need if you have already read the above, but those are at: http://masonmark.com/more-xcode4-fuckery/)

这篇关于Xcode 项目损坏,在“扫描类"时冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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