X code ++ 4.5分镜崩溃 [英] Xcode 4.5 storyboard crashing
问题描述
很多时候,当我尝试在故事板编辑UILabels,X code崩溃。任何想法可能会导致什么呢?它看起来像它的东西做的自动布局制约因素之一。这里的错误报告:
进程:X code [43938]
路径:/Applications/X$c$c.app/Contents/MacOS/X$c$c
标识符:com.apple.dt.X code
版本:4.5(1839年)
生成信息:IDEApplication-18390000亿〜3
应用项目编号:497799835
外部应用程序ID:10747437
code类型:X86-64(母语)
父进程:launchd的[43283]日期/时间:2012-10-01 09:43:36.443 -0400
操作系统版本:Mac OS X的10.7.4(11E53)
报告版本:9
睡眠/唤醒UUID:8C7C93A7-0BEF-42C6-944C-488D8C7896DD时间间隔自上次报告:152594秒
崩溃自上次报告:6
每应用的时间间隔自上次报告:135715秒
每个应用程序崩溃自上次报告:5
匿名UUID:E745D8FE-362B-4FD2-8594-7EC5C26767B2坠毁主题:0调度队列:com.apple.main线程异常类型:EXC_CRASH(SIGABRT)
异常codeS:0x0000000000000000,0x0000000000000000应用程序的具体信息:
ProductBuildVersion:4G182
断言失败的/SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1926/IBPlugin/Utilities/IBObjectMarshalling.m:651
详细信息:无法启动决定了IBNSLayoutConstraint,IBUILabel,IBUITabBarItem,IBUITableView,IBUIView和IBUIViewController帧。Interface Builder中遇到了与iPhone模拟器通信错误。如果您选择文件针对此问题的崩溃报告或雷达,请检查Console.app为Interface Builder中可可触摸工具崩溃报告,包括他们在您的崩溃报告的内容。异常名:IBAssertionFailure
异常原因:断言失败:realConstraint
原因:如果发现再presented约束&LT真正的限制; NSLayoutConstraint:0x86a8c30 H:[UIView的:0x868a0f0(71)] GT;
文件: /SourceCache/IBAutolayoutFoundationIOS/IBAutolayoutFoundation-1818/Framework/Classes/Arbitration/IBAutolayoutEngine.m:223
方法:__76- [IBAutolayoutEngine realConstraintsFromCollectionOfRe presentedConstraints:] _ block_invoke_0
例外回溯:
0的CoreFoundation 0x022a4012 __exception preprocess
1. libobjc.A.dylib 0x01703e7e objc_exception_throw
2.的CoreFoundation 0x0232cfb1 - [NSException提高]
3. ??? 0x0000beae [IBCocoaTouchTool startAutolayoutFrameDecisionSessionWithRequest:文件:]
4. ??? 0x000342a5 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:结果:]
5. ??? 0x00033fa9 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:结果:]
6. ??? 0x00033c47 [IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:]
7. libdispatch.dylib 0x04c3d731 _dispatch_barrier_sync_f_slow_invoke
8. libdispatch.dylib 0x04c4c014 _dispatch_client_callout
9. libdispatch.dylib 0x04c3c7d5 _dispatch_main_queue_callback_4CF
10的CoreFoundation 0x0224aaf5 __CFRunLoopRun
11的CoreFoundation 0x02249f44 CFRunLoopRunSpecific
12的CoreFoundation 0x02249e1b CFRunLoopRunInMode
13.基金会0x01308c7c - [NSRunLoop(NSRunLoop)runMode:beforeDate:]
14. ??? 0x0000cf06 [IBCocoaTouchTool startServingReceiveChannel:]
15. ??? 0x0000d09f [IBCocoaTouchTool startServingWithSocket:]
16. ??? 0x0000e1b7 [IBCocoaTouchTool .cxx_destruct]
17. ??? 0x00002365?
异常信息:{
}
我有同样的问题......在与圆角的矩形按钮崩溃故事板工作时。有时候,有一个或两个按钮,有时候我可以添加十个按钮,然后崩溃。
编辑:
一些实验后,我有选中使用自动布局,在故事板的文件检查器,它的工作原理。
也许你会试试看。
Very often when I try to edit UILabels in storyboard, Xcode is crashing. Any ideas what could be causing this? It looks like it has something to do with one of the autolayout constraints. Here's the error report:
Process: Xcode [43938]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.5 (1839)
Build Info: IDEApplication-1839000000000000~3
App Item ID: 497799835
App External ID: 10747437
Code Type: X86-64 (Native)
Parent Process: launchd [43283]
Date/Time: 2012-10-01 09:43:36.443 -0400
OS Version: Mac OS X 10.7.4 (11E53)
Report Version: 9
Sleep/Wake UUID: 8C7C93A7-0BEF-42C6-944C-488D8C7896DD
Interval Since Last Report: 152594 sec
Crashes Since Last Report: 6
Per-App Interval Since Last Report: 135715 sec
Per-App Crashes Since Last Report: 5
Anonymous UUID: E745D8FE-362B-4FD2-8594-7EC5C26767B2
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G182
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1926/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details: Failed to start deciding frames for IBNSLayoutConstraint, IBUILabel, IBUITabBarItem, IBUITableView, IBUIView, and IBUIViewController.
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: IBAssertionFailure
Exception reason: ASSERTION FAILURE: realConstraint
Reason: Should have found real constraint for represented constraint <NSLayoutConstraint:0x86a8c30 H:[UIView:0x868a0f0(71)]>
File: /SourceCache/IBAutolayoutFoundationIOS/IBAutolayoutFoundation-1818/Framework/Classes/Arbitration/IBAutolayoutEngine.m:223
Method: __76-[IBAutolayoutEngine realConstraintsFromCollectionOfRepresentedConstraints:]_block_invoke_0
Exception backtrace:
0. CoreFoundation 0x022a4012 __exceptionPreprocess
1. libobjc.A.dylib 0x01703e7e objc_exception_throw
2. CoreFoundation 0x0232cfb1 -[NSException raise]
3. ??? 0x0000beae [IBCocoaTouchTool startAutolayoutFrameDecisionSessionWithRequest:document:]
4. ??? 0x000342a5 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:result:]
5. ??? 0x00033fa9 [IBMessageReceiveChannel deliverMessage:toTarget:withArguments:result:]
6. ??? 0x00033c47 [IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:]
7. libdispatch.dylib 0x04c3d731 _dispatch_barrier_sync_f_slow_invoke
8. libdispatch.dylib 0x04c4c014 _dispatch_client_callout
9. libdispatch.dylib 0x04c3c7d5 _dispatch_main_queue_callback_4CF
10. CoreFoundation 0x0224aaf5 __CFRunLoopRun
11. CoreFoundation 0x02249f44 CFRunLoopRunSpecific
12. CoreFoundation 0x02249e1b CFRunLoopRunInMode
13. Foundation 0x01308c7c -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
14. ??? 0x0000cf06 [IBCocoaTouchTool startServingReceiveChannel:]
15. ??? 0x0000d09f [IBCocoaTouchTool startServingWithSocket:]
16. ??? 0x0000e1b7 [IBCocoaTouchTool .cxx_destruct]
17. ??? 0x00002365 ???
Exception info:{
}
I have the same problem… when working in a storyboard with "Rounded Rect Buttons" it crashes. Sometimes with one or two buttons, sometimes I can add ten buttons and then it crashes.
Edit: After some experiments I have unchecked "Use Autolayout" in the "File Inspector" of the Storyboard and it works. Maybe you'll give it a try.
这篇关于X code ++ 4.5分镜崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!