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)

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

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.4
File Size Uploaded Provenance Actions
apple_symbols-0.0.4.tar.gz 30.0 kB With provenance Details for apple_symbols-0.0.4.tar.gz

Built distribution (wheel)

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

Total release size: 54.4 kB

Release files / apple_symbols-0.0.4.tar.gz

Download URL apple_symbols-0.0.4.tar.gz
Size 30.0 kB
Tags Source
SHA-256 checksum
How to use checksums
537a3cfdf341b0c13059f8d89a23b5869473d5dabbd68697ea3f2a3cd971a094
BLAKE2b-256 checksum
How to use checksums
b2c8c5d11c16da38ebdff069d2c98047594bd930536519b5d30b679901fb287e
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 26, 2026.

Transparency log

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

Download URL apple_symbols-0.0.4-py3-none-any.whl
Size 24.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d60f4406ed7f7e2f02f46d5093d66e324aea318bf098340ab10461cd5ed24f
BLAKE2b-256 checksum
How to use checksums
fe0664a412f4a2dd6262fa30462e673aa686436e9fd22ff7e7b028b5ec542ea4
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 26, 2026.

Transparency log

Security for apple-symbols 0.0.4

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.4.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 26, 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