NSScanner: nil string argument libc++abi.dylib: terminate_handler unexpectedly threw an exception问题
2016-02-03 13:48
288 查看
最近接手一个旧项目,一运行程序总是莫名其妙的奔溃,直接跳转到main函数就不动了,控制台输出错误信息:
NSScanner: nil string argument
NSScanner: nil string argument
libc++abi.dylib: terminate_handler unexpectedly threw an exception
谷歌一搜,有人说这种情况大多是字符串操作异常,但是很难定位到底是在哪里出了问题。也有人说先把集成友盟的代码注掉就可以在控制台看到错误信息了。果断把友盟的代码注掉,结果果然输出了以下错误信息:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
有这么一个错误信息就可以了,直接加上根控制器代码即可。
NSScanner: nil string argument
NSScanner: nil string argument
libc++abi.dylib: terminate_handler unexpectedly threw an exception
谷歌一搜,有人说这种情况大多是字符串操作异常,但是很难定位到底是在哪里出了问题。也有人说先把集成友盟的代码注掉就可以在控制台看到错误信息了。果断把友盟的代码注掉,结果果然输出了以下错误信息:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'
有这么一个错误信息就可以了,直接加上根控制器代码即可。
相关文章推荐
- C语言之基本算法35—数组上三角之积 主对角之积 副对角之积
- Effective C++ 05:了解C++默默编写并调用哪些函数
- [C++]Hanoi
- C++中智能指针的设计和使用
- 【转】C++11 标准新特性:Defaulted 和 Deleted 函数
- C++如何拒绝编译器自动生成的函数
- c++ for_each 用法
- 第二次作业----自学c++的选择与计划
- C++学习之多态篇(纯虚函数和虚函数的区别)
- C语言字符串操作总结大全(超详细)
- C++学习之多态篇(纯虚函数和接口类)
- C++实现大数据乘法
- C++中vector的用法实例解析
- C++ string 字符串详解
- C++ 总结
- Tencent-电话面试C语言问题汇总
- 《Effective C++》学习笔记(一)
- C语言中 ln(以自然对数e为底) lg(以十为底) 以及logab(以a为底,b为真数)的相关知识
- C++ development cross platforms
- C++学习札记一