From ca097f4d88524cd2b5ff73d20cb3f7dc269bf8af Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 24 Sep 2026 09:36:40 +0200 Subject: [PATCH 1/2] fix lint error --- .../CryptomatorCloudAccess/Logging/HTTPDebugLogger.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Sources/CryptomatorCloudAccess/Logging/HTTPDebugLogger.swift b/Sources/CryptomatorCloudAccess/Logging/HTTPDebugLogger.swift index e7f60d3..22bd49c 100644 --- a/Sources/CryptomatorCloudAccess/Logging/HTTPDebugLogger.swift +++ b/Sources/CryptomatorCloudAccess/Logging/HTTPDebugLogger.swift @@ -71,7 +71,12 @@ enum HTTPDebugLogger { return } CloudAccessDDLogDebug("<-- \(httpResponse.statusCode) \(HTTPURLResponse.localizedString(forStatusCode: httpResponse.statusCode)) \(response.url?.absoluteString ?? "nil")") - httpResponse.allHeaderFields.reduce(into: [:]) { if let key = $1.key as? String { $0[key] = $1.value } } + httpResponse.allHeaderFields + .reduce(into: [String: Any]()) { result, header in + if let key = header.key as? String { + result[key] = header.value + } + } .sorted { $0.key.localizedCaseInsensitiveCompare($1.key) == .orderedAscending } .filter { !isExcludedHeader($0.key) } .forEach { CloudAccessDDLogDebug("\($0.key): \($0.value)") } From 9a7a42d2b6054e5f8d2d56837a129364a57f11c5 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Thu, 24 Sep 2026 09:36:57 +0200 Subject: [PATCH 2/2] add toolchain detection for swiftlint --- Scripts/process.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Scripts/process.sh b/Scripts/process.sh index 9ab497b..eb70bf5 100755 --- a/Scripts/process.sh +++ b/Scripts/process.sh @@ -13,6 +13,17 @@ fi final_status=0 +# SwiftLint needs sourcekitdInProc, which it can't locate on its own when the active developer dir is the Command Line Tools +if [[ -z "$TOOLCHAIN_DIR" ]]; then + developer_dir=$(xcode-select -p 2>/dev/null) + if [[ -d "$developer_dir/Toolchains/XcodeDefault.xctoolchain" ]]; then + export TOOLCHAIN_DIR="$developer_dir/Toolchains/XcodeDefault.xctoolchain" + elif [[ -d "$developer_dir/usr/lib/sourcekitdInProc.framework" ]]; then + export TOOLCHAIN_DIR="$developer_dir" + fi +fi + + function process_output() { printf '\n# Running %s\n' "$1" local start=$(date +%s)