Skip to content

A native macOS app for managing virtual iPhones - browse, create, and boot iOS research VMs from a single window.

Swift

core: Adapt vm import to v1.0.7 positional archive argument

zqxwce7d88a25f4e01
diff --git a/Sources/VPhoneWSCore/Tasks/VPhoneCommandBuilder.swift b/Sources/VPhoneWSCore/Tasks/VPhoneCommandBuilder.swift
index ffca9ab..e7636e0 100644
--- a/Sources/VPhoneWSCore/Tasks/VPhoneCommandBuilder.swift
+++ b/Sources/VPhoneWSCore/Tasks/VPhoneCommandBuilder.swift
@@ -28,7 +28,7 @@ public struct VPhoneCommandBuilder: Sendable {
}
public func importArgs(archive: String, name: String) -> [String] {
- withLibraryRoot(["vm", "import", "-i", archive, "-n", name])
+ withLibraryRoot(["vm", "import", archive, "-n", name])
}
private func withLibraryRoot(_ argv: [String]) -> [String] {
diff --git a/tests/VPhoneWSCoreTests/VPhoneCommandBuilderTests.swift b/tests/VPhoneWSCoreTests/VPhoneCommandBuilderTests.swift
index bfa18ee..56a3567 100644
--- a/tests/VPhoneWSCoreTests/VPhoneCommandBuilderTests.swift
+++ b/tests/VPhoneWSCoreTests/VPhoneCommandBuilderTests.swift
@@ -10,5 +10,5 @@ import Testing
@Test func exportAndImportArgs() {
let b = VPhoneCommandBuilder(libraryRoot: nil)
#expect(b.exportArgs(name: "a", out: "/tmp/a.tar.xz") == ["vm","export","a","-o","/tmp/a.tar.xz"])
- #expect(b.importArgs(archive: "/tmp/a.tar.xz", name: "restored") == ["vm","import","-i","/tmp/a.tar.xz","-n","restored"])
+ #expect(b.importArgs(archive: "/tmp/a.tar.xz", name: "restored") == ["vm","import","/tmp/a.tar.xz","-n","restored"])
}