iOS-----analyzing iOS Crash files: 3 ways to symbolize iOS crash files

Source: Internet
Author: User

IOS Crash Analysis (text one)-start 1. Noun explanation 1. Uuid

A string that contains at least one UUID for each executable file or library file on iOS. The purpose is to uniquely identify this file.

2. Dwarfdump

Apple provides command-line tools, some of which are the ability to view the UUID of an executable file or library file

3. Symbolicatecrash

An apple-provided script. You can symbolize crash logs as readable stack information.

4. Atosl

Apple provides command-line tools to convert crash base_address and load_address into readable stack information. Symbolicatecrash is symbolized using this command.

2. How to get Crash Log 1. Simulator crashes

After the simulator crashes, you can find the crash log under "~/library/logs/diagnosticreports/".

2. Real machine crashes 1. Xcode Get Logs

After the phone and Mac are connected, open Xcode Select window to enter Organizer (the shortcut is Shift-cmd-2), and on the Organizer window, select the Devices tab bar. On the left navigation panel, select Device Logs, as shown in:

You can see the crash log by selecting the Device Logs menu for the corresponding devices.
Open the device logs menu at the top of the diagram to see the crash logs for iOS devices that your Mac has synced.

2. Get logs manually

Log storage Path ~/library/logs/crashreporter/mobiledevice/device_name

Device_name is the device you want to see.
Here is the information for my terminal output:

?  DiagnosticReports  pwd/Users/zhuolaiqiang/Library/Logs/DiagnosticReports?  DiagnosticReports  lsQQ_2014-05-30-132026_Anyhacker.crash            atosl_2014-06-04-151416_Anyhacker.crash         eclipse_2014-05-29-192522_Anyhacker.crash       eclipse_2014-06-02-145714_Anyhacker.crashSogouInput_2014-05-29-151154_Anyhacker.crash    atosl_2014-06-04-151447_Anyhacker.crash         
3. Symbolization 1. Use Xcode to symbolize

After the app is crash on the real device, we can connect the iOS device to the Mac and then open the Xcode Select window to enter Organizer (the shortcut is Shift-cmd-2), and on the Organizer window, select the device Logs tag, and then find the corresponding app log file:

This will allow you to see the signed log.

2. Using the Symbolicatecrash script to symbolize

Symbolicatecrash is the Scripting Tool (Perl) that Apple provides with Xcode to symbolize the crash log.
Symbolicatecrash Storage Path is
"/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/library/privateframeworks/ Dtdevicekitbase.framework/versions/a/resources/symbolicatecrash ".

Use this method:
Symbolicatecrash Xx.crash xx. DSYM
Xx.crash: A symbolic crash log file is required
Xx. DSYM: DSYM file generated when compiling the app, this file can not be specified, Symbolicatecrash will automatically search and match the file on the hard disk (if your hard disk memory has this file)

iOS-----analyzing iOS Crash files: 3 ways to symbolize iOS crash files

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.