简体   繁体   English

应用程序在iOS 5.0模拟器中崩溃,但在iOS 6.0中没有崩溃

[英]App Crashes in iOS 5.0 simulator but not in iOS 6.0

I've developed a simple app TabViewController app with two UITableViewController Views initially testing in the iOS 6 simulator and it all works fine as it should. 我已经开发了一个简单的应用程序TabViewController应用程序,该应用程序具有两个最初在iOS 6模拟器中进行测试的UITableViewController Views,并且一切正常。 One view is a list of options and the other is a list you can add/remove items to. 一个视图是选项列表,另一个视图是可以向其中添加/删除项目的列表。

I decided to test in the iOS 5.0 simulator and when I attempt to segue from the UITableViewController to my custom view where I fill in the details for the item to be added the app throws an exception with no errors in the console, just lots of confusing (to me) numbers and letters etc when you select the thread where the exception has been thrown in Debug Nav... (about 5-10 times the amount below) 我决定在iOS 5.0模拟器中进行测试,当我尝试从UITableViewController切换到我的自定义视图时,在该视图中填写要添加的项的详细信息,该应用在控制台中抛出了一个没有错误的异常,只是令人困惑(对我来说)数字和字母等,当您选择在Debug Nav ...中引发了异常的线程时(大约是以下数量的5-10倍)

libobjc.A.dylib`objc_exception_throw:
0xec3cde:  pushl  %ebp
0xec3cdf:  movl   %esp, %ebp
0xec3ce1:  pushl  %ebx
0xec3ce2:  pushl  %edi
0xec3ce3:  pushl  %esi
0xec3ce4:  subl   $2028, %esp
0xec3cea:  calll  0xec3cef                  ; objc_exception_throw + 17
0xec3cef:  popl   %edi
0xec3cf0:  movl   $16, (%esp)
0xec3cf7:  calll  0xed8840                  ; symbol stub for: __cxa_allocate_exception
...

My question is why is this likely to be? 我的问题是为什么会这样? Surely if I was using something that was iOS 6 only it wouldn't let me build? 当然,如果我使用的只是iOS 6,就不会让我构建吗? I've changed all the targets that I could find to be iOS 5.0 rather than iOS 6.0 and am now just confused. 我已经将所有可以找到的目标更改为iOS 5.0,而不是iOS 6.0,现在变得很困惑。

Does anyone have any idea or any pointers for what I need to do or search for? 是否有人对我需要做的事情或搜索有任何想法或指示?

Check that AutoLayout is not enabled in your storyboard. 检查故事板上是否未启用自动版式。

在此处输入图片说明

AutoLayout is iOS6 only. AutoLayout仅适用于iOS6。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM