美文网首页
手动符号化Crash文件

手动符号化Crash文件

作者: 执拗的男孩 | 来源:发表于2023-11-13 19:26 被阅读0次
    处理手机崩溃日志文件.ips或者.ips.beta,需要用到Xcode自带的工具symbolicatecrash;
    简单配置,在.zshrc中添加下代码,然后执行source ~/.zshrc即可
    export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
    alias symbolicatecrash="/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash"
    
    简单查看下symbolicatecrash操作
    ➜  Crash symbolicatecrash -h
    usage:
        /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash [--help] [--dsym=DSYM] [--output OUTPUT_FILE] <LOGFILE> [SYMBOL_PATH ...]
    
        <LOGFILE>                   The crash log to be symbolicated. If "-", then the log will be read from stdin
        <SYMBOL_PATH>               Additional search paths in which to search for symbol rich binaries
        -o | --output <OUTPUT_FILE> The symbolicated log will be written to OUTPUT_FILE. Defaults to "-" (i.e. stdout) if not specified
        -d | --dsym <DSYM_BUNDLE>   Adds additional dSYM that will be consulted if and when a binary's UUID matches (may be specified more than once)
        -h | --help                 Display this help message
        -v | --verbose              Enables additional output
    
    实操:
    1、常见文件夹Crash
    2、将APP的Crash文件(ips或者ips.beta)和APP对应的DSYM文件拷贝到Crash文件夹下
    3、执行命令进行手动符号化
    ➜  Crash symbolicatecrash --dsym dSYMs/Test.app.dSYM Test-2023-11-07-114904.ips.beta -o crashTest.crash
    

    相关文章

      网友评论

          本文标题:手动符号化Crash文件

          本文链接:https://www.haomeiwen.com/subject/ruydwdtx.html