iOS崩溃报告分析

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS崩溃报告分析相关的知识,希望对你有一定的参考价值。

由于网络问题我的应用程序无法连接到后端服务器以获取数据,Apple已拒绝我的应用程序3次。我已经从不同的位置测试了我的域名,更改了域名服务器甚至主机,同样的问题仍然只针对Apple测试人员

即使使用adhoc安装再现问题,也没有重现问题。

我从Apple获得了下面的崩溃报告,但找不到根本原因。

请帮忙

Incident Identifier: DF805260-ED5C-40ED-B506-3A63A8C5274B
CrashReporter Key:   2dc48ec828366e5774edfcf660269a89dd0361b4
Hardware Model:      xxx
Process:             iKhair [932]
Path:                /private/var/mobile/Containers/Bundle/Application/A03DC4DF-DEEE-4B69-A542-7DE0931AAB0F/iKhair.app/iKhair
Identifier:          com.qunatatel.ikhair
Version:             2.3.2 (2.3)
Code Type:           ARM-64 (Native)
Parent Process:      launchd [1]

Date/Time:           2015-06-09 06:44:03.749 -0700
Launch Time:         2015-06-09 06:43:14.897 -0700
OS Version:          ios 8.3 (12F69)
Report Version:      105

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

Last Exception Backtrace:
(0x1868e02d8 0x1980000e4 0x1867c3b34 0x1000bf0f4 0x1000bafc8 0x1000bb038 0x1000b77c4 0x18b355404 0x18b33e4e0 0x18b354da0 0x18b354a2c 0x18b34df68 0x18b32118c 0x18b5c2324 0x18b31f6a0 0x186898240 0x1868974e4 0x186895594 0x1867c12d4 0x18feaf6fc 0x18b386fac 0x1000642a8 0x19867ea08)

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x0000000198797270 0x19877c000 + 111216
1   libsystem_pthread.dylib         0x000000019883516c 0x198830000 + 20844
2   libsystem_c.dylib               0x000000019870eb14 0x1986ac000 + 404244
3   iKhair                          0x00000001000e7300 0x100060000 + 553728
4   CoreFoundation                  0x00000001868e0694 0x1867b8000 + 1214100
5   libobjc.A.dylib                 0x00000001980003b0 0x197ff8000 + 33712
6   libc++abi.dylib                 0x00000001977e9bb0 0x1977cc000 + 121776
7   libc++abi.dylib                 0x00000001977e9738 0x1977cc000 + 120632
8   libobjc.A.dylib                 0x0000000198000290 0x197ff8000 + 33424
9   CoreFoundation                  0x00000001867c1380 0x1867b8000 + 37760
10  GraphicsServices                0x000000018feaf6f8 0x18fea4000 + 46840
11  UIKit                           0x000000018b386fa8 0x18b310000 + 487336
12  iKhair                          0x00000001000642a4 0x100060000 + 17060
13  libdyld.dylib                   0x000000019867ea04 0x19867c000 + 10756

Thread 1 name:  Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0   libsystem_kernel.dylib          0x000000019877cc24 0x19877c000 + 3108
1   libdispatch.dylib               0x0000000198661e6c 0x198650000 + 73324
2   libdispatch.dylib               0x0000000198653998 0x198650000 + 14744

Thread 2:
0   libsystem_kernel.dylib          0x0000000198797c78 0x19877c000 + 113784
1   libsystem_pthread.dylib         0x00000001988312d8 0x198830000 + 4824
2   libsystem_pthread.dylib         0x0000000198830eec 0x198830000 + 3820

Thread 3:
0   libsystem_kernel.dylib          0x000000019877ce0c 0x19877c000 + 3596
1   libsystem_kernel.dylib          0x000000019877cc84 0x19877c000 + 3204
2   iKhair                          0x00000001000f3554 0x100060000 + 603476
3   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
4   libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
5   libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 4:
0   libsystem_kernel.dylib          0x0000000198797570 0x19877c000 + 111984
1   libsystem_c.dylib               0x00000001986b992c 0x1986ac000 + 55596
2   libsystem_c.dylib               0x0000000198723394 0x1986ac000 + 488340
3   iKhair                          0x0000000100252f60 0x100060000 + 2043744
4   Foundation                      0x00000001877e1db4 0x1876ec000 + 1007028
5   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
6   libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
7   libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 5 name:  AFNetworking
Thread 5:
0   libsystem_kernel.dylib          0x000000019877ce0c 0x19877c000 + 3596
1   libsystem_kernel.dylib          0x000000019877cc84 0x19877c000 + 3204
2   CoreFoundation                  0x0000000186897720 0x1867b8000 + 915232
3   CoreFoundation                  0x0000000186895674 0x1867b8000 + 906868
4   CoreFoundation                  0x00000001867c12d0 0x1867b8000 + 37584
5   Foundation                      0x00000001876f94c4 0x1876ec000 + 54468
6   Foundation                      0x000000018775380c 0x1876ec000 + 423948
7   iKhair                          0x000000010010c6bc 0x100060000 + 706236
8   Foundation                      0x00000001877e1db4 0x1876ec000 + 1007028
9   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
10  libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
11  libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 6 name:  com.apple.NSURLConnectionLoader
Thread 6:
0   libsystem_kernel.dylib          0x000000019877ce0c 0x19877c000 + 3596
1   libsystem_kernel.dylib          0x000000019877cc84 0x19877c000 + 3204
2   CoreFoundation                  0x0000000186897720 0x1867b8000 + 915232
3   CoreFoundation                  0x0000000186895674 0x1867b8000 + 906868
4   CoreFoundation                  0x00000001867c12d0 0x1867b8000 + 37584
5   CFNetwork                       0x00000001862a2890 0x186204000 + 649360
6   Foundation                      0x00000001877e1db4 0x1876ec000 + 1007028
7   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
8   libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
9   libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 7:
0   libsystem_kernel.dylib          0x0000000198797c78 0x19877c000 + 113784
1   libsystem_pthread.dylib         0x00000001988312d8 0x198830000 + 4824
2   libsystem_pthread.dylib         0x0000000198830eec 0x198830000 + 3820

Thread 8 name:  com.apple.CFSocket.private
Thread 8:
0   libsystem_kernel.dylib          0x0000000198797498 0x19877c000 + 111768
1   CoreFoundation                  0x000000018689d124 0x1867b8000 + 938276
2   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
3   libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
4   libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 9:
0   libsystem_kernel.dylib          0x000000019877ce0c 0x19877c000 + 3596
1   libsystem_kernel.dylib          0x000000019877cc84 0x19877c000 + 3204
2   CoreFoundation                  0x0000000186897720 0x1867b8000 + 915232
3   CoreFoundation                  0x0000000186895674 0x1867b8000 + 906868
4   CoreFoundation                  0x00000001867c12d0 0x1867b8000 + 37584
5   CoreFoundation                  0x0000000186813358 0x1867b8000 + 373592
6   CoreMotion                      0x00000001871cc364 0x187184000 + 295780
7   libsystem_pthread.dylib         0x0000000198833dc4 0x198830000 + 15812
8   libsystem_pthread.dylib         0x0000000198833d20 0x198830000 + 15648
9   libsystem_pthread.dylib         0x0000000198830ef4 0x198830000 + 3828

Thread 10:
0   libsystem_kernel.dylib          0x0000000198797c78 0x19877c000 + 113784
1   libsystem_pthread.dylib         0x00000001988312d8 0x198830000 + 4824
2   libsystem_pthread.dylib         0x0000000198830eec 0x198830000 + 3820

Thread 11:
0   libsystem_kernel.dylib          0x0000000198797c78 0x19877c000 + 113784
1   libsystem_pthread.dylib         0x00000001988312d8 0x198830000 + 4824
2   libsystem_pthread.dylib         0x0000000198830eec 0x198830000 + 3820

Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0xffffffffffffffff
    x4: 0x0000000000000010   x5: 0x0000000000000010   x6: 0x0000000000000000   x7: 0x0000000000000000
    x8: 0x0000000008000000   x9: 0x0000000004000000  x10: 0x0000000000000000  x11: 0x0000000000000018
   x12: 0x0000000000000001  x13: 0x0000000000062aa8  x14: 0x0000000000000015  x15: 0x0000000000000000
   x16: 0x0000000000000148  x17: 0x0000000000000000  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000019c5e7310  x21: 0x0000000198ca5720  x22: 0x000000012cf5f8b0  x23: 0x0000000198c9df50
   x24: 0x000000019c5ce0a8  x25: 0x00000001702ab6a0  x26: 0x000000018bb1a7c3  x27: 0x0000000186afa83f
   x28: 0x000000016fd9f7c4  fp: 0x000000016fd9f740   lr: 0x0000000198835170
    sp: 0x000000016fd9f720   pc: 0x0000000198797270 cpsr: 0x00000000
答案

我已经修复了这个问题,感谢标记符号服务,我将文件[appname] .app.dSYM上传到了影视网站,并获得了已经翻译过的已经翻译过的跟踪文件

奇怪的是,问题只发生在iPhone 6s和iPad Air上!

另一种更简单的方法是使用Xcode,您只需将crashlog文件拖放到Xcode> Organizer>您的iPhone / ipad设备日志即可。但请注意,崩溃文件扩展名必须为.crash

http://just2us.com/2010/10/reading-iphone-crashlog/所述

以上是关于iOS崩溃报告分析的主要内容,如果未能解决你的问题,请参考以下文章

ReactNative进阶(五十):IOS 系统 Crash 日志分析实战

iOS objc_msgSend 崩溃,没有给出报告或警告

框架中的崩溃分析工具

iOS应用崩溃日志分析

iOS崩溃报告“意外启动状态”异常?

iphone崩溃分析一定准确吗