iphone :How to do symobolication of crash report?

前端 未结 2 916
耶瑟儿~
耶瑟儿~ 2020-12-22 10:52

In my app i got crash report

Exception Type:  EXC_BAD_ACCESS (SIGBUS)

Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000

Crashed Thread:  7

In Thread         


        
相关标签:
2条回答
  • 2020-12-22 11:35

    We need a file called symbolitecrash to process this file. This file can be located in /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources

    1. Open the Terminal.

    2. Copy symbolitecrash file to the default location shown when the terminal is opened.

      eg. Terminal window :-

      Last login: Wed Jun 22 15:28:21 on ttys000 UserMM:~ user$

      Here, the default location is the directory "user".

    3. Running this script with the -h option provides the minimal help:

      UserMM:~ user$ symbolitecrash -h

      usage:

      /usr/local/bin/symbolicatecrash [-Ah] [-o ] LOGFILE [SYMBOL_PATH ...]

      Symbolicates a crashdump LOGFILE which may be "-" to refer to stdin. By default,

      all heuristics will be employed in an attempt to symbolicate all addresses.

      Additional symbol files can be found under specified directories.

      Options:

      -A Only symbolicate the application, not libraries

      -o If specified, the symbolicated log will be written to OUTPUT_FILE (defaults to stdout)

      -h Display this message

      -v Verbose

    4. Place the .crash file in the same location where symbolitecrash file is copied.

    5. To add symbols to the crash log you need the dSYM file generated by the linker when you compiled your application for AppStore. In other words, when you build for AppStore you should keep the dSYM package in a safe place backed up by Time Machine. This is very important. You should keep a copy of the dSYM for each version of your application ever shipped. If you have the package, translating code offsets to function names with line numbers has never been easier:

    $ symbolicatecrash MiMo_2011-06-22-143801_Anands-Ipod.crash myApp.app.dSYM > myApp_2011-06-22-143801_Anands-Ipod1.crash

    myApp_2011-06-22-143801_Anands-Ipod1.crash is the new crash file generated in the same location.

    Here is the result:

    Thread 0 Crashed:
    0   libobjc.A.dylib           0x300c87ec objc_msgSend + 20
    1   myApp                      0x00006434 -[BoardView setSelectedPiece:] (BoardView.m                              :321)
    
    0 讨论(0)
  • 2020-12-22 11:38

    I also described how to do this step by step in this post

    It worked fine for me:

    Crash Symbolized http://k.minus.com/jk4X2obwZMI7j.png

    0 讨论(0)
提交回复
热议问题