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

-[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. Xmanager 5远程连接CentOS7图形化界面

    1.安装Xmanager 5下载链接:https://pan.baidu.com/s/1JwBk3UB4ErIDheivKv4-NA提取码:cw04 双击xmgr5_wm.exe进行安装 点击‘下一步 ...

  2. C++ luogu1352没有上司的舞会 from_树形DP

    luogu1352没有上司的舞会 分析(树形DP模板题): 没学树形DP的,看一下. 把该题抽象到一颗树中,设i的下属就是他的儿子,则有两种情况: 如果i参加,他的儿子就不能参加. 如果i不参加,他的 ...

  3. java打印1000内的质数并用表格输出

    <table width='500' border='1'><% int c=1; for(int i=2;i<=1000;i++){ int n=0; for(int j=2 ...

  4. 使用java的MultipartFile实现layui官网文件上传实现全部示例,java文件上传

    layui(谐音:类UI) 是一款采用自身模块规范编写的前端 UI 框架,遵循原生 HTML/CSS/JS 的书写与组织形式,门槛极低,拿来即用. layui文件上传示例地址:https://www. ...

  5. windows快速创建文本文档的几个方法快捷键和

    1. 在平常使用电脑中要经常用到在左面创建文本文档txt最笨重的方法就是右键但是这样非常的慢,有没有什么快捷键呢 2. 快捷键 快捷键就是Win+R ,键入notepad 然后回车就可以编辑了 是不是 ...

  6. Java项目案例之---常用工具类练习

    常用工具类练习 1. 请根据控制台输入的特定日期格式拆分日期,如:请输入一个日期(格式如:**月**日****年),经过处理得到:****年**月**日 import java.util.Scanne ...

  7. 把 python 程序打包成 egg 或者 whl 安装包

    原文出处:http://www.worldhello.net/2010/12/08/2178.html 本文略有改动 1.1 安装setuptools 首先要安装setuptools工具.Debian ...

  8. NOIP2015斗地主题解 7.30考试

    问题 B: NOIP2015 斗地主 时间限制: 3 Sec  内存限制: 1024 MB 题目描述 牛牛最近迷上了一种叫斗地主的扑克游戏.斗地主是一种使用黑桃.红心.梅花.方片的A到K加上大小王的共 ...

  9. linux_硬链接和软链接区别

    硬链接有点类似于复制的概念.    ln 源文件 目的文件    ln不加-s,则默认是硬链接.例如,ln script script-hard,ls命令显示,script*显示硬链接有两个.我任意删 ...

  10. I/O:Reader

    FileReader: /* 用来读取字符文件的便捷类.此类的构造方法假定默认字符编码和默认字节缓冲区大 小都是适当的.要自己指定这些值,可以先在 FileInputStream 上构造一个 Inpu ...