XCode:编译 XIB 时 Interface Builder 崩溃

发布于 2025-01-01 12:45:13 字数 1802 浏览 6 评论 0原文

当我使用命令行工具xcodebuild(XCode 4.2.1 - iOS SDK 5.0)编译我的应用程序时,ibtoold(界面生成器)随机崩溃。当我重新运行构建时,一切正常。

发生以下错误:

ibtoold[88134:107] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:499
 Details:  Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: NSInvalidReceivePortException
Exception reason: connection went invalid while waiting for a reply because a mach port died
Exception backtrace: 
(null)
Exception info:(null)
Object:   <IBAssertionShim: 0x40047fac0>
Method:   -reportMarshallingFailure:
Thread:   <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
   0  0x00000001068f42d4 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
   1  0x00000001068f41a4 _DVTAssertionFailureHandler (in DVTFoundation)
   2  0x00000001094f1e20 (in IDEInterfaceBuilderCocoaTouchIntegration)
   3  0x0000000109572081 (in IDEInterfaceBuilderCocoaTouchIntegration)
   4  0x00000001095720d4 (in IDEInterfaceBuilderCocoaTouchIntegration)
   5  0x0000000106087d25 (in ibtoold)
   6  0x0000000106085413 (in ibtoold)
   7  0x0000000106085120 (in ibtoold)
   8  0x000000010608502c (in ibtoold)
   9  0x000000010608ed56 (in ibtoold)
  10  0x0000000106084baa (in ibtoold)
  11  0x0000000106085b8f (in ibtoold)
  12  0x0000000106083644 (in ibtoold)
 Command /Developer/usr/bin/ibtool failed with exit code 255

知道如何解决这个问题吗?

When i compile my app with the command line tool xcodebuild (XCode 4.2.1 - iOS SDK 5.0) randomly the ibtoold (Interface Builder) crashes. When i rerun the build everything works fine.

The following error happens:

ibtoold[88134:107] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:499
 Details:  Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: NSInvalidReceivePortException
Exception reason: connection went invalid while waiting for a reply because a mach port died
Exception backtrace: 
(null)
Exception info:(null)
Object:   <IBAssertionShim: 0x40047fac0>
Method:   -reportMarshallingFailure:
Thread:   <NSThread: 0x40010a220>{name = (null), num = 1}
Hints: None
Backtrace:
   0  0x00000001068f42d4 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in DVTFoundation)
   1  0x00000001068f41a4 _DVTAssertionFailureHandler (in DVTFoundation)
   2  0x00000001094f1e20 (in IDEInterfaceBuilderCocoaTouchIntegration)
   3  0x0000000109572081 (in IDEInterfaceBuilderCocoaTouchIntegration)
   4  0x00000001095720d4 (in IDEInterfaceBuilderCocoaTouchIntegration)
   5  0x0000000106087d25 (in ibtoold)
   6  0x0000000106085413 (in ibtoold)
   7  0x0000000106085120 (in ibtoold)
   8  0x000000010608502c (in ibtoold)
   9  0x000000010608ed56 (in ibtoold)
  10  0x0000000106084baa (in ibtoold)
  11  0x0000000106085b8f (in ibtoold)
  12  0x0000000106083644 (in ibtoold)
 Command /Developer/usr/bin/ibtool failed with exit code 255

Any idea how to solve this problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

刘备忘录 2025-01-08 12:45:13

这似乎是 Xcode 4.2.* 的一个bug

尝试更新到 4.3 - 它对我有用。

This one is seemingly a bug with Xcode 4.2.*.

Try updating to 4.3 - it works for me.

伪心 2025-01-08 12:45:13

对于我正在从事的一个项目,这个问题可以可靠地重现。在目标的“复制捆绑资源”构建阶段更改 xib 文件的顺序对我有用。

This issue was reliably reproducible for one project I was working on. Changing the order of the xib files in the target's "Copy Bundle Resources" build phase worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文