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)