iOS应用崩溃日志分析 iOS应用崩溃日志揭秘

转自:http://www.raywenderlich.com/zh-hans/30818/ios%E5%BA%94%E7%94%A8%E5%B4%A9%E6%BA%83%E6%97%A5%E5%BF%97%E6%8F%AD%E7%A7%98

这篇文章还可以在这里找到 英语

Learn how to make sense of crash logs!

Learn how to make sense of crash logs!

本文作者是 Soheil Moayedi Azarpour, 他是一名独立iOS开发者。


作为一名应用开发者,你是否有过如下经历?
为确保你的应用正确无误,在将其提交到应用商店之前,你必定进行了大量的测试工作。它在你的设备上也运行得很好,但是,上了应用商店后,还是有用户抱怨会闪退 !
如果你跟我一样是个完美主义者,你肯定想将应用做到尽善尽美。于是你打开代码准备修复闪退的问题……但是,从何处着手呢?
这时iOS崩溃日志派上用场了。在大多数情况下,你能从中了解到关于闪退的详尽、有用的信息。
通过本教程,你将学习到一些常见的崩溃日志案例,以及如何从开发设备和iTunes Connect上获取崩溃日志文件。你还将学习到符号化( symbolication),从日志追踪到代码 。你还将学习调试一个在待定情况下会闪退的应用。
让我们开始动手吧!

什么是崩溃日志,从哪里能得它?

iOS设备上的应用闪退时,操作系统会生成一个崩溃报告,也叫崩溃日志,保存在设备上。
崩溃日志上有很多有用的信息,包括应用是什么情况下闪退的。通常,上面有每个正在执行线程的完整堆栈跟踪信息,所以你能从中了解到闪退发生时各线程都在做什么,并分辨出闪退发生在哪个线程上。
有几种方法可以从设备上获取崩溃日志。
设备与电脑上的iTunes Store同步后,会将崩溃日志保存在电脑上。根据电脑操作系统的不同,崩溃日志将保存在以下位置:
Mac OS X:

  1. ~<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Library<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Logs<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>CrashReporter<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>MobileDevice<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>  

Windows XP:

C:Documents and Settings<USERNAME>Application DataApple ComputerLogsCrashReporterMobileDevice<DEVICE_NAME>

Windows Vista or 7:

C:Users<USERNAME>AppDataRoamingApple ComputerLogsCrashReporterMobileDevice<DEVICE_NAME>

当用户抱怨闪退时,你可以要求他让设备与iTunes同步,并根据操作系统的不同,到上述位置把崩溃日志下载下来,然后通过电子邮件发送给你。
你必需尽量获取用户设备生成的所有崩溃日志。因为崩溃日志越多,就越容易诊断问题所在!
另外,如果你装了Xcode,也能很容易通过Xcode从你的设备上获得崩溃日志。将iOS设备连接到电脑上,然后打开Xcode。从菜单栏上选择 Window  菜单, 然后选择 Organizer (快捷方式是 Shift-CMD-2).
在 Organizer 窗口上, 选中 Devices 标签栏. 在左侧的导航面板上,选中 Device Logs, 如下图所示:
Devices tab in Xcode Organizer
看看上图,左侧有好几个 Device Logs 菜单项. LIBRARY 下面的Device Logs是你所有设备(曾经连接到Xcode的)的日志 。每个设备下面的 Device Logs 是对应设备的日志。
应用提交到App Store后,你也能从 iTunes Connect 获取到用户的崩溃日志. 登录到 iTunes Connect 上, 选择 Manage Your Applications, 点击相应的应用, 点击应用图标下面的 View Details 按钮, 然后点击右栏Links部分的  Crash Reports 。
Crash Reports in iTunes Connect
如果没有崩溃日志,试试点击Refresh 按钮刷新一下。如果你的应用还卖得不多,或者刚上架不久,iTunes Connect账号上也可能还没有任何崩溃日志。
如果iTunes Connect上有崩溃日志,你将看到如下图:
Crash Reports in iTunes Connect
有时,尽管有用户报告闪退,你仍然看不到崩溃报告。这时,最好让用户直接把崩溃报告发送给你。

什么情况下会产生崩溃日志?

两种主要情况会产生崩溃日志:

  1. 应用违反操作系统规则。
  2. 应用中有Bug。

违反iOS规则包括在启动、恢复、挂起、退出时watchdog超时、用户强制退出和低内存终止。让我们详细了解一下吧。
Watchdog 超时机制
从iOS 4.x开始,退出应用时,应用不会立即终止,而是退到后台。
但是,如果你的应用响应不够快,操作系统有可能会终止你的应用,并产生一个崩溃日志。这些事件与下列UIApplicationDelegate方法相对应:

  • application:didFinishLaunchingWithOptions:
  • applicationWillResignActive:
  • applicationDidEnterBackground:
  • applicationWillEnterForeground:
  • applicationDidBecomeActive:
  • applicationWillTerminate:

上面所有这些方法,应用只有有限的时间去完成处理。如果花费时间太长,操作系统将终止应用。

注意: 如果你没有把需要花费时间比较长的操作(如网络访问)放在后台线程上就很容易发生这种情况。关于如果避免这种情况的信息,请参考我们的另外两篇教程: Grand Central Dispatch 和 NSOperations

用户强制退出
iOS 4.x开始支持多任务。如果应用阻塞界面并停止响应, 用户可以通过在主屏幕上双击Home按钮来终止应用。此时,操作应用将生成一个崩溃日志。

注意: 双击Home按钮后,你将看到运行过的所有应用。那些应用不一定是正在运行,也不一定是被挂起。
通常,用户点击Home按钮时,应用将在后台保留约10分钟,然后操作系统自动将其终止。 所以双击Home按钮显示的应用列表只是表明那是一系列过去打开过的应用。删除那些应用的图标不会产生任何崩溃日志。

低内存终止
子类化UIViewController时,你或许已经注意到didReceiveMemoryWarning方法。
在前台运行的应用拥有访问和使用内存的最高优化级。然而,这并不意味着该应用能使用设备的所有可用内存 ——每个应用只能使用一部分可用内存。
当内存使用达到一定程度时,操作系统将发出一个 UIApplicationDidReceiveMemoryWarningNotification 通知。同时,调用 didReceiveMemoryWarning 方法。
此时,为了让应用继续正常运行,操作系统开始终止在后台的其他应用以释放一些内存。所有后台应用被终止后,如果你的应用还需要更多内存,操作系统会将你的应用也终止掉,并产生一个崩溃日志。而在这种情况下被终止的后台应用,不会产生崩溃日志。

注意: 根据 苹果文档, Xcode不会自动添加低内存日志。你必需手动获取日志。 然而,根据我的个人经验,使用 Xcode 4.5.2, 低内存日志也会自动导入,只是”Process”和”Type”属性都被标为Unknown(未知)。
另外,值得一提的是在极短时间内分配一大块内存将给系统内存带来巨大负担。这样,也会产生内存警告的通知。

应用中有Bug
如你所想,大多数闪退都是由于应用中有Bug,因此大多数崩溃日志的产生都是因为应用中的Bug。Bug的种类的有很多。

在本教程的后半部分,你将通过调试一个会产生崩溃日志的含有Bug的应用,学习如何找到问题所在并进行修复!

崩溃日志的实例

让我们看看一个崩溃日志的实例,以使你在处理一些实际问题之前心里有谱。
事不宜迟,见见你的新朋友吧:

  1. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 1: 进程信息</em></span>  
  2. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 30E46451<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>53FD<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4965</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>896A<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>457FC11AD05F  
  3. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  4. Hardware Model<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iPhone4,<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>  
  5. Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         Rage Masters <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4155</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  6. Path<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>var<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>mobile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Applications<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>A5635B22<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>F5EF<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4CEB<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>94B6<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>FE158D885014<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters.app<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters  
  7. Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      Rage Masters  
  8. Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         ??? <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>???<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  9. Code Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       ARM <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Native<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  10. Parent Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  launchd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  11. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 2: 基本信息</em></span>  
  12. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Time<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">17</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">21</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">39</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">06.967</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  13. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iOS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6.0</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>10A403<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  14. Report Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">104</span>  
  15. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 3: 异常</em></span>  
  16. Exception Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  00000020  
  17. Exception Codes<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x000000008badf00d  
  18. Highlighted Thread<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  19. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 4: 线程回溯</em></span>  
  20. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span> name<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  Dispatch queue<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> com.apple.main<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>thread  
  21. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  22. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>   libsystem_kernel.dylib          0x327f2eb4 mach_msg_trap <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  
  23. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>   libsystem_kernel.dylib          0x327f3048 mach_msg <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">36</span>  
  24. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>   CoreFoundation                  0x36bd4040 __CFRunLoopServiceMachPort <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">124</span>  
  25. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>   CoreFoundation                  0x36bd2d9e __CFRunLoopRun <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">878</span>  
  26. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>   CoreFoundation                  0x36b45eb8 CFRunLoopRunSpecific <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">352</span>  
  27. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5</span>   CoreFoundation                  0x36b45d44 CFRunLoopRunInMode <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">100</span>  
  28. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>   CFNetwork                       0x32ac343e CFURLConnectionSendSynchronousRequest <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">330</span>  
  29. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7</span>   Foundation                      0x346e69ba <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURLConnection</span></a> sendSynchronousRequest<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>returningResponse<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>error<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">242</span>  
  30. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>   Rage Masters                    0x000d4046 0xd2000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8262</span>  
  31. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  32. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>   libsystem_kernel.dylib          0x32803d98 __workq_kernreturn <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>  
  33. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>   libsystem_c.dylib               0x3a987cf6 _pthread_workq_return <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14</span>  
  34. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>   libsystem_c.dylib               0x3a987a12 _pthread_wqthread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">362</span>  
  35. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>   libsystem_c.dylib               0x3a9878a0 start_wqthread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>  
  36. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 5: 线程状态</em></span>  
  37. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span> crashed with ARM Thread State <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">32</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>bit<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  38.     r0<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000000    r1<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000000      r2<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000001      r3<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x39529fc8  
  39.     r4<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0xffffffff    r5<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d301      r6<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d300      r7<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d9d0  
  40.     r8<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d330    r9<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x3adbf8a8     r10<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d308     r11<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000032  
  41.     ip<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000025    sp<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x2fd7d2ec      lr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x001bdb25      pc<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x30301838  
  42.   cpsr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000010  
  43. <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// 6: 二进制映像</em></span>  
  44. Binary Images<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  45. 0xd2000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>    0xd7fff <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span>Rage Masters armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>var<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>mobile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Applications<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>A5635B22<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>F5EF<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4CEB<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>94B6<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>FE158D885014<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters.app<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters  
  46. 0x2fe41000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x2fe61fff  dyld armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>usr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>lib<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>dyld  
  47. 0x327f2000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x32808fff  libsystem_kernel.dylib armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>usr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>lib<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span><a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/system.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">system</span></a><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>libsystem_kernel.dylib  
  48. 0x328a8000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x328bdfff  libresolv.9.dylib armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>usr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>lib<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>libresolv.9.dylib  
  49. 0x32a70000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x32b35fff  CFNetwork armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>System<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Library<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Frameworks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>CFNetwork.framework<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>CFNetwork  
  50. 0x32b7a000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x32cc3fff  libicucore.A.dylib armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>usr<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>lib<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>libicucore.A.dylib  
  51. 0x32cc4000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x32cc5fff  CoreSurface armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>System<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Library<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>PrivateFrameworks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>CoreSurface.framework<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>CoreSurface  
  52. 0x32f65000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> 0x32f8afff  OpenCL armv7   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>System<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Library<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>PrivateFrameworks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>OpenCL.framework<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>OpenCL  

这报告看起来像天书。:) 我们分几部分来解读吧:
(1) 进程信息
第一部分是闪退进程的相关信息。

  • Incident Identifier是崩溃报告的唯一标识符。
  • CrashReporter Key 是与设备标识相对应的唯一键值。虽然它不是真正的设备标识符,但也是一个非常有用的情报:如果你看到100个崩溃日志的CrashReporter Key值都是相同的,或者只有少数几个不同的CrashReport值,说明这不是一个普遍的问题,只发生在一个或少数几个设备上。
  • Hardware Model 标识设备类型。 如果很多崩溃日志都是来自相同的设备类型,说明应用只在某特定类型的设备上有问题。上面的日志里,崩溃日志产生的设备是iPhone 4s。
  • Process 是应用名称。中括号里面的数字是闪退时应用的进程ID。
  • 接下来几行不言自明,无需赘述。

(2) 基本信息
这部分给出了一些基本信息,包括闪退发生的日期和时间,设备的iOS版本。如果有很多崩溃日志都来自iOS 6.0,说明问题只发生在iOS 6.0上。
(3) 异常
在这部分,你可以看到闪退发生时抛出的异常类型。还能看到异常编码和抛出异常的线程。根据崩溃报告类型的不同,在这部分你还能看到一些另外的信息。
(4) 线程回溯
这部分提供应用中所有线程的回溯日志。 回溯是闪退发生时所有活动帧清单。它包含闪退发生时调用函数的清单。看下面这行日志:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>    XYZLib    0x34648e88    0x83000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8740</span>  

它包括四列:

  1. 帧编号—— 此处是2。
  2. 二进制库的名称 ——此处是 XYZLib.
  3. 调用方法的地址 ——此处是 0x34648e88.
  4. 第四列分为两个子列,一个基本地址和一个偏移量。此处是0×83000 + 8740, 第一个数字指向文件,第二个数字指向文件中的代码行。

(5) 线程状态
这部分是闪退时寄存器中的值。一般不需要这部分的信息,因为回溯部分的信息已经足够让你找出问题所在。
(6) 二进制映像
这部分列出了闪退时已经加载的二进制文件。

符号化Symbolication

第一次看到崩溃日志上的回溯时,你或许会觉得它没什么意义。我们习惯使用方法名和行数,而非像这样的神秘位置:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>    Rage Masters    0x0001625c    0x2a000 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3003</span>  

将这些十六进制地址转化成方法名称和行数的过程称之为符号化。
从Xcode的Organizer窗口获取崩溃日志后过几秒钟,崩溃日志将被自动符号化。上面那行被符号化后的版本如下 :

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>    Rage Masters    0x0001625c    <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMAppDelegate application<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>didFinishLaunchingWithOptions<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>RMAppDelegate.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">35</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  

Xcode符号化崩溃日志时,需要访问与App Store上对应的应用二进制文件以及生成二进制文件时产生的 .dSYM 文件。必需完全匹配才行。否则,日志将无法被完全符号化。
所以,保留每个分发给用户的编译版本非常重要。提交应用前进行归档时,Xcode将保存应用的二进制文件。可以在Xcode Organizer的Archives标签栏下找到所有已归档的应用文件。
在发现崩溃日志时,如果有相匹配的.dSYM文件和应用二进制文件,Xcode会自动对崩溃日志进行符号化。如果你换到别的电脑或创建新的账户,务必将所有二进制文件移动到正确的位置,使Xcode能找到它们。

注意: 你必需同时保留应用二进制文件和.dSYM文件才能将崩溃日志完整符号化。每次提交到iTunes Connect的构建都必需归档。
.dSYM文件和二进制文件是特定绑定于每一次构建和后续构建的,即使来自相同的源代码文件,每一次构建也与其他构建不同,不能相互替换。
如果你使用Build 和 Archive 命令,这些文件会自动放在适当位置。 如果不是使用Build 和 Archive命令,放在Spotlight能够搜索到的位置(比如Home目录)即可。

 

低内存闪退

因为低内存崩溃日志与普通崩溃日志略有不同,所以本教程特别分开说明一下。:]
iOS设备检测到低内存时,虚拟内存系统发出通知请求应用释放内存。这些通知发送到所有正在运行的应用和进程,试图收回一些内存。
如果内存使用依然居高不下,系统将会终止后台线程以缓解内存压力。如果可用内存足够,应用将能够继续运行而不会产生崩溃报告。否则,应用将被iOS终止,并产生低内存崩溃报告。
低内存崩溃日志上没有应用线程的堆栈回溯。相反,上面显示的是以内存页数为单位的各进程内存使用量。(在撰写本文的时候,一个内存页的大小是4KB。)
被iOS因释放内存页终止的进程名称后面你会看到jettisoned 字样。如果看到它出现在你的应用名称后面,说明你的应用因使用太多内存而被终止了。
低内存崩溃日志看起来像这样:

  1. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 30E46451<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>53FD<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4965</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>896A<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>457FC11AD05F  
  2. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  3. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>          iPhone OS 3.1.3 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>7E18<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  4. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Time<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>           <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">17</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">21</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">39</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">06.967</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  5. Free pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>        <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">96</span>  
  6. Wired pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10558</span>  
  7. Purgeable pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  8. Largest process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   Rage Masters  
  9. Processes  
  10.          Name                 UUID                    Count resident pages  
  11.     Rage Masters     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">9320</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>jettisoned<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>active<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  12.     mediaserverd      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">255</span>  
  13.      dataaccessd      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">505</span>  
  14.          syslogd       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">71</span>  
  15.             apsd      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">171</span>  
  16.        securityd      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">243</span>  
  17.          notifyd     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2027</span>  
  18.       CommCenter      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">189</span>  
  19.      SpringBoard     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2158</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>active<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  20.       accessoryd       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">91</span>  
  21.          configd      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">371</span>  
  22.        fairplayd       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">93</span>  
  23.    mDNSResponder      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">292</span>  
  24.        lockdownd     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1204</span>  
  25.          launchd       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">72</span>  

当应用发生低内存闪退时,你必需看看应用中内存使用的方式,以及是如何处理低内存警告的。你可以使用Instruments工具中使用Allocations 和 Leaks来发现内存分配问题和内存泄漏问题。如果你不知道如何利用 Instruments 检查内存问题,可以看看这个教程 。
还有,别忘记虚拟内存! Instruments工具的Leaks 和 Allocations 不能跟踪显存使用情况。必需使用 VM Tracker 才能查看显存使用情况。
VM Tracker 默认是关闭的。打开Instrument,手动 选中Automatic Snapshotting 标志或者按下Snapshot Now 按钮。
本教程后面将会学习如何研究低内存崩溃日志。

异常编码

在研究真实闪退场景之前,还有一点需要重点介绍一下:就是那些有趣的异常编码 。
你可以在报告的异常部分——前面代码的第3部分找到异常编码。有些编码比较常见。
通常,异常编码以一些文字开头,紧接着是一个或多个十六进制值,此数值正是说明闪退根本性质的所在。  从这些编码中,可以区分出闪退是因为程序错误、非法内存访问或者是其他原因。
下面是一些常见的异常编码:

  • 0x8badf00d: 读做 “ate bad food”! (把数字换成字母,是不是很像 :p)该编码表示应用是因为发生watchdog超时而被iOS终止的。  通常是应用花费太多时间而无法启动、终止或响应用系统事件。

  • 0xbad22222: 该编码表示 VoIP 应用因为过于频繁重启而被终止。
  • 0xdead10cc: 读做 “dead lock”!该代码表明应用因为在后台运行时占用系统资源,如通讯录数据库不释放而被终止 。
  • 0xdeadfa11: 读做 “dead fall”! 该代码表示应用是被用户强制退出的。根据苹果文档, 强制退出发生在用户长按开关按钮直到出现 “滑动来关机”, 然后长按 Home按钮。强制退出将产生 包含0xdeadfa11 异常编码的崩溃日志, 因为大多数是强制退出是因为应用阻塞了界面。

 

注意: 在后台任务列表中关闭已挂起的应用不会产生崩溃日志。 一旦应用被挂起,它何时被终止都是合理的。所以不会产生崩溃日志。

大展身手的时候到了!

好了! 你已经学习了所有分析崩溃日志和修复错误的基础知识!
假设你刚进入Rage-O-Rage有限公司工作。该公司有一个在App Store上热销的应用,叫 Rage Masters。
你的老板安迪要你帮忙解决几个用户经常抱怨闪退问题。你的任务就是研究这些闪退,符号化用户提供的崩溃日志,查找问题所在,并修复之。
你可以从 这里下载应用的源代码。

注意: 如果你想自己重新生成崩溃报告,请遵照以下指引:

  1. 下载源码然后在Xcode中打开工程文件。
  2. 使用正确的provisioning profile连接到iOS设备。
  3. 从Xcode工具栏上选择iOS设备——不是模拟器作为target,然后构建应用。
  4. 当你在设备上到默认页面(应用的全屏图片)时,立即在Xcode上点击停止按钮。
  5. 关闭 Xcode。
  6. 在设备上直接打开应用。
  7. 测试场景,完成后连接设备到电脑上,通过Xcode获取崩溃日志。

 

场景 1: 糟糕的代码

一封来自用户的邮件: “大哥,你的应用就是一坨屎! 我将其下载到我自己的iPod Touch和iPhone上,还下载到我儿子的iPod Touch上。在所有的设备上,都是还没打开就闪退了……”
别一封来自用户的邮件说, “我下载了你们的应用,一打开就闪退。真悲催…”
另一封邮件说得更明确:”你们的应用不能运行。我把它下载到我和妻子的设备上。所有设备都是 一打开就闪退了…”

好吧,别灰心! 这些意见藏着什么玄机呢?让我们看看崩溃日志吧:

  1. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 85833DBA<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>3DF7<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>43EE<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>AF80<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4E5C51091F42  
  2. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  3. Hardware Model<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iPhone4,<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>  
  4. Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         Rage Masters <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20067</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  5. Path<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>var<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>mobile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Applications<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>B2121A89<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>3D1F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4E61<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>BB18<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>5511E1DC150F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters.app<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters  
  6. Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      Rage Masters  
  7. Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         ??? <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>???<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  8. Code Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       ARM <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Native<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  9. Parent Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  launchd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  10. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Time<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>03 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">37</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">31.148</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  11. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iOS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6.0</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>10A403<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  12. Report Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">104</span>  
  13. Exception Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  00000020  
  14. Exception Codes<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x000000008badf00d  
  15. Highlighted Thread<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  16. Application Specific Information<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  17. Soheil<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>Azarpour.Rage<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>Masters failed to launch <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">in</span> <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a>  
  18. Elapsed total CPU <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>seconds<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8.030</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>user <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8.030</span>, <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/system.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">system</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0.000</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>, <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">%</span> CPU   
  19. Elapsed application CPU <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>seconds<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3.840</span>, <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">%</span> CPU  
  20. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span> name<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  Dispatch queue<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> com.apple.main<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>thread  
  21. Thread <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  22. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>   libsystem_kernel.dylib          0x327f2eb4 mach_msg_trap <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  
  23. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>   libsystem_kernel.dylib          0x327f3048 mach_msg <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">36</span>  
  24. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>   CoreFoundation                  0x36bd4040 __CFRunLoopServiceMachPort <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">124</span>  
  25. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>   CoreFoundation                  0x36bd2d9e __CFRunLoopRun <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">878</span>  
  26. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>   CoreFoundation                  0x36b45eb8 CFRunLoopRunSpecific <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">352</span>  
  27. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5</span>   CoreFoundation                  0x36b45d44 CFRunLoopRunInMode <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">100</span>  
  28. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>   CFNetwork                       0x32ac343e CFURLConnectionSendSynchronousRequest <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">330</span>  
  29. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7</span>   Foundation                      0x346e69ba <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURLConnection</span></a> sendSynchronousRequest<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>returningResponse<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>error<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">242</span>  
  30. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>   Rage Masters                    0x000ea1c4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMAppDelegate application<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>didFinishLaunchingWithOptions<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>RMAppDelegate.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">36</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  31. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">9</span>   UIKit                           0x37f30ad4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication _handleDelegateCallbacksWithOptions<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>isSuspended<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>restoreState<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">248</span>  
  32. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span>  UIKit                           0x37f3065e <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication _callInitializationDelegatesForURL<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>payload<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>suspended<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1186</span>  
  33. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span>  UIKit                           0x37f28846 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication _runWithURL<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>payload<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>launchOrientation<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>statusBarStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>statusBarHidden<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">694</span>  
  34. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">12</span>  UIKit                           0x37ed0c3c <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication handleEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withNewEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1000</span>  
  35. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span>  UIKit                           0x37ed06d0 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span>  
  36. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14</span>  UIKit                           0x37ed011e _UIApplicationHandleEvent <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6150</span>  
  37. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">15</span>  GraphicsServices                0x370835a0 _PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">588</span>  
  38. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span>  GraphicsServices                0x370831ce PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  
  39. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">17</span>  CoreFoundation                  0x36bd4170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">32</span>  
  40. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">18</span>  CoreFoundation                  0x36bd4112 __CFRunLoopDoSource1 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">134</span>  
  41. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">19</span>  CoreFoundation                  0x36bd2f94 __CFRunLoopRun <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1380</span>  
  42. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  CoreFoundation                  0x36b45eb8 CFRunLoopRunSpecific <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">352</span>  
  43. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">21</span>  CoreFoundation                  0x36b45d44 CFRunLoopRunInMode <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">100</span>  
  44. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">22</span>  UIKit                           0x37f27480 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication _run<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">664</span>  
  45. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">23</span>  UIKit                           0x37f242fc UIApplicationMain <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1116</span>  
  46. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">24</span>  Rage Masters                    0x000ea004 main <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>main.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  47. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">25</span>  libdyld.dylib                   0x3b630b1c start <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  

发现问题了吗? 异常编码是0x000000008badf00d,还有后面的报告:

  1. Application Specific Information<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  2. Soheil<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>Azarpour.Rage<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>Masters failed to launch <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">in</span> <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a>  
  3. Elapsed total CPU <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>seconds<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8.030</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>user <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8.030</span>, <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/system.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">system</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0.000</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>, <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">%</span> CPU   
  4. Elapsed application CPU <a target="_blank" href="http://www.opengroup.org/onlinepubs/009695399/functions/time.html" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">time</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>seconds<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3.840</span>, <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">%</span> CPU  

这说明应用在启动时就闪退了,iOS的watchdog机制终止了应用。帅! 找到问题了,但是为什会发生这样的事呢?
接着往下看日志。 从下向上读回溯日志。最底下的帧 (frame 25: libdyld.dylib)是最先调用的,然后是帧24, Rage Masters, main (main.m:16) ,依此类推。
跟应用源代码相关的帧是最重要的。忽略掉系统库和框架。下一个与代码相关的帧是:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>    Rage Masters    0x0009f244 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMAppDelegate application<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>didFinishLaunchingWithOptions<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>RMAppDelegate.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">35</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  

应用在执行RMAppDelegate (RMAppDelegate.m:35)类application:didFinishLaunchingWithOptions: 方法第35 行代码时闪退。打开Xcode看看那行代码:

  1. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSData</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>directoryData <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURLConnection</span></a> sendSynchronousRequest<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>request returningResponse<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">nil</span> error<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">nil</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  

就是它了! 同步调用web服务?! 在主线程上?! 在 application:didFinishLaunchingWithOptions: 方法上?!! 谁写的代码呀?!

Network calls on the main thread makes kittens sad.

Network calls on the main thread makes kittens sad.

不管如何,问题得你来修复了。这个调用必需异步进行,甚至更理想的情况是,在application:didFinishLaunchingWithOptions:返回YES之后的其他部分再执行Web服务。
在其他地方调用可能需要比较多的修改。当下,我们只要使应用不闪退就行。可以在日后再实现更好的设计。 将上面那行讨厌的代码(及其下面的三行代码)换成下面这个异步的版本吧:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLConnection_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURLConnection</span></a> sendAsynchronousRequest<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>request  
  2.                                            queue<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSOperationQueue_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSOperationQueue</span></a> mainQueue<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  3.                                completionHandler<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:^</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURLResponse_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURLResponse</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>response, <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSData_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSData</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>data, <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSError_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSError</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>error<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  4.          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  5.              <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURL</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>cacheDirectory <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSFileManager_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSFileManager</span></a> defaultManager<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> URLsForDirectory<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>NSUserDirectory inDomains<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>NSCachesDirectory<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> lastObject<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  6.              <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURL</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>filePath <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURL</span></a> URLWithString<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>kDirectoryFile relativeToURL<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>cacheDirectory<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  7.              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>data writeToFile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>filePath absoluteString<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> atomically<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">YES</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  8.          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  

 

场景 2: 无法响应事件的按钮

一名用户说: “我不能将某个rage master添加到书签里面。我想添加的时候应用就闪退…”
用一名用户说 :”书签不能用 … 在详细页面上,点击书签按钮,应用就闪退了!”
上面的抱怨说得不是很清楚,引起问题的原因肯定有多样。看看崩溃日志:

  1. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 3AAA63CC<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3088</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>41CC<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>84D9<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>82FE03F9F354  
  2. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  3. Hardware Model<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iPhone4,<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>  
  4. Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         Rage Masters <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20090</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  5. Path<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>var<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>mobile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Applications<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>B2121A89<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>3D1F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4E61<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>BB18<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>5511E1DC150F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters.app<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters  
  6. Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      Rage Masters  
  7. Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         ??? <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>???<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  8. Code Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       ARM <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Native<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  9. Parent Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  launchd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  10. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Time<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>03 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">39</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">00.081</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  11. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iOS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6.0</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>10A403<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  12. Report Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">104</span>  
  13. Exception Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  EXC_CRASH <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">SIGABRT</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  14. Exception Codes<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000000000000000x0000000000000000  
  15. Crashed Thread<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  16. Last Exception Backtrace<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  17. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>   CoreFoundation                  0x36bff29e __exceptionPreprocess <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">158</span>  
  18. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>   libobjc.A.dylib                 0x34f0f97a objc_exception_throw <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  
  19. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>   CoreFoundation                  0x36c02e02 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSObject</span></a><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSObject</span></a><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> doesNotRecognizeSelector<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">166</span>  
  20. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>   CoreFoundation                  0x36c0152c ___forwarding___ <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">388</span>  
  21. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>   CoreFoundation                  0x36b58f64 _CF_forwarding_prep_0 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  
  22. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5</span>   UIKit                           0x37fbb0a8 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>from<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span>  
  23. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>   UIKit                           0x37fbb05a <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>toTarget<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>fromSender<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  
  24. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7</span>   UIKit                           0x37fbb038 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">40</span>  
  25. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>   UIKit                           0x37fba8ee <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Internal<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> _sendActionsForEvents<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">498</span>  
  26. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">9</span>   UIKit                           0x37fbade4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl touchesEnded<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">484</span>  
  27. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span>  UIKit                           0x37ee35f4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIWindow _sendTouchesForEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">520</span>  
  28. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span>  UIKit                           0x37ed0804 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">376</span>  
  29. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">12</span>  UIKit                           0x37ed011e _UIApplicationHandleEvent <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6150</span>  
  30. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span>  GraphicsServices                0x3708359e _PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">586</span>  
  31. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14</span>  GraphicsServices                0x370831ce PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  
  32. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">15</span>  CoreFoundation                  0x36bd416e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  
  33. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span>  CoreFoundation                  0x36bd4112 __CFRunLoopDoSource1 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">134</span>  
  34. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">17</span>  CoreFoundation                  0x36bd2f94 __CFRunLoopRun <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1380</span>  
  35. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">18</span>  CoreFoundation                  0x36b45eb8 CFRunLoopRunSpecific <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">352</span>  
  36. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">19</span>  CoreFoundation                  0x36b45d44 CFRunLoopRunInMode <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">100</span>  
  37. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  GraphicsServices                0x370822e6 GSEventRunModal <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">70</span>  
  38. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">21</span>  UIKit                           0x37f242fc UIApplicationMain <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1116</span>  
  39. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">22</span>  Rage Masters                    0x000ca004 main <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>main.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  40. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">23</span>  libdyld.dylib                   0x3b630b1c start <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  

异常代码是SIGABRT。通常,  SIGABRT 异常是由于某个对象接收到未实现的消息引起的。 或者,用简单的话说,在某个对象上调用了不存在的方法。
这种情况一般不会发生,因为A对象调用了B方法,如果B方法不存在,编译器会报错。但是,如果你是使用selector间接调用方法的,编译器则无法检测对象是否存在该方法了。
回到崩溃日志。它指出闪退发生在编号为0的线程上。 这意味着很可能是在主线程上调用了某个对象没有实现的方法。
如果你接着阅读回溯日志,会发现跟你的代码相关的只有帧22, main.m:16. 这没有多大帮助。 :[
继续向上查看框架调用,出现这个:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>    CoreFoundation    0x36c02e02 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSObject</span></a><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSObject</span></a><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> doesNotRecognizeSelector<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">166</span>  

这不是你自己写的代码。但至少它确认了是对象调用了一个没有实现的方法。
回到RMDetailViewController.m文件, 因为那是书签按钮实现动作的地方。 找到书签功能代码:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>IBAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>bookmarkButtonPressed <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  2.    
  3.     self.master.isBookmarked <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">!</span>self.master.isBookmarked;  
  4.    
  5.     <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// Update shared bookmarks</em></span>  
  6.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">if</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>self.master.isBookmarked<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  7.         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMBookmarks sharedBookmarks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> bookmarkMaster<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>self.master<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  8.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">else</span>  
  9.         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMBookmarks sharedBookmarks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> unbookmarkMaster<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>self.master<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  10.    
  11.     <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// Update UI</em></span>  
  12.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>self updateBookmarkImage<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  13. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  

看起来没什么问题,再检查一下storyboard (XIB文件) ,确认按钮连接的正确性。

就是它了! 在 MainStoryboard.storyboard,按钮连接的是 bookmarkButtonPressed: 而不是bookmarkButtonPressed (注意后面的分号说明方法有一个参数)。 只要将上面的方法签名修改成这样就能修复问题了:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>IBAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>bookmarkButtonPressed<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">id</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>sender <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  2.     <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>// Remain unchanged..</em></span>  
  3. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  

当然,你也可以简单地在XIB文件上删除错误的连接,然后重新连接方法,使XIB文件连接到正确的方法上。两者方法都行。
又处理了一个闪退问题,好样的。:]

场景 3: 表格上的Bug

另一用户抱怨道, “在书签视图上无法删除书签…” 还有另一用户抱怨同样的问题, “当我试图删除书签时,应用闪退…”
这些邮件没什么作用,还是看看崩溃日志!

  1. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 5B62D681<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>D8FE<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>41FE<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>8D52<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>AB7E6D6B2AC7  
  2. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  3. Hardware Model<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iPhone4,<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>  
  4. Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         Rage Masters <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20088</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  5. Path<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>var<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>mobile<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Applications<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>B2121A89<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>3D1F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>4E61<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>BB18<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>5511E1DC150F<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters.app<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Rage Masters  
  6. Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      Rage Masters  
  7. Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>         ??? <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>???<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  8. Code Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       ARM <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Native<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  9. Parent Process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  launchd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>  
  10. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>Time<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>03 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">38</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">45.762</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  11. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iOS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6.0</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>10A403<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  12. Report Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">104</span>  
  13. Exception Type<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  EXC_CRASH <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">SIGABRT</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  14. Exception Codes<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 0x00000000000000000x0000000000000000  
  15. Crashed Thread<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  16. Last Exception Backtrace<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>  
  17. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>   CoreFoundation                  0x36bff29e __exceptionPreprocess <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">158</span>  
  18. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>   libobjc.A.dylib                 0x34f0f97a objc_exception_throw <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  
  19. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2</span>   CoreFoundation                  0x36bff158 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSException_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSException</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">raise</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>format<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>arguments<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">96</span>  
  20. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>   Foundation                      0x346812aa <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSAssertionHandler_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSAssertionHandler</span></a> handleFailureInMethod<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>object<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>file<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>lineNumber<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>description<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">86</span>  
  21. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>   UIKit                           0x37f04b7e <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UITableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>_UITableViewPrivate<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> _endCellAnimationsWithContext<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7690</span>  
  22. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5</span>   UIKit                           0x3803a4a2 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UITableView deleteRowsAtIndexPaths<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withRowAnimation<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">22</span>  
  23. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>   Rage Masters                    0x000fd9ca <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMBookmarksViewController tableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>commitEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forRowAtIndexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>RMBookmarksViewController.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  24. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7</span>   UIKit                           0x3809a5d4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UITableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>UITableViewInternal<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> animateDeletionOfRowWithCell<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">80</span>  
  25. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">8</span>   UIKit                           0x37fbb0a8 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>from<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span>  
  26. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">9</span>   UIKit                           0x37fbb05a <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>toTarget<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>fromSender<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  
  27. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">10</span>  UIKit                           0x37fbb038 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">40</span>  
  28. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span>  UIKit                           0x37fba8ee <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Internal<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> _sendActionsForEvents<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">498</span>  
  29. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">12</span>  UIKit                           0x37fbb0a8 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>from<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span>  
  30. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span>  UIKit                           0x37fbb05a <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>toTarget<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>fromSender<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  
  31. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14</span>  UIKit                           0x37fbb038 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl sendAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>to<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">40</span>  
  32. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">15</span>  UIKit                           0x37fba8ee <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>Internal<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> _sendActionsForEvents<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">498</span>  
  33. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span>  UIKit                           0x37fbade4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIControl touchesEnded<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">484</span>  
  34. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">17</span>  UIKit                           0x37ee35f4 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIWindow _sendTouchesForEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">520</span>  
  35. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">18</span>  UIKit                           0x37ed0804 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UIApplication sendEvent<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">376</span>  
  36. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">19</span>  UIKit                           0x37ed011e _UIApplicationHandleEvent <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6150</span>  
  37. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">20</span>  GraphicsServices                0x3708359e _PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">586</span>  
  38. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">21</span>  GraphicsServices                0x370831ce PurpleEventCallback <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  
  39. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">22</span>  CoreFoundation                  0x36bd416e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  
  40. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">23</span>  CoreFoundation                  0x36bd4112 __CFRunLoopDoSource1 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">134</span>  
  41. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">24</span>  CoreFoundation                  0x36bd2f94 __CFRunLoopRun <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1380</span>  
  42. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">25</span>  CoreFoundation                  0x36b45eb8 CFRunLoopRunSpecific <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">352</span>  
  43. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">26</span>  CoreFoundation                  0x36b45d44 CFRunLoopRunInMode <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">100</span>  
  44. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">27</span>  GraphicsServices                0x370822e6 GSEventRunModal <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">70</span>  
  45. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">28</span>  UIKit                           0x37f242fc UIApplicationMain <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1116</span>  
  46. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">29</span>  Rage Masters                    0x000fb004 main <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>main.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">16</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  47. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">30</span>  libdyld.dylib                   0x3b630b1c start <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  

这看起来跟前面那个崩溃日志很像。是另一个SIGABRT 异常。 你可能想知道是否是相同的问题:发送信息到一个没有实现相应方法的对象?
让我们从回溯日志看看哪些方法被调用了。从底部开始,你的源代码最后被调用的是帧 6:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6</span>    Rage Masters    0x00088c66 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMBookmarksViewController tableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>commitEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>forRowAtIndexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>RMBookmarksViewController.m<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">68</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  

这是UITableViewDataSource 的一个方法. 呵呵?! 毫无疑问苹果已经实现了该方法 —— 你可以重载它, 但不像是还没有实现。而且,这是个可选的委派方法。 所以问题不是调用了一个没有实现的方法。
再看看上面的几个帧:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3</span>    Foundation    0x346812aa <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSAssertionHandler_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSAssertionHandler</span></a> handleFailureInMethod<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>object<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>file<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>lineNumber<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>description<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">86</span>  
  2. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span>    UIKit         0x37f04b7e <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UITableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>_UITableViewPrivate<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> _endCellAnimationsWithContext<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7690</span>  
  3. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5</span>    UIKit         0x3803a4a2 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>UITableView deleteRowsAtIndexPaths<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>withRowAnimation<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">+</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">22</span>  

帧 5, UITableView调用了它自己的另一个方法 deleteRowsAtIndexPaths:withRowAnimation: 然后是看起来像苹果内部方法的_endCellAnimationsWithContext: 被调用。然后Foundation framework发生异常handleFailureInMethod:object:file:lineNumber:description:.
这些分析结合用户的抱怨,看起来是你在处理UITableView删除行过程中有Bug。回到Xcode。你知道看哪里吗 ? 能从崩溃日志中判断出来? 就是RMBookmarksViewController.m文件的第68行:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">void</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>tableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>UITableView <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>tableView commitEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>UITableViewCellEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>editingStyle forRowAtIndexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSIndexPath_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSIndexPath</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>indexPath <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  2.    
  3.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>self.tableView deleteRowsAtIndexPaths<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSArray</span></a> arrayWithObject<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>indexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> withRowAnimation<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>UITableViewRowAnimationAutomatic<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  4. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  

发现问题了吗? 给你点时间,仔细看一下。
找到了吧! 数据源呢? 代码在表格视图上删除了一行,但并没有修改背后的数据源。把上面的代码替换成下面的就能修复问题了:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">void</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>tableView<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>UITableView <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>tableView commitEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>UITableViewCellEditingStyle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>editingStyle forRowAtIndexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSIndexPath_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSIndexPath</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>indexPath <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  2.    
  3.     RMMaster <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>masterToDelete <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>bookmarks objectAtIndex<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>indexPath.row<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  4.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>bookmarks removeObject<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>masterToDelete<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  5.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>RMBookmarks sharedBookmarks<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> unbookmarkMaster<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>masterToDelete<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  6.    
  7.     <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>self.tableView deleteRowsAtIndexPaths<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSArray</span></a> arrayWithObject<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>indexPath<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> withRowAnimation<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>UITableViewRowAnimationAutomatic<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  8. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  

搞定了!走起,讨厌的 bug!!

这篇文章还可以在这里找到 英语

场景 4: 吃棒棒糖时闪退!

用户邮件说, “当rage master吃棒棒糖时应用就闪退…” 另一用户说, “我让rage master 吃棒棒糖,没几次应用就闪退了!”
崩溃日志如下:

  1. Incident Identifier<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> 081E58F5<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>95A8<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>404D<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>947B<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>5E104B6BC1B1  
  2. CrashReporter Key<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   5a56599d836c4f867f6eec76afee451bf9ae5f31  
  3. Hardware Model<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      iPhone4,<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1</span>  
  4. OS Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>          iPhone OS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">6.0</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>10A403<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  5. Kernel Version<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      Darwin Kernel Version 13.0.0<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> Sun Aug <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">19</span> 00<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">28</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>05 PDT <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span>; root<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>xnu<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>2107.2.33~<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">/</span>RELEASE_ARM_S5L8940X  
  6. Date<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>                <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2012</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">11</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>03 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">13</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">39</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">59</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span>0400  
  7. Time since snapshot<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4353</span> ms  
  8. Free pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>        <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">968</span>  
  9. Active pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">7778</span>  
  10. Inactive pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>    <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4005</span>  
  11. Throttled pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">92319</span>  
  12. Purgeable pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>  
  13. Wired pages<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">23347</span>  
  14. Largest process<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>   Rage Masters  
  1. Processes  
  2.      Name                    <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;UUID<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;                       rpages       recent_max       <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>reason<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>state<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  3.    
  4.              lsd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;6a9f5b5f36b23fc78f87b6d8f1f49a9d<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">331</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">331</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  5.             afcd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;b0aff2e7952e34a9882fec81a8dcdbb2<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">141</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">141</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  6.     itunesstored <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;4e0cd9f873de3435b4119c48b2d6d13d<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1761</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1761</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  7. softwareupdatese <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;2bc4b5ae016431c98d3b34f81027d0ae<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">311</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">311</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  8.           Amazon <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;4600481f07ec3e59a925319b7f67ba14<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2951</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2951</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>suspended<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  9.        accountsd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;ac0fce15c1a2350d951efc498d521ac7<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">519</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">519</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  10. coresymbolicatio <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;edba67001f76313b992056c712153b4b<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">126</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">126</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>idle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  11.            Skype <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;504cf2fe60cb3cdea8273e74df09836b<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3187</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">3187</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>background<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  12.       MobileMail <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;bff817c61ce33c85a43ea9a6c98c29f5<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;        <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14927</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">14927</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>continuous<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  13.        MobileSMS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;46778de076363d67aeea207464cfc581<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2134</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2134</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>background<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  14.      MobilePhone <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;3fca241f2a193d0fb8264218d296ea41<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2689</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2689</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>continuous<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  15.       librariand <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;c9a9be81aa9632f0a913ce79b911f27e<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">317</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">317</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  16.              kbd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;3e7136ddcefc3d77a01499db593466cd<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">616</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">616</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  17.             tccd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;eb5ddcf533663f8d987d67cae6a4c4ea<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">224</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">224</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  18.     Rage Masters <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;90b45d6281e934209c5b06cf7dc4d492<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;        <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">28591</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">28591</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>vm<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>frontmost<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>resume<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  19.             ptpd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;04a56fce67053c57a7979aeea8e5a7ea<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">879</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">879</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  20.    iaptransportd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;f784f30dc09d32078d87b450e8113ef6<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">230</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">230</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  21.        locationd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;892cd1c9ffa43c99a82dba197be5f09e<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1641</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1641</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  22.          syslogd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;cbef142fa0a839f0885afb693fb169c3<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">237</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">237</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  23.     mediaserverd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;80657170daca32c9b8f3a6b1faac43a2<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4869</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">4869</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  24.      dataaccessd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;2a3f6a518f3f3646bf35eddd36f25005<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1786</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">1786</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  25.       aosnotifyd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;d4d14f2914c3343796e447cfef3e6542<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">549</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">549</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  26.            wifid <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;9472b090746237998cdbb9b34f090d0c<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">455</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">455</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  27.      SpringBoard <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;27372aae101f3bbc87804edc10314af3<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;        <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">18749</span>            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">18749</span>                       
  28.       backboardd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;5037235f295b33eda98eb5c72c098858<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5801</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">5801</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  29.   UserEventAgent <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;6edfd8d8dba23187b05772dcdfc94f90<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">601</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">601</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  30.     mediaremoted <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;4ff39c50c684302492e396ace813cb25<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">293</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">293</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  31.      pasteboardd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;8a4279b78e4a321f84a076a711dc1c51<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">176</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">176</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  32. springboardservi <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;ff6f64b3a21a39c9a1793321eefa5304<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  33.     syslog_relay <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;45e9844605d737a08368b5215bb54426<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  34.       DTMobileIS <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;23303ca402aa3705870b01a9047854ea<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  35. notification_pro <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;845b7beebc8538ca9ceef731031983b7<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">169</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">169</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  36.     syslog_relay <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;45e9844605d737a08368b5215bb54426<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;            <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  37.              ubd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;74dc476d1785300e9fcda555fcb8d774<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">976</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">976</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  38.         twitterd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;4b4946378a9c397d8250965d17055b8e<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">730</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">730</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  39.          configd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;4245d73a9e96360399452cf6b8671844<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">809</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">809</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  40.    absinthed.N94 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;7f4164c844fa340caa940b863c901aa9<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;           <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">99</span>               <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">99</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  41. filecoordination <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;fbab576f37a63b56a1039153fc1aa7d8<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">226</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">226</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  42.        distnoted <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;a89af76ec8633ac2bbe99bc2b7964bb0<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">137</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">137</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  43.             apsd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;94d8051dd5f5362f82d775bc279ae608<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">373</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">373</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  44.         networkd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;0032f46009f53a6c80973fe153d1a588<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">219</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">219</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  45.       aggregated <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;8c3c991dc4153bc38aee1e841864d088<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">112</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">112</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  46.         BTServer <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;c92fbd7488e63be99ec9dbd05824f5e5<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">522</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">522</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  47.    fairplayd.N94 <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;7bd896bd00783a48906090d05cf1c86a<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">210</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">210</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  48.        fseventsd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;996cc4ca03793184aea8d781b55bce08<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">384</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">384</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  49.          imagent <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;1e68080947be352590ce96b7a1d07b2f<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">586</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">586</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  50.    mDNSResponder <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;3e557693f3073697a58da6d27a827d97<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">295</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">295</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  51.        lockdownd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;ba1358c7a8003f1b91af7d5f58dd5bbe<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">389</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">389</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  52.           powerd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;2d2ffed5e69638aeba1b92ef124ed861<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">174</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">174</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  53.       CommCenter <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;1f425e1e897d32e8864fdd8eeaa803a8<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;         <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2212</span>             <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">2212</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  54.          notifyd <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;51c0e03da8a93ac8a595442fcaac531f<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">211</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">211</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  55.      ReportCrash <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>lt;8c32f231b2ed360bb151b2563bcaa363<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">&</span>gt;          <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">337</span>              <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">337</span>                      <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>daemon<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  

这日志跟我们前面见到的相差很多。

这个一个来自iOS 6的低内存崩溃日志。正如我们前面所说的,低内存崩溃日志与其他类型的崩溃日志很不一样,它们不指向特定的文件和代码行。相反,它们画出了闪退时设备上的内存使用情况的图表。

至少,头部还是跟其他崩溃日志很像的:  提供了 Incident Identifier, CrashReporter Key, Hardware Model, OS Version等信息。

接下来部分是低内存崩溃日志特有的:

  • Free pages 指可用内存页数。每页大小约是4KB, 上面的日志中,可用内存约为3,872 KB (或者说 3.9 MB)。
  • Purgeable pages 是那部分可被清除或重用的内存。在上面的日志中,是0KB。
  • Largest process是闪退时使用大部分内存的应用名称,在上面的日志中,正是你的应用!
  • Processes显示了闪退时各进程列表,还包含内存使用量。包含进程名 (第一列), 进程唯一标识符(第二名), 进程使用的内存页数(第三列)。最后一列是每个应用的状态。通常,发生闪退的应用的状态是 frontmost。 这里是 Rage Masters, 使用28591 页 (or 114.364 MB) 内存——这内存太多了!

通过,最大进程和frontmost状态的应用是相同的, 而且也是引起低内存闪退的应用进程。但是也可能看到最大进程和 frontmost状态应用不同的例子。比如,如果最大进程是SpringBoard, 忽略它 , 因为 SpringBoard 进程是显示主屏幕的应用,出现在你双击home按钮等情况,而且它是一直活动的。
低内存发生时,iOS向活动的应用发出低内存警告并终止后台应用。如果前台应用仍然继续增长内存,iOS将终止它。
为了查找低内存问题的原因,你必需使用Instruments剖析应用。如果你不知道怎么做,可以看一下我们 一篇关于这个方面的教程.。 :] 另外, 你也可以走捷径,响应低内存警告通知,以解决部分闪退问题。
回到Xcode查看RMLollipopLicker.m文件。 这是实现吃棒棒糖的视图控制器。看看源代码:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(110,55,26)">#import "RMLollipopLicker.h"</span>  
  2.    
  3. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(110,55,26)">#define COUNT 20</span>  
  4.    
  5. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@interface</span> RMLollipopLicker <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>  
  6. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@property</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>weak, nonatomic<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> IBOutlet UIProgressView <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>progressView;  
  7. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@property</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>weak, nonatomic<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> IBOutlet UILabel <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>label;  
  8. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@property</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>weak, nonatomic<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> IBOutlet UILabel <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>lickedTimeLabel;  
  9. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@end</span>  
  10.    
  11. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@implementation</span> RMLollipopLicker <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  12. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSOperationQueue_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSOperationQueue</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>queue;  
  13. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSMutableArray</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>lollipops;  
  14. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  15.    
  16. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(110,55,26)">#pragma mark - Life cycle</span>  
  17.    
  18. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">void</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>viewDidLoad <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  19. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>super viewDidLoad<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  20.    
  21. self.progressView.progress <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0.0</span>;  
  22. self.label.text <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSString</span></a> stringWithFormat<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">"Tap on run and I'll lick a lollipop %d times!"</span>, COUNT<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  23. self.lickedTimeLabel.text <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">""</span>;  
  24.    
  25. lollipops <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSMutableArray</span></a> alloc<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> init<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  26. queue <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSOperationQueue_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSOperationQueue</span></a> alloc<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> init<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  27. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  28.    
  29. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">void</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>lickLollipop <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  30. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSURL_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSURL</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>fileURL <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSBundle_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSBundle</span></a> mainBundle<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span> URLForResource<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">"Lollipop"</span> withExtension<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">"plist"</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  31. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSDictionary</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>dictionary <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDictionary_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSDictionary</span></a> dictionaryWithContentsOfURL<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>fileURL<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  32. <a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSString</span></a> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">*</span>lollipop <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>dictionary objectForKey<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">"Lollipop"</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  33. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>lollipops addObject<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span>lollipop<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  34. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  35.    
  36. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(110,55,26)">#pragma mark - IBActions</span>  
  37.    
  38. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>IBAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>doneButtonPressed<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">id</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>sender <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  39.    
  40. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>self dismissViewControllerAnimated<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">YES</span> completion<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">nil</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  41. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  42.    
  43. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>IBAction<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>runButtonPressed<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">id</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>sender <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  44.    
  45. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>sender setEnabled<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">NO</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  46. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>queue addOperationWithBlock<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:^</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  47.    
  48. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">for</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span>NSInteger i <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0</span> ; i <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> COUNT<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  49. self.label.text <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span><a target="_blank" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/" style="color:rgb(0,104,55); border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline"><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(64,0,128)">NSString</span></a> stringWithFormat<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(17,116,10)"><em>@</em></span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(191,29,26)">"Tap on run and I'll lick a lollipop %d times!"</span>, COUNT<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  50. self.progressView.progress <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">=</span> <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(36,0,217)">0.0</span>;  
  51. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>sender setEnabled<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">:</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">YES</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  52. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  53. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  54. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  55. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  56.    
  57. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  
  58.    
  59. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">@end</span>  

当用户点击运行按钮, 应用开始一个背景线程,调用 lickLollipop 方法若干次,然后更新界面反映吃棒棒糖的数量。 lickLollipop 方法从属性列表文件(PLIST)文件读取一个长字符串,然后添加到数组上。这些数据并不重要, 能在不影响用户体验的前提下重新创建。
利用每种能够清除和重建数据而不影响用户体验的情况是好习惯。这样能够方便地释放内存,减少低内存警告。
那么,如何提高代码质量呢? 实现 didReceiveMemoryWarning 方法,像下面这样处理数据:

  1. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">-</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">(</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(166,19,144)">void</span><span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">)</span>didReceiveMemoryWarning <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">{</span>  
  2. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>lollipops removeAllObjects<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  3. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">[</span>super didReceiveMemoryWarning<span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">]</span>;  
  4. <span style="border:0px; font-family:inherit; font-style:inherit; margin:0px; padding:0px; vertical-align:baseline; color:rgb(0,34,0)">}</span>  

搞定!

下一步?

万岁,你研究了4个闪退案例! 你的应用更完善了,并且学到了一些重要的调试技巧。
你可以到这里下载改进后的项目代码。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值