iOS crash分析

Crash分析总结:
主要分析AppStore线上版本的crash bug
1.登录开发者账号,iTunes connect -> App分析,点击应用最后面carsh的数字.

屏幕快照 2017-10-12 下午4.31.39.png

然后根据筛选条件查看crash的日情况,不同app版本,手机系统版本等

iOS crash分析_第1张图片
屏幕快照 2017-10-12 下午4.34.06.png

2.查看具体的crash
我是用Xcode直接打包的,查看crash,打开Xcode->window->organizer->crash.

iOS crash分析_第2张图片
屏幕快照 2017-10-12 下午4.40.36.png

点击show in finder,就可以直接查看.crash文件
3.分析具体BUG

Incident Identifier: 2D86319A-5292-4A4F-A498-C2010808F70F
CrashReporter Key:   ae29b7b1c62832c7a3946a0c378cde09151e13e9
Hardware Model:      iPhone9,1
Process:             xxxxxx [2863]
Path:                /private/var/containers/Bundle/Application/00FD7C29-B817-4ED2-8EAE-3B8CFD8B5986/auctions.app/auctions
Identifier:          com.***.xxxxxx
Version:             1.0031 (2.1)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.***.xxxxxx [1274]


Date/Time:           2017-10-11 14:59:48.4686 +0800
Launch Time:         2017-10-11 14:59:42.0415 +0800
OS Version:          iPhone OS 11.0.2 (15A421)
Baseband Version:    3.00.00
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                  0x1870e7d38 __exceptionPreprocess + 124 (NSException.m:166)
1   libobjc.A.dylib                 0x1865fc528 objc_exception_throw + 56 (objc-exception.mm:521)
2   CoreFoundation                  0x187080c44 _CFThrowFormattedException + 112 (CFObject.m:1937)
3   CoreFoundation                  0x18706de54 -[__NSArrayM objectAtIndexedSubscript:] + 220 (NSArrayM.m:291)
4   xxxxxx                          0x1002ec120 -[HomePageController collectionView:cellForItemAtIndexPath:] + 184 (HomePageController.m:507)
5   UIKit                           0x190f67ac8 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 312 (UICollectionView.m:1970)
6   UIKit                           0x190557344 -[UICollectionView _updateVisibleCellsNow:] + 3820 (UICollectionView.m:2919)
7   UIKit                           0x19055202c -[UICollectionView layoutSubviews] + 356 (UICollectionView.m:3520)
8   UIKit                           0x1904f5000 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1256 (UIView.m:14918)
9   QuartzCore                      0x18b0c50b4 -[CALayer layoutSublayers] + 184 (CALayer.mm:9200)
10  QuartzCore                      0x18b0c9194 CA::Layer::layout_if_needed(CA::Transaction*) + 332 (CALayer.mm:9080)
11  QuartzCore                      0x18b037f24 CA::Context::commit_transaction(CA::Transaction*) + 336 (CALayer.mm:2392)
12  QuartzCore                      0x18b05e340 CA::Transaction::commit() + 540 (CATransactionInternal.mm:425)
13  QuartzCore                      0x18b05f180 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92 (CATransactionInternal.mm:795)
14  CoreFoundation                  0x18708f8b8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1824)
15  CoreFoundation                  0x18708d270 __CFRunLoopDoObservers + 412 (CFRunLoop.c:1934)
16  CoreFoundation                  0x18708d82c __CFRunLoopRun + 1292 (CFRunLoop.c:2948)
17  CoreFoundation                  0x186fae2d8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
18  GraphicsServices                0x188e3ff84 GSEventRunModal + 100 (GSEvent.c:2245)
19  UIKit                           0x19055b880 UIApplicationMain + 208 (UIApplication.m:3948)
20  xxxxxx                          0x100310cbc main + 88 (main.m:14)
21  libdyld.dylib                   0x186ad256c start + 4

简单的列举几个问题:

  1. -[NSObject(NSObject) doesNotRecognizeSelector:]
    这表示对应的方法没有实现,可以根据堆栈信息查找下.调用错误的方法

参考:
http://blog.csdn.net/xy_26207005/article/details/51321309
http://blog.csdn.net/cuiweijie3/article/details/8778198/
http://blog.csdn.net/ys410900345/article/details/26756589
crash分析介绍
http://www.cocoachina.com/ios/20150122/10991.html
http://doc.okbase.net/zhouxihi/archive/257216.html

你可能感兴趣的:(iOS crash分析)