simpod library

Enums

HelperSpawnMode
  • attached — child process; stdio is drained and logged.
  • detachedWithLogs — detached, but stdio pipes are held and forwarded to the session log. Only safe from a long-lived parent (the preview server): if the parent exits, nobody drains the pipes and the helper eventually blocks on a full stdout buffer.
  • detached — fully detached, no stdio. For short-lived CLI commands (simpod boot), which must exit as soon as the helper is up.
  • Constants

    axUnavailableError → const String
    defaultHelperPort → const int
    helperHost → const String
    packageVersion → const String
    Keep in sync with pubspec.yaml.

    Functions

    bootDevice(String udid) Future<void>
    findDevice(List<DeviceInfo> devices, String query) → DeviceInfo?
    Matches a simulator by exact udid or case-insensitive name.
    generateRandomToken() String
    getLocalNetworkIPAddress() Future<String?>
    Prefers a private (RFC 1918) address on en* — Ethernet/Wi-Fi on macOS — because VPN tunnels (utun*) surface first on some setups and peers on the local network can't reach them.
    isDeviceBooted(String udid) Future<bool>
    isPrivateIPv4(String address) bool
    isServerHealthy(String host, int port) Future<bool>
    Probes a preview server's /api/health endpoint.
    renderQrAscii(String data, {int quietZone = 2}) String
    Renders data as a scannable QR code for the terminal.
    scanIosDevices() Future<List<DeviceInfo>>
    Lists the simulators simctl knows about, skipping unavailable ones (broken runtimes can't be booted or driven).