一.四种崩溃类型

  • 程序崩溃: 可能是最常见的,经常发生于内存访问出错,异常,或者其他的程序错误

  • 内存不足: 系统因为没有足够的内存满足程序需求从而杀死程序出现这种日志.它不同于其他日志的是它没有程序各线程的堆栈信息. Rather than be concerned about what part of your code was executing at the time of termination, you should investigate your memory usage patterns and your responses to low memory warnings. Memory usage of each process is reported in terms of number of memory pages, which as of this writing are 4KB each.

  • 强制退出:异常代码 0xdeadfa11. 这出现在用户在程序界面按下关机键知道出现"移动滑块关机",然后长按Home键.用户之所以这么做,很可能因为你的程序无响应,当然也不一定.

  • 响应超时: 异常代码 0x8badf00d

     

    . 出现在程序启动慢,运行慢,响应慢.

     

      

除了内存不足,其他日志都包含终止时各线程的堆栈信息.


二.分析

1.建立一个文件夹,存放你编译到手机上的.app和对应的.dSYM文件.(喜欢放桌面,home目录的跳过)终端输入命令

mdimport "你刚刚建的文件夹目录"

相关文章:

  • 2021-11-28
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-09-08
  • 2021-06-29
  • 2021-05-12
猜你喜欢
  • 2021-06-22
  • 2021-06-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-07-08
  • 2021-10-05
相关资源
相似解决方案