Run a virtual iPhone on an Apple Silicon Mac.
Swift
Accept --work-parent on cfw update-environment and update-kernel
Lakr42548540a083
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swiftindex 959409bd..c7ec1a7e 100644--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Restore/VPhoneRestoreCommand.swift@@ -403,6 +403,8 @@ struct VPhoneCustomFirmwareUpdateKernelCommand: ParsableCommand {@OptionGroup var lib: VPhoneLibraryOption@Argument(help: "VM name") var name: String?+ @Option(name: .customLong("work-parent"), help: "Root-owned private CFW temporary directory")+ var workParent = VPhoneCustomFirmwareInstaller.defaultWorkParentfunc run() throws {let name = try VPhoneVirtualMachineSelection.resolveExisting(name, in: lib.library)@@ -411,6 +413,7 @@ struct VPhoneCustomFirmwareUpdateKernelCommand: ParsableCommand {bundle: bundle.url,resources: VPhoneResources.resolve(),mode: .kernelUpdate,+ workParent: workParent,)throw ExitCode(code)}@@ -449,6 +452,8 @@ struct VPhoneCustomFirmwareUpdateEnvironmentCommand: ParsableCommand {@OptionGroup var lib: VPhoneLibraryOption@Argument(help: "VM name") var name: String?+ @Option(name: .customLong("work-parent"), help: "Root-owned private CFW temporary directory")+ var workParent = VPhoneCustomFirmwareInstaller.defaultWorkParentfunc run() throws {let name = try VPhoneVirtualMachineSelection.resolveExisting(name, in: lib.library)@@ -457,6 +462,7 @@ struct VPhoneCustomFirmwareUpdateEnvironmentCommand: ParsableCommand {bundle: bundle.url,resources: VPhoneResources.resolve(),mode: .environmentOnly,+ workParent: workParent,)throw ExitCode(code)}diff --git a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swiftindex 6cf39c97..c29e6ebf 100644--- a/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift+++ b/VPhoneLaunchpad/VPhoneLaunchpadShared/VPhoneLaunchpadBundleStore.swift@@ -80,8 +80,9 @@ nonisolated enum VPhoneLaunchpadNames {/// `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 adds the- /// helper-passed `cfw install --work-parent` argument.+ /// --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.private static let minimumBundleComponents = (2, 9, 0)static let minimumBundleVersion ="\(minimumBundleComponents.0).\(minimumBundleComponents.1).\(minimumBundleComponents.2)"