Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

refactor(devices): group the host capability bridges under sources/vphone-cli/Devices/

Lakrcda96bef2f23
diff --git a/research/0_binary_patch_comparison.md b/research/0_binary_patch_comparison.md
index 055a56f4..5db6d783 100644
--- a/research/0_binary_patch_comparison.md
+++ b/research/0_binary_patch_comparison.md
@@ -844,7 +844,7 @@ cache rebuild.
- `patch_sandbox_hooks_extended`
- `patch_post_validation_additional`
- 2026-03-07 host-side note:
- - reviewed private Virtualization.framework display APIs against the recorder pipeline in `sources/vphone-cli/VPhoneScreenRecorder.swift`.
+ - reviewed private Virtualization.framework display APIs against the recorder pipeline in `sources/vphone-cli/Devices/VPhoneScreenRecorder.swift`.
- replaced the old AppKit-first recorder path with a private-display-only implementation built around hidden `VZGraphicsDisplay._takeScreenshotWithCompletionHandler:` capture.
- added still screenshot actions that can copy the captured image to the pasteboard or save a PNG to disk using the same private capture path.
- `make build` is used as the sanity check path; live VM validation is still needed to confirm the exact screenshot object type returned on macOS 15.
diff --git a/sources/vphone-cli/VPhoneCameraServer.swift b/sources/vphone-cli/Devices/VPhoneCameraServer.swift
similarity index 100%
rename from sources/vphone-cli/VPhoneCameraServer.swift
rename to sources/vphone-cli/Devices/VPhoneCameraServer.swift
diff --git a/sources/vphone-cli/VPhoneFrameProducer.swift b/sources/vphone-cli/Devices/VPhoneFrameProducer.swift
similarity index 100%
rename from sources/vphone-cli/VPhoneFrameProducer.swift
rename to sources/vphone-cli/Devices/VPhoneFrameProducer.swift
diff --git a/sources/vphone-cli/VPhoneLocationProvider.swift b/sources/vphone-cli/Devices/VPhoneLocationProvider.swift
similarity index 100%
rename from sources/vphone-cli/VPhoneLocationProvider.swift
rename to sources/vphone-cli/Devices/VPhoneLocationProvider.swift
diff --git a/sources/vphone-cli/VPhoneScreenRecorder.swift b/sources/vphone-cli/Devices/VPhoneScreenRecorder.swift
similarity index 100%
rename from sources/vphone-cli/VPhoneScreenRecorder.swift
rename to sources/vphone-cli/Devices/VPhoneScreenRecorder.swift
diff --git a/sources/vphone-cli/VPhoneTouchIDMonitor.swift b/sources/vphone-cli/Devices/VPhoneTouchIDMonitor.swift
similarity index 100%
rename from sources/vphone-cli/VPhoneTouchIDMonitor.swift
rename to sources/vphone-cli/Devices/VPhoneTouchIDMonitor.swift