I have an xcode project which crashes xcode every time it’s opened.
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?
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.
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.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
(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/)