Xcode 6:构建挂起和Interface Builder Cocoa Touch Tool开始分配所有RAM [英] Xcode 6: Build hangs and Interface Builder Cocoa Touch Tool starts allocating all RAM
问题描述
我遇到了一个问题,我无法通过在这里或在Google上搜索来找到解决方案。
I’m having an issue to which I haven’t been able to find a solution just by searching here or on Google.
我正在建立一个项目这是由多个开发人员共享的。出于某种原因,我是唯一有这个问题的人。我多次检查了代码,甚至重新安装了Xcode。
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.
所以当我构建项目时,构建过程将永远挂起。一个名为Interface Builder Cocoa Touch Tool的进程运行并开始累积RAM,直到达到Mac的限制(16 GB)。此时,只要我看到我终止进程并且构建失败。
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
在Xcode上我看到构建卡在编译1个故事板文件中的1个,或者编译1个资产目录中的一个。
On Xcode I see the build getting stuck on "Compiling 1 of 1 story board files", or "Compiling 1 of 1 asset catalogs".
即使我停止构建,Interface Builder Cocoa Touch Tool进程也将继续运行并累积RAM。
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
但我不认为这是原因。
这是Xcode的和Mac的信息:
Here are Xcode’s and the Mac’s information:
2.5 Ghz,Core i7和16 GB Ram。
Os X 10.9.5。 Xcode 6.0.1。
2.5 Ghz, Core i7 with 16 GB of Ram. Os X 10.9.5. Xcode 6.0.1.
欢迎任何帮助。
谢谢。
推荐答案
我遇到了完全相同的问题:在xcode中打开故事板导致沙滩球与Interface Builder任务消耗所有内存。我通过编辑故事板文件的xml并设置
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
useAutolayout="NO"
。原因这不是问题的解决方案(这似乎是xcode中的一个错误)因为它会破坏所有约束,但至少我可以再次打开并编译故事板。
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.
这篇关于Xcode 6:构建挂起和Interface Builder Cocoa Touch Tool开始分配所有RAM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!