I’m having an issue to which I haven’t been able to find a solution just by searching here or on Google.
I’m building a project which is shared by multiple developers. For some reason I’m the only one with this issue. I checked out the code several times and even re-installed Xcode.
So what happens is that when I build the project the build process hangs forever. A process called “Interface Builder Cocoa Touch Tool” runs and starts accumulating RAM until it reached the Mac’s limit (which is 16 GB). At this point, as soon as I see that I kill the process and the build fails.
On the Console App I see this:
2014-10-02 4:45:16.013 PM Interface Builder Cocoa Touch Tool[875]: BUG in libdispatch client: kevent[EVFILT_VNODE] add: "Bad file descriptor" - 0x9
2014-10-02 4:45:17.956 PM Interface Builder Cocoa Touch Tool[875]: assertion failed: 13F34: libxpc.dylib + 29453 [75E30F22-514B-3A20-B82C-EDA43AF5C35C]: 0x8d
On Xcode I see the build getting stuck on “Compiling 1 of 1 story board files”, or “Compiling 1 of 1 asset catalogs”.
Even if I stop the build, the “Interface Builder Cocoa Touch Tool” process will continue running and accumulating RAM.
I do see two warnings related to the story board:
Base.lproj/MainStoryboard.storyboard Frame for "Scroll View" will be different at run time.
Base.lproj/MainStoryboard.storyboard: warning: Unsupported Configuration: Prototype table cells must have reuse identifiers
And I see two warnings for the assets:
../Images-2.xcassets: A 57x57 app icon is required for iPhone apps targeting releases of iOS prior to 7.0
../Images-2.xcassets: A 57x57@2x app icon is required for iPhone apps targeting releases of iOS prior to 7.0
But I don’t think these are the cause.
Here are Xcode’s and the Mac’s information:
2.5 Ghz, Core i7 with 16 GB of Ram. Os X 10.9.5. Xcode 6.0.1.
Any help is more than welcomed.
Thanks.
I had two Xcode versions installed, 5 & 6. Not sure if this was the cause, but Apple indicated this does happen with people and that the appropriate action is to ensure that the correct version is 'selected'
Not sure this would have fixed the issue or not, but after removing both versions and then installing Xcode 6, things appear to have been resolved.
I too had this issue and think I have found the reason for the hanging; I removed some constraints from the storyboard and I no longer get this freeze during the build phase.
I fixed the problem by changing the Builds For setting in the File Inspector for the storyboard from iOS6 & Later to iOS8 & Later It seems to work on iOS 7.0 & later, but changing it back to any of the iOS6 settings makes the problem recur.
I had the exact same problem: opening the storyboard in xcode results in beach ball with the Interface Builder task consuming all the memory. I got it back working by editing the xml of the storyboard file and setting
in the document node. Of cause this is not a solution to the problem (which seems to be a bug in xcode) because it screws all constraints, but at least I could open and compile the storyboard again.
Apparently, there's a corrupted .xib file. I reverted the file that was getting stuck compiling. I'm researching what's the line that's making it crash.
EDIT
I reproduced the problem in the console: There is a serious bug ongoing here.
This happens for me in Xcode 8.2.1 if I bind the wrong thing in a view-based table view (p.s., I'm using Core Data). I was binding the second-deepest-level
Table View Cell
view’s value to my array controller, when I should have been binding the text field to theTable Cell View
, with a path ofobjectValue.<attributeName>
. The column object should be bound to nothing, and theTable View
Content
should be bound to the array controller viaarrangedObjects
.This, at least, works, and lets Xcode (
ibtool
) compile the storyboard without consuming all available memory and crashing the system.