IPhone crash log analysis tool symbolicatecrash usage

Source: Internet
Author: User

IPhone crash log analysis tool symbolicatecrash

 

Symbolicatecrash is an analysis tool that comes with xcode. you can locate the crash location through the crash log on the machine and the. dsym file of the application, and replace the address in the crash log with the corresponding location of the Code.

Effect:

Before analysis:

Thread 0 name: Dispatch queue: COM. Apple. Main-Thread
Thread 0 crashed:
0 corefoundation
0x3723b8700x37180000 + 768112
1 corefoundation
0x37196648 0x37180000 + 91720
2 corefoundation
0x37181e90 0x37180000 + 7824
3 corefoundation
0x3718bb74 0x37180000 + 47988
4 corefoundation
0x3718ba8e 0x37180000 + 47758
5. uikit
0x30f0f866 0x30f0a000 + 22630
6. uikit
0x30f0f98a 0x30f0a000 + 22922
7. uikit
0x30f0f98a 0x30f0a000 + 22922
8. uikit
0x310cdf3e 0x30f0a000 + 1851198
9 uikit
0x30f0ecb6 0x30f0a000 + 19638
10 uikit
0x30fe7b80 0x30f0a000 + 908160
11. uikit
0x30fe7ab2 0x30f0a000 + 907954
12 uikit
0x30f5f452 0x30f0a000+ 349266
13. uikit
0x30fbf936 0x30f0a000 + 743734

After analysis:

0 corefoundation
0x3723b870 ___ forwarding ___ + 136
1 corefoundation
0x37196648 _ cf_forwarding_prep_0 + 40
2 corefoundation
0x37181e90 cfretain + 76
3 corefoundation
0x3718bb74 + [_ nsarrayi _ new:] + 48
4 corefoundation
0x3718ba8e-[_ nsplaceholderarray initwithobjects: Count:] + 294
5. uikit
0x30f0f866-[uiview (hierarchy) _ makesubtreeperformselector: withobject: copysublayers:] + 70
6. uikit
0x30f0f98a-[uiview (hierarchy) _ makesubtreeperformselector: withobject: copysublayers:] + 362
7. uikit
0x30f0f98a-[uiview (hierarchy) _ makesubtreeperformselector: withobject: copysublayers:] + 362
8. uikit
0x310cdf3e _ uiviewwillberemovedfromsuperview + 298
9 uikit
0x30f0ecb6-[uiview (hierarchy) removefromsuperview] + 50
10 uikit
0x30fe7b80-[uitableviewcell removefromsuperview] + 124
11. uikit
0x30fe7ab2-[uitableview (_ uitableviewprivate) _ reusetableviewcell:] + 398
12 uikit
0x30f5f452-[uitableview reloaddata] + 530
13. uikit
0x30fbf936-[uitableview _ selectrowatindexpath: animated: scrollposition: policydelegate:] + 938

 

Usage:

1. Find the symbolicatecrash file.

After xcode 4.3

/Applications/xcode. APP/contents/developer/platforms/iphoneos. Platform/developer/library/privateframeworks/dtdevicekit. Framework/versions/A/resources/

Before xcode 4.3

/Developer/platforms/iphoneos. Platform/developer/library/privateframeworks/dtdevicekit. Framework/versions/A/resources/symbolicatecrash

(Appendix: Display hidden files in MAC system

Enter the following command in the terminal

Command for displaying hidden Mac files: Defaults write com. Apple. Finder appleshowallfiles
-Bool true

Command for hiding Mac hidden files: Defaults write com. Apple. Finder appleshowallfiles
-Bool false

After entering the carriage return, restart the finder: The Apple icon in the upper left corner --> force exit --> finder --> restart

)

2. The symbolicatecrash file is independent of xcode and can be copied for use. The attachment is the symbolicatecrash file in xcode4.5.

3. Enter the command in the terminal. Command Format: symbolicatecrash. Crash
. Dsym>
AA. Log

That is: symbolicatecrash + crash log +. dsym file corresponding to the app +> + output file

 

4. If the message "Export _dir" is not defined

 

After xcode4.3, enter: Export export _dir =/applications/xcode. APP/contents/developer in the terminal.

 

Before xcode4.3, enter: Export export _dir =/applications/xcode. app in the terminal.

 

Suggestion: Back up the corresponding. dsym file after each version is created. After the corresponding version crashes, you can analyze the crash log based on this file.

 

-By yuzhang2

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.