From f08ddf38559a90d4f3f0f704a771ac0efb152ebb Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Tue, 15 Nov 2022 10:01:52 +0400 Subject: [PATCH] Fetch IPSWs via file (#322) --- Sources/tart/VM.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/tart/VM.swift b/Sources/tart/VM.swift index 9f0c998..48fc8dc 100644 --- a/Sources/tart/VM.swift +++ b/Sources/tart/VM.swift @@ -63,7 +63,7 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject { static func retrieveIPSW(remoteURL: URL) async throws -> URL { // Check if we already have this IPSW in cache - let (channel, response) = try await Fetcher.fetch(URLRequest(url: remoteURL)) + let (channel, response) = try await Fetcher.fetch(URLRequest(url: remoteURL), viaFile: true) if let hash = response.value(forHTTPHeaderField: "x-amz-meta-digest-sha256") { let ipswLocation = try IPSWCache().locationFor(fileName: "sha256:\(hash).ipsw")