How to analyze Post app crash logs with friends league-B

Source: Internet
Author: User

To parse the crash log, you first need to keep the compiled. xcarchive file at the time of publication. This file contains the. dSYM file.

My general practice is, after the successful release, put this file. Xcarchive directly into the version branch of the code repository, so it won't be lost.

Where is this file? Open the Xcode-> menu Window->organizer, and Right-click on the compiled file to open it.

Two ways to be more troublesome.

The first method:

Using the Dwarfdump command

Dwarfdump--uuid Xx.app.dSYM is used to get the app's UUID.
Dwarfdump--lookup 0x12b45d-arch armv7 Xx.app.dSYM make the wrong log to understand the corresponding memory address to the correct place.
If the Dwarfdump command is not available at the beginning, you need to install command line Tools, which can be downloaded in the settings (cmd+ "," Open settings). In addition, it must be entered. The folder where the dSYM is located.

Use dwarfdump to install command line Tools,xcode to set up the download. and need to enter. dSYM in the folder where you are working.


The second method:

Using the Xcrun Atos command

Atos-o Yourapp.app.dsym/contents/resources/dwarf/yourapp 0x00062867

The following key recommendations of this method, convenient and fast

Third method: Visual Tools

This is the crash log that I've counted in my project, and if you look at those log reports, you won't know what line of code is causing it.

To use this method, drag the corresponding version of the. xcarchive file to the tool. Compare the UUID to the Friend Union log, and copy the wrong address information to the arrow. Click Analyze.

You can get the exact code crash location. It's simple.

DSYM File Analysis Tool http://answerhuang.duapp.com/index.php/2014/07/06/dsym_tool/

This is the blogger Answer-huang has developed a tool that is designed to quickly locate the crash log code. Thank the man for providing such a handy tool.

The tool code is still open source: https://github.com/answer-huang/dSYMTools

Tool: Http://pan.baidu.com/s/1bnkxPvT

Baidu Network disk Easy failure, I upload csdn download, of course, is free of points downloaded.

Address: http://download.csdn.net/detail/totogo2010/8012367

Thanks for sharing

How to analyze Post app crash logs with friends league-B

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.