Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Present the iPhone17,3's own board like every other iPhone

zqxwce4420a3269442
diff --git a/Documents/Guides/iphone-models.md b/Documents/Guides/iphone-models.md
index 47fd0293..f2654964 100644
--- a/Documents/Guides/iphone-models.md
+++ b/Documents/Guides/iphone-models.md
@@ -25,8 +25,8 @@ present that model.
| `iPhone18,5` | iPhone 17e | V159AP | 1170x2532 @ 460 ppi | 390x844 |
| `iPhone19,2` | iPhone 18 Pro | V63AP | 1206x2622 @ 460 ppi | 402x874 |
-The iPhone17,3 keeps the display and the fixed D47 identity it has always had;
-every other model gets its own panel and the identity from its own device tree.
+Every model, the iPhone17,3 included, gets its panel and the identity from its
+own device tree; the iPhone17,3's panel is the display it has always had.
Each model has an IPSW of its own, so `--device` is not needed. `fw catalog`
lists the iPhone 16/17 models' releases from 26.0 to 27.0.1 (the iPhone 17e
from 26.3.1), and the iPhone 18 Pro's 27.0.1,
diff --git a/Research/0_binary_patch_comparison.md b/Research/0_binary_patch_comparison.md
index c7880884..4b08b276 100644
--- a/Research/0_binary_patch_comparison.md
+++ b/Research/0_binary_patch_comparison.md
@@ -1,5 +1,26 @@
# Patch Comparison: Regular / Development / Jailbreak / Experimental
+> **The iPhone17,3 presents its board (2026-10-25).**
+> `VPhoneGuestDevice.presentsBoard` no longer excludes the iPhone17,3; only the
+> XS Max keeps the shared tree. An iPhone17,3 guest now gets the separate
+> installed tree and the `devicetree-cfw-ipad_*` presentation from
+> `DeviceTree.d47ap.im4p`, as every other iPhone does, and skips
+> `preboot-exp-devicetree_identity`. No patch is new. `ipad_identity` is on in
+> `standard`, so a `standard` iPhone17,3 guest now reports `iPhone17,3` instead
+> of `iPhone99,11`. The catalog's release list keeps its iPhone17,3 check
+> explicit (`VPhoneFirmwareCatalog.pairings`), so its pairings do not change. Checked on
+> a new `iPhone17,3 27.0.1 (24A446)` guest, cloudOS 26.4 (23E5207q), plain
+> `standard`: the restore tree split off `DeviceTree.vphone600ap.guest.im4p`;
+> the receipt records the `ipad_*` patches and
+> `preboot-cfw-devicetree_board_audio`; `device.info` reports `iPhone17,3` at
+> 430x932 @3x; Settings > About shows Model Name iPhone 16 and an Action
+> Button row; the Camera app shows the .5/1x/2 lenses and the test pattern;
+> with Location Services on, `location.set` reads back a fresh simulated fix
+> and `bluetoothd`/`locationd` keep their boot PIDs (no #438). Crash reports
+> held only the documented restore-reboot panic and `duetexpertd` datavault
+> crashes, plus one `NANDTaskScheduler` PAC kill in its Core Data failure
+> logging (no ANS NAND on a VM), not on a device tree path.
+
> **Account prompt hooks are selectable (2026-10-25).**
> `system-preferences-cfw-followup_groups` (`libprefsfix.dylib`, Settings'
> CoreFollowUp groups) and `system-apps-cfw-signin_sheets`
@@ -13,6 +34,7 @@
> launch of Settings or the app. No binary or loader changes. Account daemons
> stay running either way; update and account daemons are disabled only by
> vphoned's service profile ([service trimming](Guest/service_trimming.md)).
+
> **CSSC kernel compatibility experiment (2026-10-25).**
> `kernel-boot-cssc_emulation` targets iOS 27 with cloudOS 26.4. It reuses the
> kernel's undefined-instruction copyin, PAC-safe interrupt helpers and
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift
index d3c386df..e9eae68b 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/DeviceTree/DeviceTreeGuestDevicePatches.swift
@@ -10,7 +10,7 @@
//
// The answers come from the board's own device tree, `DeviceTree.<board>.im4p`,
// which the IPSW carries and the restore tree keeps. Every guest device but the
-// iPhone17,3 gets them (`VPhoneGuestDevice.presentsBoard`); the patch IDs keep
+// iPhone XS Max gets them (`VPhoneGuestDevice.presentsBoard`); the patch IDs keep
// the `ipad_` names they were introduced with, because presets list them.
//
// - the `/product` properties in `copiedProductProperties` take the board's
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift
index d3763e84..a053241a 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Manifest/FirmwareManifest.swift
@@ -228,7 +228,7 @@ public enum FirmwareManifest {
public static let guestDeviceTreePath = "Firmware/all_flash/DeviceTree.vphone600ap.guest.im4p"
/// Points the installed `DeviceTree` of a guest that presents its board
- /// (an iPad, or an iPhone other than the iPhone17,3) at a copy of the
+ /// (an iPad, or an iPhone other than the XS Max) at a copy of the
/// vphone600 tree, so `fw patch` can give that copy the board's identity.
///
/// The DFU device restores with `RestoreDeviceTree`, and `restored_external`
@@ -237,7 +237,7 @@ public enum FirmwareManifest {
/// installed `DeviceTree` is a separate manifest entry that restore only
/// personalizes and writes to Preboot, so giving it its own file lets the
/// board identity ride through restore without a root-only rewrite on the
- /// host. An iPhone17,3 identity is returned unchanged.
+ /// host. An XS Max identity is returned unchanged.
static func separateGuestDeviceTree(
for device: VPhoneGuestDevice,
identity: PlistDict,
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/DeviceTreeGuestDeviceTests.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/DeviceTreeGuestDeviceTests.swift
index 3e27abb7..6da9c8c8 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/DeviceTreeGuestDeviceTests.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Core/DeviceTreeGuestDeviceTests.swift
@@ -465,16 +465,19 @@ struct DeviceTreeGuestDeviceTests {
#expect(product["medusa-overlay-app-capability"] == nil)
}
- @Test func `an iPhone tree is patched as it always was`() throws {
+ @Test func `an iPhone17,3 shared tree is patched as it always was`() throws {
let shared = try Self.patch(device: .iPhone17_3, role: .shared)
let product = try #require(shared["device-tree/product"])
#expect(Self.integer(product["artwork-device-subtype"]) == 2556)
#expect(Self.integer(product["island-notch-location"]) == 144)
#expect(Self.string(product["artwork-device-idiom"]) == "phone")
- // A `.installed` role means nothing without an iPad.
- let installed = try Self.patch(device: .iPhone17_3, role: .installed)
- #expect(Self.integer(installed["device-tree/product"]?["island-notch-location"]) == 144)
+ // Its installed tree presents D47AP, as every other board is presented.
+ let d47 = Self.board(model: "iPhone17,3", unique: "D47AP", subtype: 2556, disablesStageManager: false, idiom: "phone", scale: 3)
+ let installed = try Self.patch(device: .iPhone17_3, role: .installed, board: d47)
+ #expect(Self.string(installed["device-tree"]?["model"]) == "iPhone17,3")
+ #expect(Self.string(installed["device-tree"]?["target-type"]) == "D47")
+ #expect(Self.integer(installed["device-tree/product"]?["artwork-device-subtype"]) == 2556)
}
@Test func `an iPhone XS Max keeps the iPhone17,3 presentation with its own artwork and no island`() throws {
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
index 0b3a345e..693e13e6 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
@@ -560,7 +560,7 @@ struct VPhoneCustomFirmwareInstaller {
))
// Selected patches this guest has nothing for, so the receipt does not
// report them as missing forever: the board audio repair on an
- // iPhone17,3, which has no board of its own to present, the iPhone
+ // iPhone XS Max, which is not presented as its own board, the iPhone
// product repair on a non-iPhone, and the build spoof with no value set. A
// guest whose board tree could not be recovered is not among them: its
// repair is missing, and drift should keep saying so.
@@ -3352,9 +3352,9 @@ struct VPhoneCustomFirmwareInstaller {
/// made from when it has none. A board-presenting VM patched before `fw
/// patch` kept it needs it for the board audio repair, without which
/// VirtualAudio looks for the iPhone's tunings and the guest has no sound.
- /// An iPhone17,3 VM needs it for the product description repair, without
+ /// An iPhone XS Max VM needs it for the product description repair, without
/// which MobileGestalt reads Siri, Camera Control, the Action Button and the
- /// model name as absent; `fw patch` does not keep the iPhone17,3's, so it
+ /// model name as absent; `fw patch` does not keep its board tree, so it
/// always comes from here.
/// A HomePod mini also needs its donor's native product-id token for audio
/// routing; its selected repair refuses to proceed without a valid donor.
diff --git a/VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareCatalog.swift b/VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareCatalog.swift
index a28aa6ec..911e5ebc 100644
--- a/VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareCatalog.swift
+++ b/VPhoneKit/VPhoneCoreKit/Firmware/VPhoneFirmwareCatalog.swift
@@ -650,7 +650,7 @@ public enum VPhoneFirmwareCatalog {
)
}
}
- guard guest.presentsBoard else { return pairings }
+ guard guest.productType != VPhoneGuestDevice.iPhone17_3.productType else { return pairings }
let restored = guest.restoreBase ?? guest
let otas = otaReleases.filter { $0.productType == guest.productType && $0.unpacks(onMacOS: hostMacOS) }
var releases = (iPhoneReleases + iPadReleases + tvReleases + homePodReleases + watchReleases).first { $0.devices.contains(restored.productType) }?.releases ?? []
diff --git a/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift b/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift
index 36781af0..0a912c7b 100644
--- a/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift
+++ b/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneGuestDevice.swift
@@ -73,10 +73,10 @@ public struct VPhoneGuestDevice: Sendable, Equatable {
/// Whether the guest boots a device tree of its own that presents this
/// board, built by `fw patch` from the board's tree in the IPSW. Every
- /// device but the iPhone17,3 and the iPhone XS Max does; those keep the
- /// fixed D47 identity `cfw install` writes into the restored tree.
+ /// device but the iPhone XS Max does; it keeps the fixed D47 identity
+ /// `cfw install` writes into the restored tree.
public var presentsBoard: Bool {
- productType != Self.iPhone17_3.productType && notchedArtworkSubtype == nil
+ notchedArtworkSubtype == nil
}
/// The artwork subtype of a guest presented as the iPhone17,3 whose own
diff --git a/VPhoneKit/VPhoneCoreKitTests/Firmware/FirmwareCatalogReportTests.swift b/VPhoneKit/VPhoneCoreKitTests/Firmware/FirmwareCatalogReportTests.swift
index eaac4085..b7bf324a 100644
--- a/VPhoneKit/VPhoneCoreKitTests/Firmware/FirmwareCatalogReportTests.swift
+++ b/VPhoneKit/VPhoneCoreKitTests/Firmware/FirmwareCatalogReportTests.swift
@@ -209,7 +209,7 @@ struct FirmwareCatalogReportTests {
}
@Test func `other i phones have pairings of their own`() {
- for guest in VPhoneGuestDevice.known where guest.family == .iPhone && guest.presentsBoard {
+ for guest in VPhoneGuestDevice.known where guest.family == .iPhone && guest.presentsBoard && guest != .iPhone17_3 {
let pairings = VPhoneFirmwareCatalog.pairings(for: guest.productType)
let firstRelease = switch guest.productType {
case "iPhone18,5": "iOS 26.3.1"
diff --git a/VPhoneKit/VPhoneCoreKitTests/VirtualMachine/GuestDeviceTests.swift b/VPhoneKit/VPhoneCoreKitTests/VirtualMachine/GuestDeviceTests.swift
index e572792f..e6888637 100644
--- a/VPhoneKit/VPhoneCoreKitTests/VirtualMachine/GuestDeviceTests.swift
+++ b/VPhoneKit/VPhoneCoreKitTests/VirtualMachine/GuestDeviceTests.swift
@@ -182,9 +182,9 @@ struct GuestDeviceTests {
}
@Test
- func `every other iPhone presents its own board at 3x`() {
- #expect(!VPhoneGuestDevice.iPhone17_3.presentsBoard)
- for device in VPhoneGuestDevice.known where device.family == .iPhone && device != .iPhone17_3 && device.notchedArtworkSubtype == nil {
+ func `every iPhone but the XS Max presents its own board at 3x`() {
+ #expect(VPhoneGuestDevice.iPhone17_3.presentsBoard)
+ for device in VPhoneGuestDevice.known where device.family == .iPhone && device.notchedArtworkSubtype == nil {
#expect(device.presentsBoard)
#expect(device.screen.scale == 3.0)
#expect(device.screen.pixelsPerInch == 460)