* Custom socket tunnels * Improve tunnel configuration UI * Tweak tunnel editing UI to be less confusing * Create tunnel socket parent path if it doesn't already exist * Security: Harden tunnel approval verification * Security: harden tunnel approval UI against tampered strings, use only digest for validating approvals * Security: refuse to start a TCP listener when something already answers at its address; replace existing socket when appropriate * Fix newly added tunnel that replaces an existing listener being blocked by address in use * Security: make tunnel status text from the other side safe to display Status and failure text is chosen by the other side of a tunnel and shown next to the tunnel in settings. Remove invisible, reordering and line-breaking characters from it and limit its length. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Security: require a trusted owner for every folder enclosing a tunnel socket Each component of a listener's path, as written and as resolved through links, has to belong to this account or to a system account. Set the socket's permissions without following links. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Security: check who owns a Unix socket tunnel destination Apply the path ownership check to destinations, and require the service that accepts the connection to run as this account or a system account. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Security: give each tunnel its own share of a virtual machine's connections Raise the limit to 64 connections per virtual machine with at most 32 for one tunnel, so holding one tunnel's connections open can't starve the others. Pause a listener that runs out of descriptors or memory instead of stopping it for good. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Security: keep the reason a tunnel failed on the host from the guest The guest is only told that a tunnel isn't available on the host. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Update service tunnels audit report with the status of F5 to F10 Notes what was fixed for each finding and what was left as is. Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com> * Support managed preference restrictions on tunnels * Remove audit file * Tunnels UI tweaks * Rewrite service tunnels documentation --------- Co-authored-by: Claude Mythos 5.2 <noreply@anthropic.com>
Mac debugging packages
VirtualBuddy uses local Swift packages for Xcode deployment and debugging on Apple silicon Macs running macOS 14 or later. Another app can add the host or target package as a local package dependency alongside MacDebugProtocol. App Store Connect device registration is independently adoptable.
| Package | Responsibility |
|---|---|
| MacDebugHost | Xcode scheme discovery and generation, development profile selection, staged signing, LLDB handoff, run broker, and system symbol cache |
| MacDebugTarget | System image discovery, signed debug app validation and installation, and the lifetime of Apple's debugserver |
| MacDebugProtocol | Launch options, image manifest, host-side RemoteDebugSession contract, and duplex socket I/O |
| AppStoreConnectDevices | Local Keychain storage of per-team API credentials, Mac lookup and registration |
Host integration
Create a DebugHostConfiguration with the app URL, helper executable, a short, private per-user socket directory, and a links directory. Generated schemes run the helper and load the LLDB module through links in that directory, which start() and install point at the running app, so schemes keep working when the app is updated or moved. Choose a per-user location outside the app bundle and never change it: schemes that already exist refer to it. Forward the helper's arguments to DebugHostCommand.run. Create one DebugSymbolCache with the app's chosen cache directory and helper, and share it between the broker and cache management UI.
Start a DebugBroker with an authorization check and a closure that resolves a stable destination UUID to a RemoteDebugSession. Use DebugScheme.choices(in:) and install(destination:named:configuration:bindings:) to create the user's Xcode scheme. Call start() while debugging is enabled and stopListening() when the user turns it off, so the socket exists only while it is needed; runs that are already debugging continue. Call stop() when the app shuts down.
Give the broker and install the same DebugBindingStore, such as a KeychainDebugBindingStore with an app-specific service name. Creating a scheme records its binding, and the broker starts runs only for recorded bindings, on the destination stored with them. The broker accepts connections only from a process that satisfies the app's own code-signing requirement, so ship the helper as part of the signed app.
The helper extracts system libraries inside a sandbox that can read only the app bundle, the helper, Apple's extractor and the transferred images. Profiles are refreshed with the Xcode selected by xcode-select, not the developer directory reported by the Run action.
Pass the broker a DebugProvisioning with an app-owned profile cache and a DebugProvisioningInteraction for progress, cancellation, registration, and manual profile selection. The broker asks its session for the target’s provisioning UDID only for builds with embedded profiles. The target adapter can answer with try await MacProvisioningIdentity.current.udid(). The same interface works for a paired remote Mac.
For App Store Connect registration, initialize DeviceRegistrationKeys with an app-specific Keychain service name. Keys are stored in the data protection Keychain behind user presence, so the app must be signed with an application identifier. Keep one MacDeviceRegistration value for one user-initiated task: its calls share a single Touch ID or password confirmation. Save one team key per signing team, then use MacDeviceRegistration(keys:) to look up that Mac’s exact UDID. Obtain the developer’s approval before calling register(name:udid:teamID:) for a missing Mac. A disabled device requires action by the team administrator.
Target integration
After authorizing the controller, reserve the destination for one active run and create a TargetDebugRun for its run ID. Return its image manifest. Supply requested files through imageURL(named:) and receive the complete app archive at archiveURL before calling install(). That returns the installed bundle URL for LLDB's path mapping. Pass the connected debugger stream and launch options to serve(over:options:). On disconnect, cancel the run and its transfers. Retain the run until outstanding file operations finish.
VirtualBuddy implements this contract using VMBridge requests and file transfers plus a dedicated Virtio socket. The app owns VM startup, login readiness, managed preferences, and verification that the debugger connection came from the host. The guest uses its installed Apple Command Line Tools or Xcode.
A peer-to-peer app can adopt both roles. Its adapter resolves a paired Mac's UUID, carries the control messages and files, and supplies an ordered, reliable byte stream for each debug session. For a transport that delivers messages, bridge an authenticated peer channel to one end of a local socket pair and pass the other end to the package as a DebugSocket. Forward bytes in both directions and close the socket when the peer disconnects.
Each package's tests run with swift test in its directory.