Reliable, open-source crash reporting for iOS, macOS and tvOS
Перейти к файлу
Anna Kocheshkova 40989bc732 Fix warnings 2020-04-28 19:34:57 +03:00
CrashReporter.xcodeproj Fix proj 2020-04-28 18:29:15 +04:00
Dependencies Add CG manifest for protobuf-c 2020-04-28 11:09:27 +03:00
Documentation/Crash Log Format Rename to 'Crash Log Format' 2008-12-16 07:31:54 +00:00
Other Sources Fix visibility block 2020-04-28 18:48:42 +04:00
Resources Move utils and tests out of source folder 2020-04-27 12:49:57 +03:00
Scripts Extract scripts from project file 2020-04-27 20:35:40 +03:00
Source Fix warnings 2020-04-28 19:34:57 +03:00
Tests Remove bridge, remove nil check, remove extra project references. 2020-04-28 16:36:53 +03:00
Tools/CrashViewer Merge branch '1.2-with-master' into prepre-for-merge 2019-10-18 17:52:26 +03:00
.gitignore Fix docs generation 2019-10-16 14:37:07 +03:00
CHANGELOG.md Update Change Log 2020-03-17 15:15:02 -07:00
Doxyfile Fix docs generation 2019-10-16 14:37:07 +03:00
LICENSE Add MS copyright 2020-03-06 10:12:59 -08:00
PLCrashReporter.podspec Bump minor version to 1.5.1 2020-03-17 15:18:49 -07:00
README.md Add CocoaPods badge in README.md 2020-03-03 10:58:56 -08:00
ThirdPartyNotices.txt Remove "Catch" from 3rd party notices 2019-10-18 17:04:14 +03:00

README.md

CocoaPods

PLCrashReporter

PLCrashReporter is a reliable open source library that provides an in-process live crash reporting framework for use on iOS, macOS and tvOS. The library detects crashes and generates reports to help your investigation and troubleshooting with the information of application, system, process, thread, etc. as well as stack traces.

The easiest way to use PLCrashReporter is by using AppCenter. However, if you want to use PLCrashReporter directly, grab the latest release at https://github.com/Microsoft/PLCrashReporter/releases.

Features

  • Uses only supported and public APIs/ABIs for crash reporting.
  • The most accurate stack unwinding available, using DWARF and Apple Compact Unwind frame data.
  • First released in 2008, and used in hundreds of thousands of apps. PLCrashReporter has seen a tremendous amount of user testing.
  • Does not interfere with debugging in lldb/gdb
  • Easy to integrate with existing or custom crash reporting services.
  • Backtraces for all active threads are provided.
  • Provides full register state for the crashed thread.

Prerequisites

  • Xcode 10 or above.
  • Minimum supported platforms: iOS 8, macOS 10.7, tvOS 9.

Decoding Crash Reports

Crash reports are output as protobuf-encoded messages, and may be decoded using the CrashReporter library or any Google Protobuf decoder.

In addition to the in-library decoding support, you may use the included plcrashutil binary to convert crash reports to apple's standard iPhone text format. This may be passed to the symbolicate tool.

./bin/plcrashutil convert --format=iphone example_report.plcrash | symbolicatecrash Future library releases may include built-in re-usable formatters, for outputting alternative formats directly from the phone.

Building

Prerequisites

To build

  • Open a new window for your Terminal.

  • Go to PLCrashReporter's root folder and run

    xcodebuild BITCODE_GENERATION_MODE=bitcode OTHER_CFLAGS="-fembed-bitcode" -configuration Release -target 'Disk Image'
    

    to create binaries for all platforms.

  • Verify that your iOS and tvOS binaries have Bitcode enabled by running otool -l build/Release-appletv/CrashReporter.framework/Versions/A/CrashReporter | grep __LLVM (adjust the path to the binary as necessary). If you see some output, it means the binary is Bitcode enabled.

Contributing

We are looking forward to your contributions via pull requests.

To contribute to PLCrashReporter, you need the tools mentioned above to build PLCrashReporter for all architectures.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Checking out the repository

PLCrashReporter has a dependency on Protocol Buffers implementation in C as a git submodule. Use below command to clone PLCrashReporter repository or update the repository if you have already cloned it.

git clone --recursive https://github.com/microsoft/plcrashreporter.git
git submodule update --init --recursive