cd /.xcarchive文件/dSYMs
dwarfdump --uuid appName.app.dSYM
dwarfdump --arch=arm64 --lookup 0x10047ba74 (闪退方法的地址) sdjj.app.dSYM/Contents/Resources/DWARF/sdjj
---------------------------------------------------------------------
File: sdjj.app.dSYM/Contents/Resources/DWARF/sdjj (arm64)
----------------------------------------------------------------------
Looking up address: 0x000000010047ba74 in .debug_info... found!
0x0026a9e2: Compile Unit: length = 0x00000d67 version = 0x0002 abbr_offset = 0x00000000 addr_size = 0x08 (next CU at 0x0026b74d)
0x0026a9ed: TAG_compile_unit [121] *
AT_producer( "Apple LLVM version 9.1.0 (clang-902.0.39.2)" )
AT_language( DW_LANG_ObjC )
AT_name( "/Users/yangzhiqiang/Project/Shangou/Mic/Main/Cart/View/CartNoteCell.m" )
AT_stmt_list( 0x001a1533 )
AT_comp_dir( "/Users/yangzhiqiang/Project/Shangou" )
AT_APPLE_major_runtime_vers( 0x02 )
AT_low_pc( 0x000000010047aff8 )
AT_high_pc( 0x000000010047de0c )
0x0026ac0a: TAG_subprogram [127] *
AT_low_pc( 0x000000010047aff8 )
AT_high_pc( 0x000000010047bd38 )
AT_frame_base( reg29 )
AT_object_pointer( {0x0026ac28} )
AT_name( "-[CartNoteCell awakeFromNib]" )
AT_decl_file( "/Users/yangzhiqiang/Project/Shangou/Mic/Main/Cart/View/CartNoteCell.m" )
AT_decl_line( 25 )
AT_prototyped( 0x01 )
Line table dir : '/Users/yangzhiqiang/Project/Shangou/Mic/Main/Cart/View'
Line table file: 'CartNoteCell.m' line 76, column 5 with start address 0x000000010047ba2c
Looking up address: 0x000000010047ba74 in .debug_frame... not found.
Line table dir:
Line table file:
这两行告诉我们闪退的目录和对应的文件
参考文章iOS分析崩溃日志
网友评论