是否以NSException类型的未捕获异常终止?

编程入门 行业动态 更新时间:2024-10-07 22:25:56
本文介绍了是否以NSException类型的未捕获异常终止?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

单击按钮进入新视图时,我的应用程序崩溃.出现:

My application crashes when clicking a button to go to segue into a new view. This comes up:

int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }

"return UIApplicationMain ..."以绿色突出显示,最后带有线程1:信号SIGABRT". 该错误还将其包含在输出中:

"return UIApplicationMain..." is highlighted in green with "Thread 1: Signal SIGABRT" at the end. The error also includes this in the output:

**Terminating app due to uncaught exception *** 'NSUnknownKeyException reason:'[<SlopeViewController 0x8b68c70> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key m.' *** First throw call stack: (0x16b19b8 0x14328b6 0x17407c1 0x10f00ee 0x105c7db 0x105bd33 0x10be069 0x4b579b 0x14447d2 0x16acf5a 0x4b42f4 0x336e79 0x337491 0x337792 0x337c98 0x345912 0x345c5a 0x5aca79 0x34279a 0x3429a0 0x3429e0 0x73dd2b 0x72e181 0x72e1fc 0x1444874 0x2343b7 0x234343 0x32027e 0x320641 0x31f8fd 0x26fa0d 0x270266 0x245076 0x232efb 0x2ee332b 0x162d48d 0x162d3e5 0x162d11b 0x1657b30 0x165710d 0x1656f3b 0x35f5ff2 0x35f5e19 0x2304eb 0x6fd3 0x1d1370d 0x1) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb

我不知道该怎么办.请帮忙!

I have no idea what to do. Please help!

推荐答案

为防止NSException崩溃,应单击十字(X)删除黄色三角形:

To prevent the NSException crashes, you should click the cross (X) to remove the yellow triangles:

更多推荐

是否以NSException类型的未捕获异常终止?

本文发布于:2023-11-26 19:13:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1634844.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:异常   类型   NSException

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!