iOS 友盟錯誤分析

-[NSNull count]: unrecognized selector sent to instance 0x3a491a60
(null)
(
	0   CoreFoundation                      0x2f981e9b  + 154
	1   libobjc.A.dylib                     0x39cde6c7 objc_exception_throw + 38
	2   CoreFoundation                      0x2f9857b7  + 202
	3   CoreFoundation                      0x2f9840af  + 706
	4   CoreFoundation                      0x2f8d2dc8 _CF_forwarding_prep_0 + 24
	5   WeChatHelper                         WeChatHelper + 245693
	6   WeChatHelper                         WeChatHelper + 26969
	7   libdispatch.dylib                   0x3a1c30c3  + 10
	8   libdispatch.dylib                   0x3a1c30af  + 22
	9   libdispatch.dylib                   0x3a1c59a9 _dispatch_main_queue_callback_4CF + 268
	10  CoreFoundation                      0x2f94c5b1  + 8
	11  CoreFoundation                      0x2f94ae7d  + 1308
	12  CoreFoundation                      0x2f8b5471 CFRunLoopRunSpecific + 524
	13  CoreFoundation                      0x2f8b5253 CFRunLoopRunInMode + 106
	14  GraphicsServices                    0x345ef2eb GSEventRunModal + 138
	15  UIKit                               0x3216a845 UIApplicationMain + 1136
	16  WeChatHelper                         WeChatHelper + 391591
	17  libdyld.dylib                       0x3a1d7ab7  + 2
)

dSYM UUID: A925ED33-1D32-392F-BD92-52623DCE51A3
CPU Type: armv7s
Slide Address: 0x00004000
Binary Image: WeChatHelper
Base Address: 0x00059000

ios 使用友盟統計的錯誤分析時有些東西是沒法定位到哪一個方法或類出錯了,只返回簡單的內存地址。例如上面的錯誤代碼ios

這時候咱們須要本身去查找錯誤的方法或類,以便修復bug;大概操做步驟以下:app

一、在Archives 中 選中一個,show in finder -->顯示包內容-->在dSYMs 中有 xxxxxx.app.dSYM ,在Products/Applications 有xxxxxx.app 把這2個文件放在同一個文件夾裏面。ide

二、打開終端  cd 到這個文件目錄下oop

三、輸入指令 spa

xcrun atos -arch armv7s -o xxxxxx.app/xxxxxx 0xaf8a5 code

注:armv7s 是友盟錯誤裏面的內存

CPU Type: armv7s

0x0004af6f 是錯誤信息地址ci

相關文章
相關標籤/搜索