9

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

发生以下错误:

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

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

4

2 回答 2

0

这似乎是Xcode 4.2.*的一个错误

尝试更新到 4.3 - 它适用于我。

于 2012-04-14T18:08:05.770 回答
0

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

于 2012-09-12T19:26:42.077 回答