Reliable, open-source crash reporting for iOS, macOS and tvOS
Перейти к файлу
Anna Kocheshkova 854f5f9273 Remove "Catch" from 3rd party notices 2019-10-18 17:04:14 +03:00
CrashReporter.xcodeproj Remove extra file 2019-10-18 17:01:42 +03:00
Dependencies Remove extra gitignore 2019-10-14 12:18:50 +03:00
Documentation/Crash Log Format Rename to 'Crash Log Format' 2008-12-16 07:31:54 +00:00
Other Sources Do not crash on null values 2019-10-14 15:57:48 +03:00
Resources use generated protobufer 2019-10-11 17:26:50 +04:00
Source Whitespace change 2019-10-18 16:45:36 +03:00
contrib Latest updates from Andreas Linde. 2009-04-16 20:20:06 +00:00
.gitignore Fix docs generation 2019-10-16 14:37:07 +03:00
.gitmodules protobuf-c as submodule 2019-10-11 14:15:28 +04:00
CHANGELOG.md Merge readme and revert the prefix 2019-10-18 16:08:11 +03:00
Doxyfile Fix docs generation 2019-10-16 14:37:07 +03:00
LICENSE Update the LICENSE copyrights for 2014. 2014-02-12 12:46:39 -05:00
Readme.md Merge readme and revert the prefix 2019-10-18 16:08:11 +03:00
ThirdPartyNotices.txt Remove "Catch" from 3rd party notices 2019-10-18 17:04:14 +03:00

Readme.md

PLCrashReporter

Reliable, open-source crash reporting for iOS, Mac OS X and tvOS.

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 and check out the official PLCrashReporter documentation.

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.

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-Fork.git
git submodule update --init --recursive