今天遇到这个问题,程序崩溃了……日志如下:

-[NSNull intValue]: unrecognized selector sent to instance 0x375c9860
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull intValue]: unrecognized selector sent to instance 0x375c9860'
*** First throw call stack:
(0x287910d7 0x36c23c77 0x2879659d 0x28794479 0x286c3708 0x17661 0x7d4fd 0x7f419b 0x7f4187 0x7f7e9d 0x28756669 0x28754d89 0x286a06d1 0x286a04e3 0x300651a9 0x2be52445 0xca0c5 0x371f1aaf)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

而 crash 的时候线程停在了这里:

右侧代码出现了 "Thread 1: signal SIGABRT",如图所示:

出现“unrecognized selector sent to instance”问题原因之一及解决方法 该文介绍了一种方法,不过还是没解决我的问题。

目前寻找在路上……

———————————————这是分割线—————————————————————

今天测试,报的错还是那样,但又出现了新的错误内容,如下:

[NSNull intValue]: unrecognized selector sent to instance 0x1095444c0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull intValue]: unrecognized selector sent to instance 0x1095444c0'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109298c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108b46bb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001092a00ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001091f613c ___forwarding___ + 988
4 CoreFoundation 0x00000001091f5cd8 _CF_forwarding_prep_0 + 120
5 NetloanRoad 0x0000000105e4322e __32-[goingOnViewController request]_block_invoke_2 + 3310
6 NetloanRoad 0x0000000105eb8278 __64-[AFHTTPRequestOperation setCompletionBlockWithSuccess:failure:]_block_invoke46 + 40
7 libdispatch.dylib 0x000000010b299186 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x000000010b2b8614 _dispatch_client_callout + 8
9 libdispatch.dylib 0x000000010b2a0a1c _dispatch_main_queue_callback_4CF + 1664
10 CoreFoundation 0x00000001092001f9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11 CoreFoundation 0x00000001091c1dcb __CFRunLoopRun + 2043
12 CoreFoundation 0x00000001091c1366 CFRunLoopRunSpecific + 470
13 GraphicsServices 0x000000010b97da3e GSEventRunModal + 161
14 UIKit 0x0000000109db78c0 UIApplicationMain + 1282
15 NetloanRoad 0x0000000105f0dd1f main + 111
16 libdyld.dylib 0x000000010b2ec145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

我只能自己说:编程就是在不断的出现 bug,解决 bug 中成长进步的……

Stack Overflow 上有个链接有参考价值:Only iOS 7 crash [NSNull intValue]: unrecognized selector sent to instance 虽然没解决我的问题。

后来注释掉报错的那段代码,然后问题就这么解决了……测试后发现那段代码是多余的……

[NSNull intValue]: unrecognized selector sent to instance 0x375c9860的更多相关文章

  1. 利用objc的runtime来定位次线程中unrecognized selector sent to instance的问题

    昨天遇到一个仅仅有一行错误信息的问题: -[NSNull objectForKey:]: unrecognized selector sent to instance 0x537e068 因为这个问题 ...

  2. '-[__NSCFString stringFromMD5]: unrecognized selector sent to instance 0x14d89a50'

    类型:ios 问题描述: 导入百度地图 然后在模拟器运行可以,真机测试不行: 报错: '-[__NSCFString stringFromMD5]: unrecognized selector sen ...

  3. unrecognized selector sent to instance

    今天长一见识(特此感谢小星星老湿-坏笑),凡是遇到“unrecognized selector sent to instance *******”的都是******方法没有,比如这种的错误: 可以尝试 ...

  4. IOS 错误 [UIWebView cut:]: unrecognized selector sent to instance

    那在什么场景中会出现这种情况呢? 如果一个包含文字的输入元素有焦点,然后按钮的点击会导致输入失去焦点,然后接下来在输入时双按会重新得到焦点并从弹出bar中选择剪切复制粘贴,就会导致此error. 也就 ...

  5. iOS 程序报错:reason: [NSArrayI addObject:]: unrecognized selector sent to instance

    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI ad ...

  6. -[__NSCFNumber length]: unrecognized selector sent to instance 0xb0000000000000e3

    网络数据解析出现-[__NSCFNumber length]: unrecognized selector sent to instance 0xb0000000000000e3这样的错误,具体 re ...

  7. CBUUID UUIDString unrecognized selector sent to instance 错误

    CBUUID UUIDString unrecognized selector sent to instance 错误 ios7.0,4s 蓝牙出现上述错误! 查看api可知,错误原因,由于CBUUI ...

  8. reason: -[UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance

    reason: -[UIKBBlurredKeyView candidateList]: unrecognized selector sent to instance 发现上线的app一直会有这个cr ...

  9. unrecognized selector sent to instance 0x10b34e810

    一个错误: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSURLEr ...

随机推荐

  1. Hive —— 安装部署

    一.安装Hive 1.1 下载并解压 下载所需版本的Hive,这里我下载版本为cdh5.15.2.下载地址:http://archive.cloudera.com/cdh5/cdh/5/ # 下载后进 ...

  2. Codeforces 1133E - K Balanced Teams - [DP]

    题目链接:https://codeforces.com/contest/1133/problem/C 题意: 给出 $n$ 个数,选取其中若干个数分别组成 $k$ 组,要求每组内最大值与最小值的差值不 ...

  3. c#基础四

    写入一个XML文件 using System; using System.Collections.Generic; using System.Linq; using System.Text; usin ...

  4. python的比较关系运算符和逻辑运算符

    比较运算符 运算符 描述 示例 == 检查两个操作数的值是否相等,如果是则条件变为真. 如a=2,b=2则(a == b) 为 true. != 检查两个操作数的值是否相等,如果值不相等,则条件变为真 ...

  5. 大数据虚拟混算平台Moonbox配置指南

    一.环境准备 已安装Apache Spark 2.2.0(此版本仅支持Apache Spark 2.2.0, 其他Spark 版本后续会兼容) 已安装MySQL并启动,且开启远程访问 各安装节点已经配 ...

  6. 解决thinkphp在开发环境下文件模块找不到的问题

    win10系统下,phpstudy开发环境下小问题描述: 找不到public公共模块. Not Found The requested URL /public/admin/login.html was ...

  7. Django前端HTML通过JS实现表格可编辑,动态添加行,回车完成新建文件夹

    功能描述: 点击“新建文件夹”按钮,在table的末尾增加一行:单击页面的新增行,使单元格td变成可编辑状态:输入内容后,当单元格失去焦点时,保存输入的内容:回车后通过AJAX提交后台完成新建文件夹. ...

  8. 数字IC前后端设计中的时序收敛(二)--Setup违反的修复方法

    本文转自:自己的微信公众号<数字集成电路设计及EDA教程> 里面主要讲解数字IC前端.后端.DFT.低功耗设计以及验证等相关知识,并且讲解了其中用到的各种EDA工具的教程. 考虑到微信公众 ...

  9. 嵊州D1T1 总统先生,一路走好!

    嵊州D1T1 总统先生,一路走好! 在总统先生的所有财产就是 n 杯黑咖啡,咖啡店可以用 m 个空杯子换一杯黑咖啡. 因为总统的特殊身份,心地善良而心生怜悯的咖啡店店长决定先借给总统一杯黑咖啡,只要他 ...

  10. 虚拟机linux下git clone 报SSL connect error错误

    今天在安装azkaban时,用git clone https://github.com/azkaban/azkaban.git,虚拟机报了SSL connect error,翻了很多博客,有的说是gi ...