很多时候我们只是遇到了偶现的bug.或者只拿到.crash日志。很难分析出现bug的原因
第1步:.这是拿到的一段.crash日志。表示看不懂。没关系,我们现在进行分析
*注意我标红色的地方
Incident Identifier: 6A141CBA-A424-47E1-9EE8-2AD84F341DA2
CrashReporter Key: 1fbc08723232e938610aa7189b641d0e773aa875
Hardware Model: iPhone8,1
Process: YiTuo_Swift [28967]
Path: /private/var/containers/Bundle/Application/C8E3B591-3602-4736-8523-5DD330BB5BB0/YiTuo_Swift.app/YiTuo_Swift
Identifier: com.renywell.YiTuo-Swift
Version: 1 (1.1.6)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.renywell.YiTuo-Swift [5948]
Date/Time: 2017-12-27 19:50:19.0831 +0800
Launch Time: 2017-12-27 17:39:11.6231 +0800
OS Version: iPhone OS 11.1.2 (15B202)
Baseband Version: 4.00.01
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000184f49348 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018505d344 pthread_kill$VARIANT$mp + 396
2 libsystem_c.dylib 0x0000000184eb8fb8 abort + 140
3 libswiftCore.dylib 0x0000000104b84ef8 0x104894000 + 3084024
4 libswiftCore.dylib