minimuxer is the lockdown muxer library used by SideStore. It manages device communication, app installation/sideloading, Developer Disk Image (DDI) mounting, AFC file system operations, and pairing over local loopback VPN or remote endpoints.
├── Common/ ← MinimuxerCommon package
│ ├── FFIDispatcher.swift ← Serial GCD dispatch queue utility for FFI calls
│ ├── MinimuxerConstants.swift ← Constants & default configurations
│ └── NetworkUtils.swift ← TCP socket probing & device reachability checks
├── DeviceGateway/ ← DeviceGateway package (libimobiledevice / idevice)
│ ├── DeviceGatewayAPI.swift ← Gateway protocol definitions
│ ├── idevice/ ← Idevice backend implementation
│ └── libimobiledevice/ ← Libimobiledevice backend implementation
└── Sources/ ← Main Minimuxer package
├── MinimuxerApi.swift ← Public API contracts & Minimuxer composition root
├── MinimuxerImpl.swift ← Core Minimuxer API implementation
├── EMProxyImpl.swift ← EMProxy wrapper implementation
├── MinimuxerError.swift ← Public error definitions
├── Services/
│ ├── DeviceConnectionManager.swift ← Route discovery & connection reachability
│ ├── DeviceEndpoint.swift ← Active target device IP state
│ ├── HeartbeatService.swift ← Heartbeat keep-alive service
│ ├── Mounter.swift ← Developer Disk Image (DDI) mounter
│ ├── NetworkIfaceScanner.swift← Network interface scanner
│ ├── NetworkObserverService.swift ← Network path monitoring (NWPathMonitor) & endpoint lifecycle
│ ├── UsbmuxdProxyServer.swift ← Usbmuxd proxy server listener over TCP
│ └── WirelessPairService.swift← Wireless pairing service & PIN verification
└── Types/
└── RawPacket.swift ← Low-level packet parsing
- DeviceGateway: Pluggable device gateway backend (
libimobiledeviceandideviceC/FFI bindings). - EMProxy: Pre-built
EMProxy.xcframeworkfor WireGuard loopback server and handshake handling. - ZIPFoundation: Used for extracting DDI disk images and IPA application bundles.
Minimuxer.shared(backend:): Memoized singleton factory returning an instance with:.core: Primary API for app installation, uninstallation, DDI mounting, profile management, and AFC file operations..network: Handles network path monitoring, interface scanning, and endpoint attachment/detachment..wirelessPair: Manages wireless pairing flow and PIN verification (iOS 27+)..emproxy: Controls EMProxy WireGuard loopback server and handshake client..gateway: Active device gateway backend (libimobiledeviceoridevice).
.localVPN: On-device loopback VPN connection. Uses user-configured override peer IP when present; auto-discoversutun*interface peer IP only when no override is configured..remoteServer: Remote server endpoint configuration over LAN, Wi-Fi, or external VPN.
minimuxer is integrated as a standard Swift Package (Package.swift).
swift build