From b7f5acd332021e7e9e369165ec3f58f4a798262d Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 1 Mar 2023 14:07:04 -0600 Subject: [PATCH] [AltTests] Replaces iOS 16+ URL(filePath:) with URL(fileURLWithPath:) --- AltTests/AltTests.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AltTests/AltTests.swift b/AltTests/AltTests.swift index 2eaab3ae..d6178700 100644 --- a/AltTests/AltTests.swift +++ b/AltTests/AltTests.swift @@ -48,7 +48,7 @@ extension Error extension URL { - static let testFileURL = URL(filePath: "~/Desktop/TestApp.ipa") + static let testFileURL = URL(fileURLWithPath: "~/Desktop/TestApp.ipa") } final class AltTests: XCTestCase @@ -1226,7 +1226,7 @@ extension AltTests func testAddingLocalizedFailureThenSerializing() async throws { - let error = CocoaError(.fileReadNoSuchFile, userInfo: [NSURLErrorKey: URL(filePath: "~/Users/rileytestut/delta")]) + let error = CocoaError(.fileReadNoSuchFile, userInfo: [NSURLErrorKey: URL(fileURLWithPath: "~/Users/rileytestut/delta")]) let nsError = (error as NSError).withLocalizedFailure(.testOriginalLocalizedFailure) let receivedError = try self.send(nsError)