Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

fix: gate restore seal patch by SystemVolume hash metadata

秋 奈月b1d32372c3e7
diff --git a/Documents/Downloads/README.md b/Documents/Downloads/README.md
index 43e8294c..f3f5af97 100644
--- a/Documents/Downloads/README.md
+++ b/Documents/Downloads/README.md
@@ -33,6 +33,7 @@ Use a `VPhone.bundle` from the same series as Launchpad. The series is the first
| Launchpad | VPhone.bundle |
| --- | --- |
+| 2.10.x | 2.10.x |
| 2.9.x | 2.9.x |
| 2.8.x | 2.8.x |
| 2.7.x | 2.7.x |
diff --git a/Research/0_binary_patch_comparison.md b/Research/0_binary_patch_comparison.md
index f7fc3aaa..5bd89a0e 100644
--- a/Research/0_binary_patch_comparison.md
+++ b/Research/0_binary_patch_comparison.md
@@ -47,12 +47,19 @@
> instructions are forwarded to the captured kernel exception destination.
>
> **Restore seal.** For iOS 27 with cloudOS 26.4, the restore patch resolves the
-> manifest-selected ramdisk, locates `apfs_sealvolume`'s options template from
-> its unique getopt xref and decoded copy sequence, changes hash type `1`
-> (`sha256`) to `0x106` (`sha3_256_4k`), and re-attests the modified
+> manifest-selected `SystemVolume` `isys` root-hash payload first. Only hash type
+> `0x106` (`sha3_256_4k`) needs a changed restore tool. For that image, the
+> patch resolves the manifest-selected ramdisk, locates `apfs_sealvolume`'s
+> options template from its unique getopt xref and decoded copy sequence,
+> changes hash type `1` (`sha256`) to `0x106`, and re-attests the modified
> CodeDirectory page. The ordered trust-cache pass replaces exactly that
> executable's cdhash, preserves the two metadata bytes and restores v1 sort
-> order. Discovery, signature coverage or uniqueness failures abort the patch.
+> order. The 27.0.1 (24A446) IPSWs for iPhone17,1–5 and iPhone18,1–5 all
+> have root-hash type `1` in both SystemVolume entries; iPhone19,2 has `0x106`.
+> SHA-256 images leave both cloudOS restore files pristine and omit the
+> image-specific patch from the resolved plan and restore receipt. Unknown
+> hash types or malformed metadata abort before patching; discovery,
+> signature coverage or uniqueness failures also abort the SHA3 patch.
>
> **Validation and limits.** On an M5 Max guest, the unsupported-feature path
> completed a clean offline restore, logged `Sealing System Volume`, and the
@@ -603,7 +610,7 @@
| # | Patch | Component | Purpose | Regular | Dev | JB |
| --- | --- | --- | --- | :---: | :---: | :---: |
-| 1 | `restoreramdisk-boot-apfs_sha3_hash.hash_type` | `RestoreRamDisk` / `apfs_sealvolume` | Select APFS hash type `0x106` (`sha3_256_4k`) and re-attest the modified Mach-O page | Y | Y | Y |
+| 1 | `restoreramdisk-boot-apfs_sha3_hash.hash_type` | `RestoreRamDisk` / `apfs_sealvolume` | When the manifest-selected SystemVolume root hash names `0x106`, select `sha3_256_4k` and re-attest the modified Mach-O page; SHA-256 images remain unchanged | Y | Y | Y |
| 2 | `restoreramdisk-boot-apfs_sha3_hash.trustcache` | `RestoreTrustCache` | Replace the old sealing-tool cdhash with the re-attested cdhash and restore v1 entry order | Y | Y | Y |
The patch is gated to an iOS 27 base paired with cloudOS 26.4. Both paths are
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareBootChainPatchSet.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareBootChainPatchSet.swift
index 2ed81912..30f946ae 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareBootChainPatchSet.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareBootChainPatchSet.swift
@@ -171,7 +171,7 @@ public enum FirmwareBootChainPatchSet {
VPhonePatchDeclaration(
identifier: RestoreRamDiskSealPatcher.patchIdentifier,
title: "iOS 27 APFS seal hash",
- summary: "Makes the cloudOS 26.4 restore ramdisk calculate the iOS 27 root hash with sha3_256_4k and admits the re-attested sealing tool through its restore trust cache.",
+ summary: "Uses sha3_256_4k for iOS 27 images that select it in SystemVolume metadata; leaves SHA-256 restore images unchanged.",
target: .firmware(.restoreRamDisk),
applicability: VPhonePatchApplicability(
iOSBase: .major(27),
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift
index 268eed16..4aab1ae1 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipeline.swift
@@ -139,6 +139,8 @@ public final class FirmwarePipeline {
/// The cloudOS `ProductVersion` `patchAll()` read, if it found one.
public private(set) var cloudOSProductVersion: VPhoneVersion?
+ public private(set) var notApplicablePatches: Set<String> = []
+
// MARK: - Init
public init(
@@ -192,7 +194,19 @@ public final class FirmwarePipeline {
// The preset resolves here rather than in init: its version gates need the
// two ProductVersions that were just read, and a conflict or a misnamed
// patch must stop the run before a single byte is written.
- let plan = try resolvePlan(iOSBase: baseVersion, cloudOS: cloudOSVersion)
+ notApplicablePatches = []
+ var plan = try resolvePlan(iOSBase: baseVersion, cloudOS: cloudOSVersion)
+ let sealPatch = RestoreRamDiskSealPatcher.patchIdentifier
+ let sealSelected = plan?.isEnabled(sealPatch)
+ ?? (baseVersion?.major == 27 && cloudOSVersion?.major == 26 && cloudOSVersion?.minor == 4)
+ if variant != .less, sealSelected {
+ let hashType = try RestoreRamDiskSealPatcher.systemVolumeHashType(in: restoreDir)
+ if hashType == RestoreRamDiskSealPatcher.sha256Type {
+ notApplicablePatches.insert(sealPatch)
+ plan = plan?.skippingFirmwareInapplicable(sealPatch)
+ log("[=] \(sealPatch): SystemVolume root hash uses SHA-256; restore tools stay pristine")
+ }
+ }
resolvedPlan = plan
let gate = plan.map { VPhonePatchGate(plan: $0) } ?? .unrestricted
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift
index 296f9fc6..e88304b2 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Pipeline/FirmwarePipelineComponents.swift
@@ -214,14 +214,18 @@ extension FirmwarePipeline {
// 6. Restore ramdisk and trust cache
let sealPatch = RestoreRamDiskSealPatcher.patchIdentifier
- let includeSealPatch = variant != .less
+ var includeSealPatch = variant != .less
&& includeBootChain
&& isEnabled(sealPatch, fallback: baseIs27 && cloudIs264)
+ let manifestURL = restoreDir.appendingPathComponent("BuildManifest.plist")
+ if includeSealPatch, FileManager.default.fileExists(atPath: manifestURL.path) {
+ let hashType = try RestoreRamDiskSealPatcher.systemVolumeHashType(in: restoreDir)
+ includeSealPatch = hashType == RestoreRamDiskSealPatcher.sha3_256_4KType
+ }
// Empty factories restore both originals when the patch is disabled.
let includeSealComponents = includeSealPatch || (baseIs27 && cloudIs264)
if includeSealComponents {
// Catalogue-only tests have no restore tree.
- let manifestURL = restoreDir.appendingPathComponent("BuildManifest.plist")
if FileManager.default.fileExists(atPath: manifestURL.path) {
let ramdiskPath = try Self.manifestComponentPath("RestoreRamDisk", in: restoreDir)
let trustCachePath = try Self.manifestComponentPath("RestoreTrustCache", in: restoreDir)
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift
index 72d0faba..6521ce28 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/Restore/RestoreRamDiskSealPatcher.swift
@@ -19,6 +19,27 @@ final class RestoreRamDiskSealPatcher: BufferedPatcher {
static let sha256Type: UInt32 = 1
static let sha3_256_4KType: UInt32 = 0x106
+ /// isys payload: hash type at +8, digest length at +12.
+ static func systemVolumeHashType(in restoreDir: URL) throws -> UInt32 {
+ let path = try FirmwarePipeline.manifestComponentPath("SystemVolume", in: restoreDir)
+ let url = restoreDir.appending(path: path)
+ let (payload, im4p) = try IM4PHandler.load(contentsOf: url)
+ guard im4p?.fourcc == "isys", payload.count >= 48 else {
+ throw PatcherError.invalidFormat("SystemVolume root hash is not an isys IM4P with a 32-byte digest")
+ }
+ let hashType = payload.loadLE(UInt32.self, at: 8)
+ let digestLength = payload.loadLE(UInt32.self, at: 12)
+ guard digestLength == 32,
+ hashType == sha256Type || hashType == sha3_256_4KType
+ else {
+ throw PatcherError.invalidFormat(
+ "SystemVolume root hash has unsupported hash type 0x\(String(hashType, radix: 16)) "
+ + "or digest length \(digestLength)",
+ )
+ }
+ return hashType
+ }
+
let component = VPhoneFirmwareComponent.restoreRamDisk.rawValue
let verbose: Bool
var gate: VPhonePatchGate = .unrestricted
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Restore/RestoreRamDiskSealPatcherTests.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Restore/RestoreRamDiskSealPatcherTests.swift
index 4b0c4c1b..e0a7b540 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Restore/RestoreRamDiskSealPatcherTests.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/Restore/RestoreRamDiskSealPatcherTests.swift
@@ -1,9 +1,78 @@
@testable import FirmwarePatcher
import Foundation
+import Img4tool
import Testing
+import VPhonePatchKit
@Suite("Restore ramdisk APFS seal compatibility")
struct RestoreRamDiskSealPatcherTests {
+ @Test(arguments: [UInt32(1), UInt32(0x106)])
+ func `hash type comes from the manifest-selected SystemVolume IM4P`(_ hashType: UInt32) throws {
+ let root = try rootHashFixture(hashType: hashType)
+ defer { try? FileManager.default.removeItem(at: root) }
+ #expect(try RestoreRamDiskSealPatcher.systemVolumeHashType(in: root) == hashType)
+ }
+
+ @Test
+ func `unknown SystemVolume hash type fails closed`() throws {
+ let root = try rootHashFixture(hashType: 0x107)
+ defer { try? FileManager.default.removeItem(at: root) }
+ #expect(throws: PatcherError.self) {
+ _ = try RestoreRamDiskSealPatcher.systemVolumeHashType(in: root)
+ }
+ }
+
+ @Test
+ func `root hash digest length must match the known format`() throws {
+ let root = try rootHashFixture(hashType: 1, digestLength: 16)
+ defer { try? FileManager.default.removeItem(at: root) }
+ #expect(throws: PatcherError.self) {
+ _ = try RestoreRamDiskSealPatcher.systemVolumeHashType(in: root)
+ }
+ }
+
+ @Test
+ func `SHA-256 skips the seal patch without changing the user's selection`() throws {
+ let identifier = RestoreRamDiskSealPatcher.patchIdentifier
+ let plan = try VPhonePatchPlan.resolve(
+ preset: FirmwarePatchSetCatalog.standardPreset,
+ patchSets: FirmwarePatchSetCatalog.bundled,
+ iOSBase: VPhoneVersion("27.0.1"),
+ cloudOS: VPhoneVersion("26.4"),
+ )
+ #expect(plan.isEnabled(identifier))
+ let skipped = plan.skippingFirmwareInapplicable(identifier)
+ #expect(!skipped.isEnabled(identifier))
+ #expect(skipped.selection == plan.selection)
+ #expect(skipped.enabled == plan.enabled.subtracting([identifier]))
+ }
+
+ @Test(arguments: [UInt32(1), UInt32(0x106)])
+ func `restore tool factories follow the SystemVolume hash type`(_ hashType: UInt32) throws {
+ let root = try rootHashFixture(hashType: hashType)
+ defer { try? FileManager.default.removeItem(at: root) }
+ let pipeline = FirmwarePipeline(
+ vmDirectory: root,
+ variant: .jb,
+ verbose: false,
+ preset: FirmwarePatchSetCatalog.standardPreset,
+ )
+ let plan = try #require(try pipeline.resolvePlan(
+ iOSBase: VPhoneVersion("27.0.1"),
+ cloudOS: VPhoneVersion("26.4"),
+ ))
+ let components = try pipeline.buildComponentList(
+ restoreDir: root,
+ iOSBase: VPhoneVersion("27.0.1"),
+ plan: plan,
+ gate: VPhonePatchGate(plan: plan),
+ )
+ let count = components
+ .filter { $0.name == "RestoreRamDisk" || $0.name == "RestoreTrustCache" }
+ .reduce(0) { $0 + $1.patcherFactories.count }
+ #expect(count == (hashType == 0x106 ? 2 : 0))
+ }
+
@Test
func `v1 trust cache replacement stays sorted and preserves metadata`() throws {
let oldHash = Data(repeating: 0x20, count: 20)
@@ -62,4 +131,33 @@ struct RestoreRamDiskSealPatcherTests {
private func append(_ value: UInt32, to data: inout Data) {
withUnsafeBytes(of: value.littleEndian) { data.append(contentsOf: $0) }
}
+
+ private func rootHashFixture(hashType: UInt32, digestLength: UInt32 = 32) throws -> URL {
+ let root = FileManager.default.temporaryDirectory
+ .appendingPathComponent("vphone-root-hash-test-\(UUID().uuidString)", isDirectory: true)
+ let path = "Firmware/selected.root_hash"
+ let file = root.appending(path: path)
+ try FileManager.default.createDirectory(at: file.deletingLastPathComponent(), withIntermediateDirectories: true)
+ var payload = Data(repeating: 0, count: 208)
+ payload.replaceSubrange(8 ..< 12, with: withUnsafeBytes(of: hashType.littleEndian) { Data($0) })
+ payload.replaceSubrange(12 ..< 16, with: withUnsafeBytes(of: digestLength.littleEndian) { Data($0) })
+ try IM4P(fourcc: "isys", description: "0", payload: payload).data.write(to: file)
+ var decoy = payload
+ let other: UInt32 = hashType == 1 ? 0x106 : 1
+ decoy.replaceSubrange(8 ..< 12, with: withUnsafeBytes(of: other.littleEndian) { Data($0) })
+ try IM4P(fourcc: "isys", description: "0", payload: decoy).data
+ .write(to: root.appending(path: "Firmware/decoy.root_hash"))
+ let manifest: [String: Any] = [
+ "BuildIdentities": [[
+ "Manifest": [
+ "SystemVolume": ["Info": ["Path": path]],
+ "RestoreRamDisk": ["Info": ["Path": "Firmware/ramdisk.dmg"]],
+ "RestoreTrustCache": ["Info": ["Path": "Firmware/trustcache.im4p"]],
+ ],
+ ]],
+ ]
+ let data = try PropertyListSerialization.data(fromPropertyList: manifest, format: .xml, options: 0)
+ try data.write(to: root.appending(path: "BuildManifest.plist"))
+ return root
+ }
}
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift
index c304a411..0cf4d0d8 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneFirmwareCommand.swift
@@ -387,6 +387,7 @@ struct VPhoneFirmwarePatchCommand: ParsableCommand {
plan: plan,
iOSBase: pipeline.baseProductVersion,
cloudOS: pipeline.cloudOSProductVersion,
+ notApplicablePatches: pipeline.notApplicablePatches,
),
forVM: bundle.url,
)
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift
index 94d5f13a..ba47f2f9 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchCatalogReport.swift
@@ -95,7 +95,7 @@ public struct VPhonePatchCatalogReport: Sendable {
declarations: declarations,
iOSBase: iOSBase,
cloudOS: cloudOS,
- ),
+ ).subtracting(plan?.notApplicablePatches ?? []),
planned: plan.map { Set($0.enabledPatches) },
applied: receipt.map { $0.parts.mapValues { Set($0.patches) } },
notApplicable: Set(receipt?.parts.values.flatMap(\.notApplicable) ?? []),
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift
index fb802282..379ae8f3 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhonePatchPresetStore.swift
@@ -71,16 +71,23 @@ public struct VPhoneVirtualMachinePatchPlan: Codable, Sendable, Hashable {
public var presetIdentifier: String
public var patchSets: [String]
public var enabledPatches: [String]
+ public var notApplicablePatches: [String]
public var iOSBaseVersion: String?
public var cloudOSVersion: String?
/// The preset's knobs, carried through so `cfw install` reads the same values
/// the boot chain was built with rather than resolving the preset again.
public var parameters: [String: String]
- public init(plan: VPhonePatchPlan, iOSBase: VPhoneVersion?, cloudOS: VPhoneVersion?) {
+ public init(
+ plan: VPhonePatchPlan,
+ iOSBase: VPhoneVersion?,
+ cloudOS: VPhoneVersion?,
+ notApplicablePatches: Set<String> = [],
+ ) {
presetIdentifier = plan.presetIdentifier
patchSets = plan.patchSets.map(\.identifier)
enabledPatches = plan.enabled.sorted()
+ self.notApplicablePatches = notApplicablePatches.sorted()
iOSBaseVersion = iOSBase?.description
cloudOSVersion = cloudOS?.description
parameters = plan.parameters
@@ -95,6 +102,7 @@ public struct VPhoneVirtualMachinePatchPlan: Codable, Sendable, Hashable {
case presetIdentifier = "Preset"
case patchSets = "PatchSets"
case enabledPatches = "EnabledPatches"
+ case notApplicablePatches = "NotApplicablePatches"
case iOSBaseVersion = "IOSBaseVersion"
case cloudOSVersion = "CloudOSVersion"
case parameters = "Parameters"
@@ -107,6 +115,9 @@ public struct VPhoneVirtualMachinePatchPlan: Codable, Sendable, Hashable {
enabledPatches = try FirmwarePatchSetCatalog.currentIdentifiers(
container.decodeIfPresent([String].self, forKey: .enabledPatches) ?? [],
)
+ notApplicablePatches = try FirmwarePatchSetCatalog.currentIdentifiers(
+ container.decodeIfPresent([String].self, forKey: .notApplicablePatches) ?? [],
+ )
iOSBaseVersion = try container.decodeIfPresent(String.self, forKey: .iOSBaseVersion)
cloudOSVersion = try container.decodeIfPresent(String.self, forKey: .cloudOSVersion)
parameters = try container.decodeIfPresent([String: String].self, forKey: .parameters) ?? [:]
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
index 8769100e..f729df03 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
@@ -539,6 +539,7 @@ public struct VPhoneVirtualMachineCreator {
plan: plan,
iOSBase: pipeline.baseProductVersion,
cloudOS: pipeline.cloudOSProductVersion,
+ notApplicablePatches: pipeline.notApplicablePatches,
),
forVM: bundleURL,
)
diff --git a/VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift b/VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift
index bd867f1a..1da48f7c 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhonePatchKit/PatchSet/VPhonePatchPlan.swift
@@ -31,6 +31,18 @@ public struct VPhonePatchPlan: Sendable, Hashable {
enabled.contains(identifier)
}
+ public func skippingFirmwareInapplicable(_ identifier: String) -> VPhonePatchPlan {
+ VPhonePatchPlan(
+ presetIdentifier: presetIdentifier,
+ patchSets: patchSets,
+ selection: selection,
+ enabled: enabled.subtracting([identifier]),
+ skippedByVersion: skippedByVersion,
+ droppedBootEssentials: droppedBootEssentials,
+ parameters: parameters,
+ )
+ }
+
/// Whether the patch that emits `recordIdentifier` runs.
///
/// Record identifiers are sometimes built at runtime (`kernel-boot-sandbox_ext.3`,
diff --git a/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist b/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist
index 9cf0e80c..96ca3cb4 100644
--- a/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist
+++ b/VPhoneExecutable/VPhoneVirtualization/Resources/Info.plist
@@ -9,9 +9,9 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleVersion</key>
- <string>41</string>
+ <string>42</string>
<key>CFBundleShortVersionString</key>
- <string>2.9.5</string>
+ <string>2.10.0</string>
<key>NSMicrophoneUsageDescription</key>
<string>Shares this Mac's microphone with the virtual iPhone so apps running inside it can record.</string>
</dict>
diff --git a/VPhoneLaunchpad/Configuration/Version.xcconfig b/VPhoneLaunchpad/Configuration/Version.xcconfig
index 90adffc5..48ac2eba 100644
--- a/VPhoneLaunchpad/Configuration/Version.xcconfig
+++ b/VPhoneLaunchpad/Configuration/Version.xcconfig
@@ -1,4 +1,4 @@
-MARKETING_VERSION = 2.9.5
+MARKETING_VERSION = 2.10.0
// Bump whenever the helper changes. The app blesses the helper again when the
// installed helper's version or bytes differ from the copy it embeds.
CURRENT_PROJECT_VERSION = 16
diff --git a/VPhoneLaunchpad/Tests/BundleNamesTests.swift b/VPhoneLaunchpad/Tests/BundleNamesTests.swift
index f06d9c0d..46b2a730 100644
--- a/VPhoneLaunchpad/Tests/BundleNamesTests.swift
+++ b/VPhoneLaunchpad/Tests/BundleNamesTests.swift
@@ -17,13 +17,14 @@ struct BundleNamesTests {
// `-local` (legacy), `-local.<8+ lowercase hex>` or `-ci.<7+ hex>`.
// Anything else is kept whole, so it never parses as a version.
let expectations: [Expectation] = [
- Expectation(name: "2.9.2", bundleVersion: "2.9.2", isLocalBuild: false, isCompatible: true, isValid: true),
- Expectation(name: "2.9.2-local", bundleVersion: "2.9.2", isLocalBuild: true, isCompatible: true, isValid: true),
- Expectation(name: "2.9.2-local.ab12cd34", bundleVersion: "2.9.2", isLocalBuild: true, isCompatible: true, isValid: true),
+ Expectation(name: "2.10.0", bundleVersion: "2.10.0", isLocalBuild: false, isCompatible: true, isValid: true),
+ Expectation(name: "2.10.0-local", bundleVersion: "2.10.0", isLocalBuild: true, isCompatible: true, isValid: true),
+ Expectation(name: "2.10.0-local.ab12cd34", bundleVersion: "2.10.0", isLocalBuild: true, isCompatible: true, isValid: true),
// The build identifier is lowercase hex; uppercase is no build.
- Expectation(name: "2.9.2-local.AB12CD34", bundleVersion: "2.9.2-local.AB12CD34", isLocalBuild: false, isCompatible: false, isValid: true),
- Expectation(name: "2.9.2-local.ab12", bundleVersion: "2.9.2-local.ab12", isLocalBuild: false, isCompatible: false, isValid: true),
- Expectation(name: "2.9.2-ci.abcdef1", bundleVersion: "2.9.2", isLocalBuild: false, isCompatible: true, isValid: true),
+ Expectation(name: "2.10.0-local.AB12CD34", bundleVersion: "2.10.0-local.AB12CD34", isLocalBuild: false, isCompatible: false, isValid: true),
+ Expectation(name: "2.10.0-local.ab12", bundleVersion: "2.10.0-local.ab12", isLocalBuild: false, isCompatible: false, isValid: true),
+ Expectation(name: "2.10.0-ci.abcdef1", bundleVersion: "2.10.0", isLocalBuild: false, isCompatible: true, isValid: true),
+ Expectation(name: "2.9.5", bundleVersion: "2.9.5", isLocalBuild: false, isCompatible: false, isValid: true),
Expectation(name: "2.8.9-local.ab12cd34", bundleVersion: "2.8.9", isLocalBuild: true, isCompatible: false, isValid: true),
Expectation(name: "../x", bundleVersion: "../x", isLocalBuild: false, isCompatible: false, isValid: false),
Expectation(name: "", bundleVersion: "", isLocalBuild: false, isCompatible: false, isValid: false),
diff --git a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift
index 77a856e4..d04dcfde 100644
--- a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift
+++ b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift
@@ -70,24 +70,8 @@ nonisolated struct VPhoneLaunchpadBundleReceipt: Codable, Equatable, Sendable {
/// checks them to give an early message; the helper checks them because it
/// must not trust the app.
nonisolated enum VPhoneLaunchpadNames {
- /// 2.2.0 renamed every patch to `{component}-{effect}-{name}` and dropped
- /// `--force-dsc-maxslide` from `cfw install`, so an older bundle neither
- /// reports the identifiers the patch table reads nor takes the arguments
- /// the helper passes. 2.4.0 added the network options of `vm config`
- /// (`--ip`, `--mac`, `--forward`, `--mdns`, `--mac-name`), which a
- /// machine's Settings pass. 2.5.0 added `vm leases`, which Host Setup
- /// lists and the helper runs to release orphaned DHCP leases. 2.6.0 added
- /// `vm config --unlock-at-startup`, which a machine's Settings pass. 2.7.0
- /// added `vm clone --new-identity`, which Clone passes, and
- /// `vm snapshot`, which the Snapshots sheet runs. 2.8.0 added `vm config
- /// --sync-host-location`, which a machine's Settings pass. 2.9.0 added
- /// `--work-parent` on `cfw install`, `update-environment` and
- /// `update-kernel`, which the helper passes, and `vm template
- /// find|trim|setup|adopt --json|list --json|delete` and `vm create
- /// --template --skip-first-boot`, which New Machine and Templates run,
- /// and `template` and `templateMatch` in `vm list --json`, which a
- /// machine's inspector shows.
- private static let minimumBundleComponents = (2, 9, 0)
+ /// Minimum bundle version for Launchpad's CLI and receipt contract.
+ private static let minimumBundleComponents = (2, 10, 0)
static let minimumBundleVersion =
"\(minimumBundleComponents.0).\(minimumBundleComponents.1).\(minimumBundleComponents.2)"