From 51c7750d89f51d27ca1bada1c5d15fb8f526fe50 Mon Sep 17 00:00:00 2001 From: Matt <85322+mattmassicotte@users.noreply.github.com> Date: Fri, 1 Dec 2023 11:36:32 -0500 Subject: [PATCH] formatting, older API for linux compat --- Package.swift | 1 - .../Extensions/XCBuildConfiguration+BuildSettings.swift | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Package.swift b/Package.swift index b941df3..83d61ef 100644 --- a/Package.swift +++ b/Package.swift @@ -30,7 +30,6 @@ let package = Package( .copy("TestData"), ] ), - ] ) diff --git a/Sources/XCLinting/Extensions/XCBuildConfiguration+BuildSettings.swift b/Sources/XCLinting/Extensions/XCBuildConfiguration+BuildSettings.swift index 65f07f1..40834ee 100644 --- a/Sources/XCLinting/Extensions/XCBuildConfiguration+BuildSettings.swift +++ b/Sources/XCLinting/Extensions/XCBuildConfiguration+BuildSettings.swift @@ -9,7 +9,7 @@ extension XCBuildConfiguration { return nil } - return try String(contentsOf: URL(filePath: fullPath)) + return try String(contentsOf: URL(fileURLWithPath: fullPath)) } func baseConfigurationStatements(with sourceRoot: String) throws -> [Statement] {