ios app 真机crash报告分析

本文介绍如何在Mac上从iOS设备导出并解析Crash日志的方法,包括定位日志路径、设置Xcode环境变量及使用symbolicatecrash命令进行符号解析等步骤。

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

1.导出真机中的crash文件,自动导入的,mac下面的地址:~/Library/Logs/CrashReporter/MobileDevice

2.命令行操作

(1)sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/

(2)export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"
(3)/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash xxx.crash xxx.app.dSYM

注:xxx.crash为导出的crash文件,xxx.app.dSYM在xcode Product .app 右键Show in Finder中就可以找到,具体/Users/apple/Library/Developer/Xcode/DerivedData工程的子目录下面寻找。

转载于:https://www.cnblogs.com/geweb/archive/2013/04/06/3001822.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值