GithubHelp home page GithubHelp logo

somerandomiosdev / symbolicate Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 9 KB

Utility for symbolicating crash logs for iOS, macOS, tvOS, and watchOS

License: MIT License

Swift 99.30% Shell 0.70%
hacktoberfest symbolicate dsym dsym-files crash-logs symbolicating-logs

symbolicate's Introduction

Symbolicate

License MIT Swift

Symbolicate is a command line utility for symbolicating logs using DWARF/dSYM files

Installation

Using Mint

mint install SomeRandomiOSDev/Symbolicate
symbolicate <options>

Using Swiftbrew

swift brew install SomeRandomiOSDev/Symbolicate
symbolicate <options>
git clone "https://github.com/SomeRandomiOSDev/Symbolicate.git"
cd Symbolicate
./symbolicate <options>

Use Case

If you choose not to upload your applications' dSYM files along with your application to App Store Connect the crash logs that you receive for your application won't be symbolicated. Even when uploading, the symbolification process (at least from what I've observed) doesn't properly symbolicate the crash logs 100% of the time. This makes things particularly difficult to track down the source of the issue.

This utility simplifies the process of manually symbolicating the crash logs in any case where the crash logs weren't properly symbolicated. Using this utility can convert a log like this:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   symbolicate             0x000000010d6b46ef 0x10d63c000 + 493295
1   symbolicate             0x000000010d641548 0x10d63c000 + 21832
2   symbolicate             0x000000010d641e5d 0x10d63c000 + 24157
3   symbolicate             0x000000010d6416d0 0x10d63c000 + 22224
4   symbolicate             0x000000010d66fedd 0x10d63c000 + 212701
5   symbolicate             0x000000010d6702c6 0x10d63c000 + 213702
...

into:

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   symbolicate             0x0000000109a146ef closure #1 in variable initialization expression of static Main.logArgument + 239
1   symbolicate             0x00000001099a1548 Argument.parse(_:) + 504
2   symbolicate             0x00000001099a1e5d protocol witness for ArgumentDescriptor.parse(_:) in conformance Argument<A> + 13
3   symbolicate             0x00000001099a16d0 protocol witness for ArgumentDescriptor.parse(_:) in conformance Argument<A> + 16
4   symbolicate             0x00000001099cfedd closure #1 in command<A, B, C, D, E>(_:_:_:_:_:_:) + 1405
5   symbolicate             0x00000001099d02c6 partial apply for closure #1 in command<A, B, C, D, E>(_:_:_:_:_:_:) + 86
...

Usage

./symbolicate [--verbose, -v] [--arch] [--output] log dysm...
  • log: the path to the log file to symbolicate.

  • dysm: one or more dSYM files to use for symbolicating the log.

  • --verbose or -v: Enable verbose logging.

  • --arch: (Optional) The architecture of the dSYM to use for symbolicating the log. If not provided, this defaults to arm64.

  • --output: The file to write the symbolicated log to. If not provided, the symbolicated log is written back to the input file.

Contributing

If you have need for a specific feature or you encounter a bug, please open an issue. If you extend the functionality of Symbolicate yourself or you feel like fixing a bug yourself, make your changes in a fork and submit a pull request.

TODO

  • Dynamically determine architecture based on the log file

Author

Joseph Newton, [email protected]

License

Symbolicate is available under the MIT license. See the LICENSE file for more info.

symbolicate's People

Contributors

somerandomiosdev avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.