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

From a symbolicator server

symbolicator-server holds the symbols of scanned IPSWs. pip install apple-symbols[remote]; the classes have the same methods as the local ones (UserlandSymbolSource, KernelSymbolSource):

from symbolicator_server.client import SymbolicatorClient

from apple_symbols.remote import RemoteDeviceSymbols, RemoteKernelSymbols

client = SymbolicatorClient.connect("http://localhost:3993")
symbols = RemoteDeviceSymbols.for_build(client, "iPhone17,3", "23E246")
kernel = RemoteKernelSymbols.for_kernelcache(client, "12121212-3434-5656-7878-909090909090")
# a stackshot does not tell its kernelcache, only its kernel images
kernel = RemoteKernelSymbols.for_build(client, "iPhone17,3", "23E246", image_uuids)

Those fetch the list of every image up front, and every function of an image the first time an address in it is looked up: megabytes to name a few frames. A RemoteQuery names all the frames of a report with one request instead. Run what names them twice: first with its userland and kernel, which name nothing and only note what they are asked, then with what fetch() gets for all of it.

from apple_symbols.remote import RemoteQuery

query = RemoteQuery(client, "iPhone17,3", "23E246")
name_frames(report, query.userland, query.kernel)  # names nothing yet
name_frames(report, *query.fetch())

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.5

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.5
File Size Uploaded Provenance Actions
apple_symbols-0.0.5.tar.gz 33.9 kB With provenance Details for apple_symbols-0.0.5.tar.gz

Built distribution (wheel)

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

Total release size: 60.7 kB

Release files / apple_symbols-0.0.5.tar.gz

Download URL apple_symbols-0.0.5.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0e20c181de82bc80d6cc712a1138475f9454087b63ecc1cb731fe303dd9b16b0
BLAKE2b-256 checksum
How to use checksums
5aa78cc9c036e590f155ef172370f12c6c8551d74b8994f7011328814d245686
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 29, 2026.

Transparency log

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

Download URL apple_symbols-0.0.5-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2cb80022e7e296b48252560925216334dc3b19f3909698cbd053ffd6a2e85801
BLAKE2b-256 checksum
How to use checksums
edab187c7616058b6f1f03fd45095bb6f0b06093c8fbf36d0ab9b0526375b5b7
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 29, 2026.

Transparency log

Security for apple-symbols 0.0.5

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.5.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 29, 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.

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