我正在尝试实现MetricKit,以便稍后可以分析MXCrashDiagnostic
和MXHangDiagnostic
报告。然而,当我触发测试崩溃时,以下是我得到的MXCrashDiagnostic
示例:
ente "timeStampEnd": "2021-06-07 15:59:00 +0000",
"crashDiagnostics": [
{
"version": "1.0.0",
"callStackTree": {
"callStacks": [
{
"threadAttributed": true,
"callStackRootFrames": [
{
"binaryUUID": "DC2EACEA-3D9C-3409-96C2-2DF9C89AD19D",
"offsetIntoBinaryTextSegment": 6917586944,
"sampleCount": 1,
"subFrames": [
{
"binaryUUID": "DC2EACEA-3D9C-3409-96C2-2DF9C89AD19D",
"offsetIntoBinaryTextSegment": 6917586944,
"sampleCount": 1,
"subFrames": [
{
"binaryUUID": "DC2EACEA-3D9C-3409-96C2-2DF9C89AD19D",
"offsetIntoBinaryTextSegment": 6917586944,
"sampleCount": 1,
"subFrames": [
{
"binaryUUID": "35463E49-9534-3644-B993-2A73C287A143",
"offsetIntoBinaryTextSegment": 4329963520,
"sampleCount": 1,
"binaryName": "demo",
"address": 4333717704
}]
我试图通过执行以下命令来解析数据:
atos -arch arm64e -o /Users/xxx/Downloads/\!dsym-4/demo.app.dSYM/Contents/Resources/DWARF/demo 4333717704
但我找不到崩溃堆栈,返回的结果是4333717704
DSYM文件的UUID为UUID: 35463E49-9534-3644-B993-2A73C287A143 (arm64) /Users/xxx/Downloads/!dsym-3/demo.app.dSYM/Contents/Resources/DWARF/demo
如何对MetricKit返回的堆栈进行符号化?