IOS uses fabric to record the crash log process, fabriccrash

Source: Internet
Author: User

IOS uses fabric to record the crash log process, fabriccrash

Previously, umeng recorded the app crash and found that some crash records could not clearly locate the detailed location and decided to use fabric for crash records. There were also records on the Internet, the content of some details is unclear, so I cannot record the pitfalls I encountered today;

Visit the official website address (to register an account ):

Https://fabric.io

Download client address:

Https://fabric.io/downloads

1: After successful registration and download the client software, you can log on to the client and select the project file to be added.

 

2: Use the client to generate scripts

Because the fabric framework is directly pulled into the project, the generated script is of this style. If the Pod is used, the script will be different; the script will be introduced in the Info. plist generates a configuration purchase order;

3: copy the script to the relevant area of the XCode project.

Note: when there are multiple targets in one project, you need to set the run Script for each targets to ensure that the info. plist file in each targets has the corresponding configuration; otherwise, an error is reported during running;

4: introduce the corresponding framework file and pull it directly from the client to the project.

Note: In addition to pulling fabric directly into the project reference, you can also use the POD to manage the plug-in, but the content format of the script is different;

5. Introduce the file in the project, initialize the framework, register and specially compile the error code.

6. Run the last step as prompted by the client. Click Done To go back and wait for the program to be released.

7: Return to the XCODE project and release the project.

Note: Select Release and perform Archive;

8: After the Archive is successfully published, the client will prompt whether to upload the dsym.

 

Note: Select Distribute to go to the next page. You can enter the email address for receiving the notification, which can be received by multiple people. Then, enter the prompt in the next step and start uploading the dysm file;

9: Check the error information after the operation is successful.

Note: in fact, the fabric principle is to locate the published dsym after it is uploaded and display the wrong location. If the client does not need to upload the data, you can also compress the dysm generated by the release into a package after adding the script, and then perform operations on the corresponding project on the official website, such:

Therefore, dysm is very important for locating errors at the time of release. Remember to save it;

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.