Interface Builder XIB编译器错误 [英] Interface Builder XIB Compiler error
问题描述
在将两个UISwipeGestureRecognizers连接到XIB文件中的项目中的单个视图时,我收到此错误消息(虽然不是在新项目中,但很奇怪)。谁知道这个错误意味着什么?这是编译错误,而不是运行时错误。我正在使用Xcode 4.4(实际上这个错误不会发生在Xcode 4.5上)。这是来自内部界面构建器的错误。
I get this error message when connecting two UISwipeGestureRecognizers to a single view in my project inside of a XIB file (though not in a new project, curiously). Anybody know what this error means? It is a compile error, not a runtime error. I'm using Xcode 4.4 (this error doesn't happen on Xcode 4.5 actually). This is an error from inside interface builder.
断言失败 - [IBCocoaTouchToolObjectPackage connectionsByProcessingConnections:],/ SourceCache / IBSimulatorComponents / IBSimulatorComponents-223 / IBCocoaTouchTool / IBCocoaTouchToolObjectPackage.m:1132012-08-03 16:52:01.428 Interface Builder Cocoa Touch Tool [5646:11903]产生nib的异常:聚合出口连接的不匹配的addsContentToExistingCollection值&其中一个片段。
Assertion failure in -[IBCocoaTouchToolObjectPackage connectionsByProcessingConnections:], /SourceCache/IBSimulatorComponents/IBSimulatorComponents-223/IBCocoaTouchTool/IBCocoaTouchToolObjectPackage.m:1132012-08-03 16:52:01.428 Interface Builder Cocoa Touch Tool[5646:11903] Exception producing nib: Mismatched addsContentToExistingCollection value for the coalescing outlet connection & one of its fragments.
推荐答案
我怀疑这是因为Interface Builder允许你的网点获得进入一个不一致的状态。这是Interface Builder中的一个逻辑错误,它在 ibtool
编译器中表现为运行时异常。我能够通过断开我最近创建的插座和插座集来解决它,然后重新布线。
I suspect this occurs because Interface Builder allows your outlets to get into an inconsistent state. It's a logic bug in Interface Builder that manifests as a run-time exception in the ibtool
compiler. I was able to work around it by disconnecting the outlets and outlet collections I had recently created, and then rewiring them.
这篇关于Interface Builder XIB编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!