Skip to main content

apple-symbols

Turn addresses of Apple devices into symbol names, in pure Python:

  • Userland: against an Xcode DeviceSupport Symbols tree, which holds the dyld shared cache of a device split into one Mach-O per image.
  • Kernel: against a kernelcache. Released kernelcaches are stripped, so naming their functions takes ipsw and its symbolication signatures.

It only reads files: getting the symbols of a device onto the host is up to tools such as Xcode or pymobiledevice3 developer fetch-symbols download.

Installation

python3 -m pip install apple-symbols

Usage

from apple_symbols import DeviceSupportSymbols, find_device_support_symbols

# ~/Library/Developer/Xcode/iOS DeviceSupport/iPhone17,3 26.4 (23E246)/Symbols
root = find_device_support_symbols("iPhone17,3", "23E246")
symbols = DeviceSupportSymbols.load(root)

# By the UUID of an image and an offset into it, as crash reports give
image = symbols.image_by_uuid("11111111-2222-3333-4444-555555555555")
print(symbols.symbolicate(image, image.vmaddr + 0x1234))  # (symbol name, offset from it) or None

# By an unslid address of the shared cache
image = symbols.image_by_address(0x180012345)

Apple ships some images of the shared cache with no local symbols at all. The functions of such an image which implement Objective-C methods are named after its Objective-C metadata instead, e.g. -[APSigningAuthority setupWithCompletion:completion:]; its other functions stay unnamed.

from pathlib import Path

from apple_symbols import KernelSymbols

kernel = KernelSymbols.load(Path("kernelcache.release.iphone17"), signatures=Path("symbolicator/kernel"))
image = kernel.image_by_uuid("12121212-3434-5656-7878-909090909090")
print(image.name, kernel.symbolicate(image.text_exec + 0x1234))  # addresses are unslid

Indexing a tree or a kernelcache takes a while, so the result is kept in $XDG_CACHE_HOME/apple-symbols (~/.cache/apple-symbols by default) and reused until the files change. Both load() methods take an index_dir to keep it elsewhere.

apple_symbols.testing builds minimal Mach-O files and filesets, for testing code which symbolicates.

Metadata

Release files for apple-symbols 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apple-symbols 0.0.2
File Size Uploaded Provenance Actions
apple_symbols-0.0.2.tar.gz 25.5 kB With provenance Details for apple_symbols-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apple-symbols 0.0.2
File Interpreter ABI Platform Actions
apple_symbols-0.0.2-py3-none-any.whl Python 3 none any Details for apple_symbols-0.0.2-py3-none-any.whl

Total release size: 46.2 kB

Release files / apple_symbols-0.0.2.tar.gz

Download URL apple_symbols-0.0.2.tar.gz
Size 25.5 kB
Tags Source
SHA-256 checksum
How to use checksums
9ae73e9064e9d5df5cf2f2cb89943066db62bfef8266e89780509a1ac0312bbf
BLAKE2b-256 checksum
How to use checksums
e22d34dad6a661ffc823f8528e61d515eafc6b0f0047a1dfb86a03c74baf755b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / apple_symbols-0.0.2-py3-none-any.whl

Download URL apple_symbols-0.0.2-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e1401c0d9202ae4e0c9389994c3bcde9b0444837965f32f16b0b1f88155aa1d
BLAKE2b-256 checksum
How to use checksums
5f2255d27c1561c9d48c6f12367715fbda0573d52b0a778bcccdbe976e88807a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for apple-symbols 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apple_symbols-0.0.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page