Run a virtual iPhone on an Apple Silicon Mac.
Swift
Keep userspace debugging off HomeView, whose install refuses its guest patches
Maximilian Paß129cd0422815
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchFeature.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchFeature.swiftindex 474792e6..966abcc0 100644--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchFeature.swift+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwarePatchFeature.swift@@ -44,6 +44,8 @@ public struct FirmwarePatchFeature: Sendable, Hashable, Identifiable {let refused: [String] = switch preset.identifier {case VPhonePatchPreset.homePodMiniIdentifier:FirmwareGuestPatchResolution.unvalidatedHomePodGuestPatches(enabled: result)+ case VPhonePatchPreset.homeViewIdentifier:+ FirmwareGuestPatchResolution.unvalidatedHomeViewGuestPatches(enabled: result)case VPhonePatchPreset.tvOSIdentifier:FirmwareGuestPatchResolution.unvalidatedTVGuestPatches(enabled: result)case VPhonePatchPreset.tvOS4KIdentifier:diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/PatchSets/FirmwarePatchSetCatalogTests.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/PatchSets/FirmwarePatchSetCatalogTests.swiftindex 3df96123..be84008e 100644--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/PatchSets/FirmwarePatchSetCatalogTests.swift+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/PatchSets/FirmwarePatchSetCatalogTests.swift@@ -312,8 +312,9 @@ struct FirmwarePatchSetCatalogTests {let declared = Set(FirmwarePatchSetCatalog.allDeclarations.map(\.identifier))#expect(feature.allPatches.isSubset(of: declared))let restoreImage = [VPhonePatchPreset.minimalIdentifier, VPhonePatchPreset.watchOSIdentifier]- // cfw install refuses the debugserver and launchd patches on an Apple TV.- let appleTV = [VPhonePatchPreset.tvOSIdentifier, VPhonePatchPreset.tvOS4KIdentifier]+ // cfw install refuses the debugserver and launchd patches on an Apple TV+ // and on HomeView.+ let appleTV = [VPhonePatchPreset.tvOSIdentifier, VPhonePatchPreset.tvOS4KIdentifier, VPhonePatchPreset.homeViewIdentifier]for preset in FirmwarePatchSetCatalog.builtInPresets {if appleTV.contains(preset.identifier) {#expect(feature.patches(in: preset) == nil, "\(preset.identifier)")