Skip to content

pymobiledevice3 crash

List, pull, parse, watch and delete crash reports (and sysdiagnose archives).

clear

Delete all crash reports under a path (default: everything; no confirmation).

pymobiledevice3 crash clear [OPTIONS] [remote_file]

Arguments:

Argument Description
remote_file <str> Path under the crash reports directory to clear. [default: /]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-f, --flush Run flush first, so pending reports are deleted too.
-m, --match <str> Only remove what pull --match would pull for the given basename regex (without copying).

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

parse

Print a crash report from the device in a readable, parsed form.

Userland frames the report left unnamed, such as the user stacks of a panic report, are named using the Xcode device support of the device the report came from, which developer fetch-symbols download creates. Kernel frames are named given --kernelcache. --symbol-server asks a symbolicator server for both first. --process, --all and --running list the threads of the processes of a panic or a stackshot report (stacks-*.ips), --process and --all the call trees of a spindump report (*.diskwrites_resource-*.ips and the like), and --all every thread of a crash.

pymobiledevice3 crash parse [OPTIONS] {remote_file}

Arguments:

Argument Description
remote_file <str> Crash report path, relative to the crash reports directory. [required]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
--kernelcache <file> Kernelcache of the firmware the device ran (as found in its IPSW), to name the kernel images of a panic or a stackshot report.
--kernel-signatures <dir> Directory of ipsw kernel symbolication signatures (the kernel directory of https://github.com/blacktop/symbolicator), to name the kernel functions of a panic or a stackshot report. Requires --kernelcache and the ipsw tool.
-p, --process <list[str]> Name or pid of a process of a panic, a stackshot or a spindump report to print the call stacks of. May be given several times.
--all Print the call stacks of every process of a panic, a stackshot or a spindump report, or of every thread of a crash.
-r, --running Print the threads of a panic, a stackshot or a spindump report which were on a CPU.
--symbol-server <str> URL of a symbolicator server (https://github.com/netanelc305/symbolicator-server), e.g. http://localhost:3993, to name frames with the symbols it holds. Frames it does not name are left to the Xcode device support of this host and to --kernelcache. [env var: PYCRASHREPORT_SERVER]

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

parse-latest

Parse the latest top-level crash report(s) under a path, newest first.

pymobiledevice3 crash parse-latest [OPTIONS] [remote_file]

Arguments:

Argument Description
remote_file <str> Path whose top-level reports should be searched. [default: /]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-m, --match <list[str]> Case-sensitive basename regex filter (repeatable; all must match).
-mi, --match-insensitive <list[str]> Case-insensitive basename regex filter (repeatable; all must match).
-n, --count <int range> Maximum number of latest reports to parse. [default: 1; x>=1]
--kernelcache <file> Kernelcache of the firmware the device ran (as found in its IPSW), to name the kernel images of a panic or a stackshot report.
--kernel-signatures <dir> Directory of ipsw kernel symbolication signatures (the kernel directory of https://github.com/blacktop/symbolicator), to name the kernel functions of a panic or a stackshot report. Requires --kernelcache and the ipsw tool.
-p, --process <list[str]> Name or pid of a process of a panic, a stackshot or a spindump report to print the call stacks of. May be given several times.
--all Print the call stacks of every process of a panic, a stackshot or a spindump report, or of every thread of a crash.
-r, --running Print the threads of a panic, a stackshot or a spindump report which were on a CPU.
--symbol-server <str> URL of a symbolicator server (https://github.com/netanelc305/symbolicator-server), e.g. http://localhost:3993, to name frames with the symbols it holds. Frames it does not name are left to the Xcode device support of this host and to --kernelcache. [env var: PYCRASHREPORT_SERVER]

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

pull

Download crash reports from the device (all of them by default).

pymobiledevice3 crash pull [OPTIONS] {out} [remote_file]

Arguments:

Argument Description
out <dir> Local directory to save the reports into. [required]
remote_file <str> File or directory to pull, relative to the crash reports directory. [default: /]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-e, --erase Delete each report from the device after pulling it.
-m, --match <str> Only pull entries whose basename matches this regex.

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

shell

Open an interactive file shell rooted at the crash reports directory.

pymobiledevice3 crash shell [OPTIONS]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
--tool <list[str]> also offer this host tool as a command inside the shell, e.g. --tool jq (repeatable)

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

webdav

Serve the crash reports directory over WebDAV for local mounting; runs until Ctrl+C.

pymobiledevice3 crash webdav [OPTIONS] [path]

Arguments:

Argument Description
path <str> AFC path to serve as the volume root (default: /) [default: /]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
--mount mount the served path locally and reveal it in your file manager
--host <str> local interface to bind [default: 127.0.0.1]
--bind-port <int> local TCP port (0 picks a free port) [default: 0]
--readonly expose the path read-only

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

ls

List crash reports and folders in the crash reports directory.

pymobiledevice3 crash ls [OPTIONS] [remote_file]

Arguments:

Argument Description
remote_file <str> Directory to list, relative to the crash reports directory. [default: /]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-d, --depth <int> How many levels deep to list (-1 for unlimited). [default: 1]

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

flush

Move pending crash reports into the crash reports directory (via crashreportmover).

pymobiledevice3 crash flush [OPTIONS]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

watch

Print each new crash report as the device creates it; runs until Ctrl+C.

pymobiledevice3 crash watch [OPTIONS] [name]

Arguments:

Argument Description
name <str> Only show reports of the process with this name.

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-r, --raw Print each report's raw text instead of the parsed report.
--format <text\|json> Output format. 'json' emits one JSON object per line (NDJSON) on stdout. [default: text]

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.

sysdiagnose

Wait for a sysdiagnose you trigger on the device, then download it.

This command does not start the sysdiagnose: press Power+VolUp+VolDown together briefly on the device (as prompted), then wait for the archive.

pymobiledevice3 crash sysdiagnose [OPTIONS] {out}

Arguments:

Argument Description
out <path> Local path to save the archive to. [required]

Options:

Option Description
--remotepairing Build the no-root userspace tunnel over RemotePairing instead of USB, for a device paired over the network with remote pair (e.g. an Apple TV, on Wi-Fi or Ethernet). Found over bonjour; --udid names the identifier the RemotePairing record is stored under (remote_.plist), required when there are several. Implies --userspace; mutually exclusive with --rsd/--tunnel/--native. [env var: PYMOBILEDEVICE3_REMOTEPAIRING]
--native macOS only: reach the iOS 17+ tunnel by piggybacking Apple's own remoted tunnel via the remotepairingd service. NO root, no entitlement, no Xcode. Rides Apple's kernel-routable tunnel, so throughput matches the kernel tunnel, but the device keeps a single RSD connection on it: remoted and this process evict each other's, which can reset connections and leave Xcode/devicectl without the device until remoted reconnects. Mutually exclusive with --rsd/--tunnel/--userspace. [env var: PYMOBILEDEVICE3_NATIVE]
--mobdev2-host HOSTNAME Connect over mobdev2 to the device at this hostname or IP address, without browsing for it.
-e, --erase Delete the archive from the device after pulling it.
-t, --timeout <float> Maximum time in seconds to wait for the sysdiagnose archive to complete (default: no limit).

Accepts the connection options: --rsd, --tunnel, --userspace, --mobdev2, --usbmux, --udid.