Skip to main content

Locate dSYM files given their UUID.

Project description

The LLDB debugger has built-in support for symbolication, and in particular on Mac OS X, for symbolicating OS X and iOS crash logs. Unfortunately, for some reason best known to Apple, in order to function, the lldb.macosx.crashlog module requires an external script to locate dSYM files from the UUIDs listed in the crash log. Quite why there couldn’t be a default implementation of this is beyond me.

Anyway, this package really just contains a single script, named dsymForUUID (the name that the crashlog module expects). The approach taken by the script is to use Spotlight to locate the dSYM file; if it finds, rather than a single dSYM, an .xcarchive, it will scan the dSYM files in the archive to locate the correct one, and will also search for the executable.

The expectation here is that you will have Xcode archives of your releases, in which case it should Just Work.

To use lldb.macosx.crashlog after installing this script, you can do the following:

(lldb) command script import lldb.macosx.crashlog
"crashlog" and "save_crashlog" command installed, use the "--help" option for detailed help
"malloc_info", "ptr_refs", "cstr_refs", and "objc_refs" commands have been installed, use the "--help" options on these commands for detailed help.
(lldb) crashlog /tmp/crash.log

While I haven’t tested this, you may also be able to use the dsymForUUID script with the DebugSymbols framework (part of Mac OS X) by doing something like:

defaults write com.apple.DebugSymbols DBGShellCommands -string /usr/local/bin/dsymForUUID

See the LLDB page about debug symbols on Mac OS X for more on this.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dsymForUUID-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file dsymForUUID-0.1.0.tar.gz.

File metadata

  • Download URL: dsymForUUID-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dsymForUUID-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58cbe2b6d02edadb58523bb68e5691cc2fe8ff4c3e31c3a8cddc89edb51f0394
MD5 260b5841e8dd9dfe150c869165bf0d0d
BLAKE2b-256 d42375f72b2ffffa025ab6f399f6e1d6a88de218d6cdf5c419556c8ee1bf69f4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page