iOS program crash reporting management solution (Crashlytics in 2014-09-24)

Source: Internet
Author: User

Pre-research crashlytics in 2014-09-24
1: Principle of implementation
In principle, crashlytics through the following 2 steps to complete the crash log upload and analysis:
(1) To provide the application SDK, you need to call its SDK when the app launches to set up your app. The SDK is integrated into your app to complete the collection and uploading of crash information.
(2) Modify the project's compilation configuration, add a piece of code, after each project you compile, upload the project corresponding to the dSYM file. Students who have studied manual analysis of crash logs should know that only through this file can the crash log be restored to a readable call stack message.
2: How to test
(1) Add the following code to the Applicationdidfinishlaunching method.
’
As close as possible to the top of your applicationdidfinishlaunching method, but after all other third-party SDKs
[Crashlytics sharedinstance].debugmode = YES;
[Crashlytics startwithapikey:@ "97D8A33C450F2337FB632C82C4ADEBE3088CC0CD"];
(2) Add to other pages
[[Crashlytics sharedinstance] crash]; or int *x = NULL; *x = 42;
3: Places to be aware of
(1) Just make sure you install US correctly (as close as possible to the top of your applicationdidfinishlaunching method, but after all other third-party SDKs).

(2) After the application is released, the relevant records can be viewed and modified in crashlytics background.

(3) Modify the compilation configuration of the project, add a piece of code, and upload the project's corresponding dSYM file (based on the shell script that adds the dependencies for the static library: Run script Build phase-run script-Shell) after each project compilation is completed
(4) when the "package (Archive)" Command of Xcode is a version of release (Ad hoc or App Store), the corresponding Xxx.app and Xxx.dsym files are saved (can be searched. dSYM keywords)
(5) Each release version should be careful to back up a copy of the corresponding. dsym file.

4:crashlytics provides a 3rd log mechanism, custom logging, custom keystrokes and user information. (Note: After calling Crashlytics Startwithapikey)
(1) In order to better respond to customer support queries, it is often helpful to know which users experience a given crash
(void) Setuseridentifier: (NSString *) identifier; devicetoken+ Mobile phone Number
(2) If you want to take advantage of the Advanced User Identifier feature, you can also use two:
+ (void) Setusername: (NSString *) name;
+ (void) Setuseremail: (NSString *) email;

5: Other Programs

(1) Friends League SDK

(2) Cloud Test SDK

iOS program crash reporting management solution (Crashlytics in 2014-09-24)

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.