【常见异常】运行时常见错误快速查询dSYM

本文介绍了iOS应用中出现的一种常见崩溃原因:EXC_BAD_ACCESS,并提供了具体的崩溃日志示例。通过对日志的详细分析,指导开发者如何定位和解决此类问题。同时,还提供了查找真机crash日志的位置及一些分析工具的使用方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

###Mac crash dir

crash

//获取到真机的crash日志
~/Library/Logs/CrashReporter/MobileDevice

###crash1

error: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x74006300650076).
The process has been returned to the state before expression evaluation.
Jun 17 11:26:49 siri CHiQ电视[3284] <Error>: *** Terminating app due to uncaught exception 'signalRaisedException', reason: 'Application received signal SIGSEGV'
	*** First throw call stack:
	(0x22a2791b 0x221c2e17 0x22a27861 0xabc1e1 0x2275606f 0x14a7c64 0x92a173 0x93c977 0x946a89 0x946c59 0x135473 0x15b92d 0x14c8e3 0x15b86f 0x22595823 0x225a45e9 0x225a3fcd 0x22759b29 0x22759718)
Jun 17 11:26:49 siri CHiQ电视[3284] <Error>: *** Terminating app due to uncaught exception 'signalRaisedException', reason: 'Application received signal SIGSEGV'
	*** First throw call stack:
	(0x22a2791b 0x221c2e17 0x22a27861 0xabc1e1 0x2275606f 0x14a7c64 0x92a173 0x93c977 0x946a89 0x946c59 0x135473 0x15b92d 0x14c8e3 0x15b86f 0x22595823 0x225a45e9 0x225a3fcd 0x22759b29 0x22759718)
Jun 17 11:26:49 siri SpringBoard[48] <Warning>: HW kbd: Failed to set (null) as keyboard focus
Jun 17 11:26:49 siri mediaserverd[43] <Notice>: '' com.changhong.CHIQDIS1(pid = 3284) setting DiscoveryMode = DiscoveryMode_None, currentDiscoveryMode = DiscoveryMode_None
Jun 17 11:26:49 siri com.apple.xpc.launchd[1] (UIKitApplication:com.changhong.CHIQDIS1[0x7737][3284]) <Notice>: Service exited due to signal: Abort trap: 6
Jun 17 11:26:49 siri SpringBoard[48] <Warning>: Application 'UIKitApplication:com.changhong.CHIQDIS1[0x7737]' crashed.
Jun 17 11:26:49 siri UserEventAgent[23] <Warning>: 6339100026255: id=com.changhong.CHIQDIS1 pid=3284, state=0
Jun 17 11:26:50 siri ReportCrash[3328] <Error>: assertion failed: 13F69: libsystem_trace.dylib + 15927 [FCFC8D6B-F8E1-3577-84A7-8A591C88D819]: 0x0
Jun 17 11:26:50 siri Unknown[3328] <Error>: 
Jun 17 11:26:50 siri ReportCrash[3328] <Warning>: os_activity_diagnostic_for_pid() failed!

###FYI链接

http://www.jianshu.com/p/12a2402b29c2

http://www.cocoachina.com/industry/20140514/8418.html

###Crash analyze tools

cd /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources 

☠️ symbolicatecrash

###? dYSM 分析

dSYM

// ?? 查看 dsym 的 uuid
dwarfdump --uuid crash.app.dSYM/Contents/Resources/DWARF/crash

xcrun atos -arch armv7 -o crash.app/mobileguard 0x00015000

https://docs.fabric.io/apple/crashlytics/missing-dsyms.html

https://developer.apple.com/library/content/technotes/tn2151/_index.html

转载于:https://my.oschina.net/kshopping/blog/686457

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值