Debugging

Table 1. The iOS debug surface, through the CLI, the desktop panel and the socket API.

Because a simulated iOS ⁦device's⁩ processes run on the host under their own ⁦  ⁦launchd_sim⁩  ⁩, and its filesystem is a host directory, simee can expose far more than the stock simulator:

Area

What you get

Processes

every device process with CPU, memory and uptime; signal any of them

Network

open sockets per process (⁦TCP/UDP⁩, peer, state) and bytes ⁦in/out⁩ per process

Storage

every ⁦app's⁩ data and bundle container with sizes; list, read, write, delete files; empty an ⁦app's⁩ data; reveal in Finder

Preferences

read and write any ⁦  ⁦defaults⁩  ⁩ domain inside the device

Logs

the ⁦device's⁩ unified log (⁦  ⁦log show⁩  ⁩, with predicates)

⁦In-device⁩ exec

run the ⁦runtime's⁩ own tools inside the device: ⁦  ⁦defaults⁩  ⁩, ⁦  ⁦launchctl⁩  ⁩, ⁦  ⁦notifyutil⁩  ⁩, ⁦  ⁦log⁩  ⁩, ⁦  ⁦heap⁩  ⁩, ⁦  ⁦leaks⁩  ⁩, ⁦  ⁦vmmap⁩  ⁩, ⁦  ⁦sample⁩  ⁩, ...

Rendering

Core Animation overlays: flash updated regions, blended layers, ⁦off-screen⁩ rendering, copied and misaligned images, cache hits

Device state

status bar overrides, Dynamic Type size, Increase Contrast, hardware keyboard, keyboard language, Dynamic Island, backlight, keychain reset, memory warning

Events

push notifications, Darwin notifications (with state), Face ID / Touch ID enroll, match and ⁦no-match⁩, location

Launch

launch apps with arguments and environment (⁦e.g⁩. ⁦  ⁦CFNETWORK_DIAGNOSTICS=3⁩  ⁩)

All of it is available three ways: the CLI, the desktop panel, and a ⁦JSON-lines⁩ unix socket API.

simee call processes '{"device":"booted"}' simee call push '{"device":"booted","bundle_id":"com.example.app","payload":{"aps":{"alert":"hi"}}}' simee exec booted launchctl list # run a program inside the device

Android devices' equivalents go through adb (⁦  ⁦adb shell⁩  ⁩, logcat) and the emulator console (⁦  ⁦simee console⁩  ⁩); the desktop shows their guest console.

Network shaping, audio and Android's counters