【发布时间】:2015-01-30 07:49:08
【问题描述】:
当我在界面生成器中复制和粘贴 uitableview 单元格时,它工作正常。但是第二天当我启动 Xcode 时,报告崩溃了,
与 Interface Builder Cocoa Touch Tool 通信时遇到错误。如果您选择为此问题提交崩溃报告或 Radar,请查看 Console.app 以获取“Interface Builder Cocoa Touch Tool”的崩溃报告,并将其内容包含在您的崩溃报告中。
异常名称:IBAssertionFailure 异常原因:ASSERTION FAILURE: containsTableView 原因:添加到布局引擎的任何表格视图单元格都应包含在表格视图中,以便获得正确的指标
我尝试通过以下链接https://stackoverflow.com/a/6247073/1556386empty cache。我也尝试fresh reinstall Xcode 6.1.1,但没有解决问题。
异常详细信息是,
Process: Xcode [3408]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.1.1 (6611)
Build Info: IDEFrameworks-6611000000000000~4
App Item ID: 497799835
App External ID: 810788292
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [3408]
User ID: 501
Date/Time: 2015-01-30 12:26:14.681 +0500
OS Version: Mac OS X 10.10 (14A389)
Report Version: 11
Anonymous UUID: 835265AB-3F12-806B-3EAE-821EB008717D
Time Awake Since Boot: 3800 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A2008a
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilder/IDEInterfaceBuilder-6254/InterfaceBuilderKit/Utilities/IBAbstractMessageChannelInterfaceBuilderToolProxy.m:40
Details: Failed to compute auto layout status IBLayoutConstraint, IBUILabel, IBUITableViewCell, and IBUITableViewCellContentView.
Encountered an error communicating with Interface Builder Cocoa Touch Tool. 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: IBAssertionFailure
Exception reason: ASSERTION FAILURE: containingTableView
Reason: Any table view cell being added to a layout engine should be contained in a table view in order to get the correct metrics
File: /SourceCache/IBSimulatorComponents/IDEInterfaceBuilderCocoaTouch-6247/SimulatorComponents/IBCocoaTouchTool/WidgetIntegration/IBCTTUITableViewCellIntegration.m:227
Method: -[UITableViewCell(IBCocoaTouchToolIntegration) ibEffectiveViewToPlaceInLayoutEngineWindow]
Exception backtrace:
0. CoreFoundation 0x000000010a6baf1d __exceptionPreprocess
1. libobjc.A.dylib 0x00000001093a1bb7 objc_exception_throw
2. CoreFoundation 0x000000010a6bab79 -[NSException raise]
3. ??? 0x0000000106e94e73 [UITableViewCell ibEffectiveViewToPlaceInLayoutEngineWindow]
4. ??? 0x0000000106e9bc88 [UIView ibWindowForUpdatingConstraints:]
5. ??? 0x0000000106e909db [NSObject ibPlaceInWindowPositioningAndSizingIfNeeded:during:]
6. ??? 0x0000000106e9caae [UIView ibPlaceInWindowPositioningAndSizingIfNeeded:during:]
7. ??? 0x0000000106e7b697 [IBCocoaTouchToolArbitrationUnit _ensureRootObjectIsInWindowDuring:]
8. ??? 0x0000000106e7ba60 [IBCocoaTouchToolArbitrationUnit computeStatusFromEngine:]
9. IBAutolayoutFoundation 0x0000000108a4f82b -[IBAutolayoutArbitrationUnit computeStatus]
10. ??? 0x0000000106e797a5 [IBCocoaTouchTool computeAutolayoutStatusForRequest:document:]
11. IBFoundation 0x0000000108bc18ef __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke
12. IBFoundation 0x0000000108bc1686 -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]
13. IBFoundation 0x0000000108bc1350 __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke
14. libdispatch.dylib 0x000000010dcb6af4 _dispatch_client_callout
15. libdispatch.dylib 0x000000010dca3e95 _dispatch_barrier_sync_f_slow_invoke
16. libdispatch.dylib 0x000000010dcb6af4 _dispatch_client_callout
17. libdispatch.dylib 0x000000010dca2265 _dispatch_main_queue_callback_4CF
18. CoreFoundation 0x000000010a622fe9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
19. CoreFoundation 0x000000010a5e5eeb __CFRunLoopRun
20. CoreFoundation 0x000000010a5e5486 CFRunLoopRunSpecific
21. Foundation 0x0000000108f5eb42 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
22. IBFoundation 0x0000000108ba0955 -[IBAbstractPlatformTool startServingReceiveChannel:]
23. IBFoundation 0x0000000108ba0a2f -[IBAbstractPlatformTool startServingSocket:]
24. IBFoundation 0x0000000108ba0cf2 +[IBAbstractPlatformTool main]
25. ??? 0x0000000106eabe90 [IBViewRenderer .cxx_destruct]
26. libdyld.dylib 0x000000010dce7145 start
【问题讨论】:
-
在下面查看我的答案
标签: ios crash interface-builder xcode6 osx-mavericks