Build Information
Failed to build swift-api-client, reference 1.69.0 (8b5149
), with Swift 6.1 for Android on 9 Aug 2025 14:52:19 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
Build Log
37 | configs.headers = .default
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'ID' to actor-isolated instance method 'response(for:)' risks causing data races between actor-isolated and local nonisolated uses
75 | return response
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| `- note: access can happen concurrently
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'value' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
82 | }
83 | return (value, httpResponse)
| `- note: access can happen concurrently
84 | }
85 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'AnyHashable' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
| `- note: access can happen concurrently
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:79:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
79 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- note: closure captures 'self' which is accessible to code in the current task
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:16: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ID' to actor-isolated instance method 'removeResponse(for:)' risks causing races in between task-isolated and actor-isolated uses
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
:
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| `- warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
75 | return response
76 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:143:31: warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | private extension APIClient {
129 |
130 | func timeout<D>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
131 | _ timeout: D,
132 | seconds: @escaping @Sendable (D) -> TimeInterval,
:
141 | timeout: timeout,
142 | seconds: inSeconds,
143 | sleep: { try await sleep(timeout) },
| `- warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 | fileID: fileID,
145 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:166:20: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
164 | try await withTimeout(
165 | timeout,
166 | seconds: { _ in seconds },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
167 | sleep: { _ in try await sleep() },
168 | fileID: fileID,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:167:28: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
165 | timeout,
166 | seconds: { _ in seconds },
167 | sleep: { _ in try await sleep() },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
168 | fileID: fileID,
169 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:139:15: warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
137 | } else if let requestToken, let url = request.url {
138 | (accessToken, refreshToken, currentExpiryDate) = try await withThrowingSynchronizedAccess(id: url.host) {
139 | try await requestToken(configs)
| |- warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | } else {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:175:54: warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
98 | }
99 |
100 | public struct TokenRefresherMiddleware: HTTPClientMiddleware {
| `- note: consider making struct 'TokenRefresherMiddleware' conform to the 'Sendable' protocol
101 |
102 | private let tokenCacheService: SecureCacheService
:
173 | ) async throws -> (String, String?, Date?) {
174 | try await withThrowingSynchronizedAccess(id: accessToken) { [self] in
175 | let (token, refreshToken, expiryDate) = try await refresh(refreshToken, configs)
| `- warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | try await tokenCacheService.save(token, for: .accessToken)
177 | if let refreshToken {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift:35:13: warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private extension URLSession {
34 |
35 | static var apiClient: URLSession = {
| |- warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'apiClient' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'apiClient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var configs = URLSessionConfiguration.default
37 | configs.headers = .default
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'ID' to actor-isolated instance method 'response(for:)' risks causing data races between actor-isolated and local nonisolated uses
75 | return response
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| `- note: access can happen concurrently
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'value' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
82 | }
83 | return (value, httpResponse)
| `- note: access can happen concurrently
84 | }
85 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'AnyHashable' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
| `- note: access can happen concurrently
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:79:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
79 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- note: closure captures 'self' which is accessible to code in the current task
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:16: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ID' to actor-isolated instance method 'removeResponse(for:)' risks causing races in between task-isolated and actor-isolated uses
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
:
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| `- warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
75 | return response
76 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:143:31: warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | private extension APIClient {
129 |
130 | func timeout<D>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
131 | _ timeout: D,
132 | seconds: @escaping @Sendable (D) -> TimeInterval,
:
141 | timeout: timeout,
142 | seconds: inSeconds,
143 | sleep: { try await sleep(timeout) },
| `- warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 | fileID: fileID,
145 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:166:20: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
164 | try await withTimeout(
165 | timeout,
166 | seconds: { _ in seconds },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
167 | sleep: { _ in try await sleep() },
168 | fileID: fileID,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:167:28: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
165 | timeout,
166 | seconds: { _ in seconds },
167 | sleep: { _ in try await sleep() },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
168 | fileID: fileID,
169 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:139:15: warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
137 | } else if let requestToken, let url = request.url {
138 | (accessToken, refreshToken, currentExpiryDate) = try await withThrowingSynchronizedAccess(id: url.host) {
139 | try await requestToken(configs)
| |- warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | } else {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:175:54: warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
98 | }
99 |
100 | public struct TokenRefresherMiddleware: HTTPClientMiddleware {
| `- note: consider making struct 'TokenRefresherMiddleware' conform to the 'Sendable' protocol
101 |
102 | private let tokenCacheService: SecureCacheService
:
173 | ) async throws -> (String, String?, Date?) {
174 | try await withThrowingSynchronizedAccess(id: accessToken) { [self] in
175 | let (token, refreshToken, expiryDate) = try await refresh(refreshToken, configs)
| `- warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | try await tokenCacheService.save(token, for: .accessToken)
177 | if let refreshToken {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift:35:13: warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private extension URLSession {
34 |
35 | static var apiClient: URLSession = {
| |- warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'apiClient' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'apiClient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var configs = URLSessionConfiguration.default
37 | configs.headers = .default
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'ID' to actor-isolated instance method 'response(for:)' risks causing data races between actor-isolated and local nonisolated uses
75 | return response
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| `- note: access can happen concurrently
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'value' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
82 | }
83 | return (value, httpResponse)
| `- note: access can happen concurrently
84 | }
85 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'AnyHashable' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
| `- note: access can happen concurrently
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:79:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
79 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- note: closure captures 'self' which is accessible to code in the current task
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:16: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ID' to actor-isolated instance method 'removeResponse(for:)' risks causing races in between task-isolated and actor-isolated uses
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
62 | let id: (HTTPRequestComponents) -> ID
63 |
64 | func execute<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
65 | request: HTTPRequestComponents,
66 | configs: APIClient.Configs,
:
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| `- warning: non-sendable result type '(T, HTTPResponse)?' cannot be sent from actor-isolated context in call to instance method 'response(for:)'; this is an error in the Swift 6 language mode
75 | return response
76 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:143:31: warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
128 | private extension APIClient {
129 |
130 | func timeout<D>(
| `- note: consider making generic parameter 'D' conform to the 'Sendable' protocol
131 | _ timeout: D,
132 | seconds: @escaping @Sendable (D) -> TimeInterval,
:
141 | timeout: timeout,
142 | seconds: inSeconds,
143 | sleep: { try await sleep(timeout) },
| `- warning: capture of 'timeout' with non-sendable type 'D' in a '@Sendable' closure; this is an error in the Swift 6 language mode
144 | fileID: fileID,
145 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:166:20: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
164 | try await withTimeout(
165 | timeout,
166 | seconds: { _ in seconds },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
167 | sleep: { _ in try await sleep() },
168 | fileID: fileID,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TimeoutModifiers.swift:167:28: warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | private struct TimeoutMiddleware<D>: HTTPClientMiddleware {
| `- note: consider making generic struct 'TimeoutMiddleware' conform to the 'Sendable' protocol
152 |
153 | let timeout: D
:
165 | timeout,
166 | seconds: { _ in seconds },
167 | sleep: { _ in try await sleep() },
| `- warning: capture of 'self' with non-sendable type 'TimeoutMiddleware<D>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
168 | fileID: fileID,
169 | line: line
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:139:15: warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
137 | } else if let requestToken, let url = request.url {
138 | (accessToken, refreshToken, currentExpiryDate) = try await withThrowingSynchronizedAccess(id: url.host) {
139 | try await requestToken(configs)
| |- warning: capture of 'requestToken' with non-sendable type '(APIClient.Configs) async throws -> (String, String?, Date?)' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
140 | }
141 | } else {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/TokenRefresher/TokenRefresher.swift:175:54: warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
98 | }
99 |
100 | public struct TokenRefresherMiddleware: HTTPClientMiddleware {
| `- note: consider making struct 'TokenRefresherMiddleware' conform to the 'Sendable' protocol
101 |
102 | private let tokenCacheService: SecureCacheService
:
173 | ) async throws -> (String, String?, Date?) {
174 | try await withThrowingSynchronizedAccess(id: accessToken) { [self] in
175 | let (token, refreshToken, expiryDate) = try await refresh(refreshToken, configs)
| `- warning: capture of 'self' with non-sendable type 'TokenRefresherMiddleware' in a '@Sendable' closure; this is an error in the Swift 6 language mode
176 | try await tokenCacheService.save(token, for: .accessToken)
177 | if let refreshToken {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift:35:13: warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private extension URLSession {
34 |
35 | static var apiClient: URLSession = {
| |- warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'apiClient' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'apiClient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var configs = URLSessionConfiguration.default
37 | configs.headers = .default
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:74:52: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
72 | }
73 | let requestID = id(request)
74 | if let response: (T, HTTPResponse) = await cache.response(for: requestID) {
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'ID' to actor-isolated instance method 'response(for:)' risks causing data races between actor-isolated and local nonisolated uses
75 | return response
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| `- note: access can happen concurrently
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending 'value' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
82 | }
83 | return (value, httpResponse)
| `- note: access can happen concurrently
84 | }
85 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:78:15: warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
76 | }
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
| |- warning: sending value of non-Sendable type 'AnyHashable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type 'AnyHashable' to actor-isolated instance method 'setResponse(response:for:)' risks causing data races between actor-isolated and local nonisolated uses
79 | Task {
| `- note: access can happen concurrently
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:79:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
77 | let (value, httpResponse) = try await next(request, configs)
78 | await cache.setResponse(response: (value, httpResponse), for: requestID)
79 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| `- note: closure captures 'self' which is accessible to code in the current task
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ThrottleModifier.swift:81:16: warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
79 | Task {
80 | try? await Task.sleep(nanoseconds: UInt64(interval * 1_000_000_000))
81 | await cache.removeResponse(for: requestID)
| |- warning: sending value of non-Sendable type 'ID' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type 'ID' to actor-isolated instance method 'removeResponse(for:)' risks causing races in between task-isolated and actor-isolated uses
82 | }
83 | return (value, httpResponse)
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/APIClient.swift:209:6: warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
207 | let current = APIClient.globalModifier
208 | return try APIClient.$globalModifier.withValue(
209 | { modifiers(current($0)) },
| |- warning: capture of 'modifiers' with non-sendable type '(APIClient) -> APIClient' in a '@Sendable' closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
210 | operation: operation
211 | )
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:148:32: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
146 | await configs.logRequestCompleted(
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
149 | data: responseWrapper.value?.0 as? Data,
150 | uuid: uuid,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:149:28: warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
108 | extension APIClientCaller where Result == AsyncThrowingValue<(Value, HTTPResponse)> {
109 |
110 | static func http<T>(
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
111 | task: @escaping @Sendable (HTTPRequestComponents, APIClient.Configs) async throws -> (T, HTTPResponse),
112 | validate: @escaping (T, HTTPResponse, APIClient.Configs) throws -> Void,
:
147 | requestWrapper.value,
148 | response: responseWrapper.value?.1,
149 | data: responseWrapper.value?.0 as? Data,
| `- warning: non-sendable type '(T, HTTPResponse)?' of property 'value' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
150 | uuid: uuid,
151 | start: start
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/HTTPClient.swift:128:29: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
126 | let result = try await task(request, configs)
127 | configs.listener.onResponseReceived(id: uuid, response: result, configs: configs)
128 | await responseWrapper.set(result)
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending value of non-Sendable type '(T, HTTPResponse)' to actor-isolated instance method 'set' risks causing data races between actor-isolated and local nonisolated uses
129 | return result
| `- note: access can happen concurrently
130 | }
131 | } catch {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Clients/URLSession+Client.swift:93:19: warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
91 | let task = method { t, response, error in
92 | if let t, let response {
93 | continuation.resume(returning: (t, response.http))
| |- warning: sending value of non-Sendable type '(T, HTTPResponse)' risks causing data races; this is an error in the Swift 6 language mode
| `- note: Passing task-isolated value of non-Sendable type '(T, HTTPResponse)' as a 'sending' parameter risks causing races inbetween task-isolated uses and uses reachable from the callee
94 | } else {
95 | continuation.resume(throwing: error ?? Errors.unknown)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:17:10: warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
15 | AsyncStream { cont in
16 | for element in sequence {
17 | cont.yield(element)
| |- warning: sending 'element' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'element' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
18 | }
19 | cont.finish()
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:90:8: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
88 |
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
91 | await self._setOnCancel(onCancel)
| `- note: closure captures 'onCancel' which is accessible to code in the current task
92 | }
93 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Extensions/Async++.swift:91:15: warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
89 | nonisolated func setOnCancel(_ onCancel: @escaping () -> Void) {
90 | Task {
91 | await self._setOnCancel(onCancel)
| |- warning: sending 'onCancel' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'onCancel' to actor-isolated instance method '_setOnCancel' risks causing data races between actor-isolated and task-isolated uses
92 | }
93 | }
[504/514] Emitting module SwiftAPIClient
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ErrorHandler.swift:121:13: warning: stored property 'context' of 'Sendable'-conforming struct 'APIClientError' has non-sendable type 'APIErrorContext'; this is an error in the Swift 6 language mode
42 | }
43 |
44 | public struct APIErrorContext: Equatable {
| `- note: consider making struct 'APIErrorContext' conform to the 'Sendable' protocol
45 |
46 | public var request: HTTPRequestComponents?
:
119 | public var error: Error
120 | public var configs: APIClient.Configs
121 | public var context: APIErrorContext
| `- warning: stored property 'context' of 'Sendable'-conforming struct 'APIClientError' has non-sendable type 'APIErrorContext'; this is an error in the Swift 6 language mode
122 | public var includeBody: IncludeBodyPolicy
123 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/ErrorHandler.swift:122:13: warning: stored property 'includeBody' of 'Sendable'-conforming struct 'APIClientError' has non-sendable type 'APIClientError.IncludeBodyPolicy'; this is an error in the Swift 6 language mode
120 | public var configs: APIClient.Configs
121 | public var context: APIErrorContext
122 | public var includeBody: IncludeBodyPolicy
| `- warning: stored property 'includeBody' of 'Sendable'-conforming struct 'APIClientError' has non-sendable type 'APIClientError.IncludeBodyPolicy'; this is an error in the Swift 6 language mode
123 |
124 | public init(error: Error, configs: APIClient.Configs, context: APIErrorContext, includeBody: IncludeBodyPolicy) {
:
158 | }
159 |
160 | public enum IncludeBodyPolicy {
| `- note: consider making enum 'IncludeBodyPolicy' conform to the 'Sendable' protocol
161 |
162 | case never
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/HTTPClientMiddleware.swift:38:14: warning: stored property 'values' of 'Sendable'-conforming struct 'HTTPClientMiddlewareError' has non-sendable type '[PartialKeyPath<HTTPClientMiddlewareError> : Any]'; this is an error in the Swift 6 language mode
36 |
37 | public let underlying: Error
38 | private var values: [PartialKeyPath<Self>: Any] = [:]
| `- warning: stored property 'values' of 'Sendable'-conforming struct 'HTTPClientMiddlewareError' has non-sendable type '[PartialKeyPath<HTTPClientMiddlewareError> : Any]'; this is an error in the Swift 6 language mode
39 |
40 | public init(_ underlying: Error) {
Swift.PartialKeyPath:1:14: note: generic class 'PartialKeyPath' does not conform to the 'Sendable' protocol
1 | public class PartialKeyPath<Root> : AnyKeyPath {
| `- note: generic class 'PartialKeyPath' does not conform to the 'Sendable' protocol
2 | deinit
3 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/HTTPClientMiddleware.swift:38:14: warning: stored property 'values' of 'Sendable'-conforming struct 'HTTPClientMiddlewareError' has non-sendable type '[PartialKeyPath<HTTPClientMiddlewareError> : Any]'; this is an error in the Swift 6 language mode
36 |
37 | public let underlying: Error
38 | private var values: [PartialKeyPath<Self>: Any] = [:]
| `- warning: stored property 'values' of 'Sendable'-conforming struct 'HTTPClientMiddlewareError' has non-sendable type '[PartialKeyPath<HTTPClientMiddlewareError> : Any]'; this is an error in the Swift 6 language mode
39 |
40 | public init(_ underlying: Error) {
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/LoggingModifier.swift:187:13: warning: static property 'defaultMaskedHeaders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
185 | public extension Set<HTTPField.Name> {
186 |
187 | static var defaultMaskedHeaders: Set<HTTPField.Name> = [
| |- warning: static property 'defaultMaskedHeaders' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultMaskedHeaders' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultMaskedHeaders' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
188 | .authorization,
189 | .authenticationInfo,
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/URLSessionModifiers.swift:35:13: warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
33 | private extension URLSession {
34 |
35 | static var apiClient: URLSession = {
| |- warning: static property 'apiClient' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'apiClient' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'apiClient' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
36 | var configs = URLSessionConfiguration.default
37 | configs.headers = .default
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:124:21: warning: static property 'utf8' is not concurrency-safe because non-'Sendable' type 'ContentType.Charset' may have shared mutable state; this is an error in the Swift 6 language mode
109 |
110 | /// Predefined application content types.
111 | struct Charset: RawRepresentable, ExpressibleByStringLiteral, Hashable {
| `- note: consider making struct 'Charset' conform to the 'Sendable' protocol
112 |
113 | public var rawValue: String
:
122 |
123 | /// `utf8`
124 | public static let utf8: Charset = "utf-8"
| |- warning: static property 'utf8' is not concurrency-safe because non-'Sendable' type 'ContentType.Charset' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'utf8' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
125 | }
126 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:141:21: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
139 |
140 | /// `json`
141 | public static let json: Application = "json"
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
142 | /// `schema+json`
143 | public static let schemaJson: Application = "schema+json"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:143:21: warning: static property 'schemaJson' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
141 | public static let json: Application = "json"
142 | /// `schema+json`
143 | public static let schemaJson: Application = "schema+json"
| |- warning: static property 'schemaJson' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'schemaJson' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
144 | /// `schema-instance+json`
145 | public static let schemaInstanceJson: Application = "schema-instance+json"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:145:21: warning: static property 'schemaInstanceJson' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
143 | public static let schemaJson: Application = "schema+json"
144 | /// `schema-instance+json`
145 | public static let schemaInstanceJson: Application = "schema-instance+json"
| |- warning: static property 'schemaInstanceJson' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'schemaInstanceJson' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
146 | /// `xml`
147 | public static let xml: Application = "xml"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:147:21: warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
145 | public static let schemaInstanceJson: Application = "schema-instance+json"
146 | /// `xml`
147 | public static let xml: Application = "xml"
| |- warning: static property 'xml' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'xml' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
148 | /// `octet-stream`
149 | public static let octetStream: Application = "octet-stream"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:149:21: warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
147 | public static let xml: Application = "xml"
148 | /// `octet-stream`
149 | public static let octetStream: Application = "octet-stream"
| |- warning: static property 'octetStream' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'octetStream' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
150 | /// `x-www-form-urlencoded`
151 | public static let urlEncoded: Application = "x-www-form-urlencoded"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:151:21: warning: static property 'urlEncoded' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
126 |
127 | /// Predefined application content types.
128 | struct Application: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Application' conform to the 'Sendable' protocol
129 |
130 | public var rawValue: String
:
149 | public static let octetStream: Application = "octet-stream"
150 | /// `x-www-form-urlencoded`
151 | public static let urlEncoded: Application = "x-www-form-urlencoded"
| |- warning: static property 'urlEncoded' is not concurrency-safe because non-'Sendable' type 'ContentType.Application' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'urlEncoded' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
152 | }
153 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:174:21: warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'ContentType.Text' may have shared mutable state; this is an error in the Swift 6 language mode
159 |
160 | /// Predefined text content types.
161 | struct Text: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Text' conform to the 'Sendable' protocol
162 |
163 | public var rawValue: String
:
172 |
173 | /// `plain`
174 | public static let plain: Text = "plain"
| |- warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'ContentType.Text' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'plain' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
175 | /// `html`
176 | public static let html: Text = "html"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:176:21: warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'ContentType.Text' may have shared mutable state; this is an error in the Swift 6 language mode
159 |
160 | /// Predefined text content types.
161 | struct Text: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Text' conform to the 'Sendable' protocol
162 |
163 | public var rawValue: String
:
174 | public static let plain: Text = "plain"
175 | /// `html`
176 | public static let html: Text = "html"
| |- warning: static property 'html' is not concurrency-safe because non-'Sendable' type 'ContentType.Text' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'html' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
177 | }
178 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:199:21: warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'ContentType.Multipart' may have shared mutable state; this is an error in the Swift 6 language mode
184 |
185 | /// Predefined multipart content types.
186 | struct Multipart: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Multipart' conform to the 'Sendable' protocol
187 |
188 | public var rawValue: String
:
197 |
198 | /// `form-data`
199 | public static let formData: Multipart = "form-data"
| |- warning: static property 'formData' is not concurrency-safe because non-'Sendable' type 'ContentType.Multipart' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'formData' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
200 | /// `byteranges`
201 | public static let byteranges: Multipart = "byteranges"
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:201:21: warning: static property 'byteranges' is not concurrency-safe because non-'Sendable' type 'ContentType.Multipart' may have shared mutable state; this is an error in the Swift 6 language mode
184 |
185 | /// Predefined multipart content types.
186 | struct Multipart: RawRepresentable, ExpressibleByStringLiteral {
| `- note: consider making struct 'Multipart' conform to the 'Sendable' protocol
187 |
188 | public var rawValue: String
:
199 | public static let formData: Multipart = "form-data"
200 | /// `byteranges`
201 | public static let byteranges: Multipart = "byteranges"
| |- warning: static property 'byteranges' is not concurrency-safe because non-'Sendable' type 'ContentType.Multipart' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'byteranges' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
202 | }
203 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/ContentType.swift:215:13: warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
4 | ///
5 | /// Example: `.application(.json)` = `application/json`
6 | public struct ContentType: Codable, Hashable, RawRepresentable, ExpressibleByStringLiteral, LosslessStringConvertible {
| `- note: consider making struct 'ContentType' conform to the 'Sendable' protocol
7 |
8 | public typealias RawValue = String
:
213 |
214 | /// `*/*`
215 | static let any = ContentType("*", "*")
| |- warning: static property 'any' is not concurrency-safe because non-'Sendable' type 'ContentType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'any' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
216 | }
217 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:10:20: warning: static property 'method' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
| |- warning: static property 'method' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'method' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | public static let path = LoggingComponents(rawValue: 1 << 1)
12 | public static let headers = LoggingComponents(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:11:20: warning: static property 'path' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
11 | public static let path = LoggingComponents(rawValue: 1 << 1)
| |- warning: static property 'path' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'path' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let headers = LoggingComponents(rawValue: 1 << 2)
13 | public static let body = LoggingComponents(rawValue: 1 << 3)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:12:20: warning: static property 'headers' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
11 | public static let path = LoggingComponents(rawValue: 1 << 1)
12 | public static let headers = LoggingComponents(rawValue: 1 << 2)
| |- warning: static property 'headers' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'headers' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | public static let body = LoggingComponents(rawValue: 1 << 3)
14 | public static let bodySize = LoggingComponents(rawValue: 1 << 4)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:13:20: warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
11 | public static let path = LoggingComponents(rawValue: 1 << 1)
12 | public static let headers = LoggingComponents(rawValue: 1 << 2)
13 | public static let body = LoggingComponents(rawValue: 1 << 3)
| |- warning: static property 'body' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'body' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | public static let bodySize = LoggingComponents(rawValue: 1 << 4)
15 | public static let duration = LoggingComponents(rawValue: 1 << 5)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:14:20: warning: static property 'bodySize' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
12 | public static let headers = LoggingComponents(rawValue: 1 << 2)
13 | public static let body = LoggingComponents(rawValue: 1 << 3)
14 | public static let bodySize = LoggingComponents(rawValue: 1 << 4)
| |- warning: static property 'bodySize' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'bodySize' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | public static let duration = LoggingComponents(rawValue: 1 << 5)
16 | public static let statusCode = LoggingComponents(rawValue: 1 << 6)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:15:20: warning: static property 'duration' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
13 | public static let body = LoggingComponents(rawValue: 1 << 3)
14 | public static let bodySize = LoggingComponents(rawValue: 1 << 4)
15 | public static let duration = LoggingComponents(rawValue: 1 << 5)
| |- warning: static property 'duration' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'duration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | public static let statusCode = LoggingComponents(rawValue: 1 << 6)
17 | public static let baseURL = LoggingComponents(rawValue: 1 << 7)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:16:20: warning: static property 'statusCode' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
14 | public static let bodySize = LoggingComponents(rawValue: 1 << 4)
15 | public static let duration = LoggingComponents(rawValue: 1 << 5)
16 | public static let statusCode = LoggingComponents(rawValue: 1 << 6)
| |- warning: static property 'statusCode' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'statusCode' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | public static let baseURL = LoggingComponents(rawValue: 1 << 7)
18 | public static let query = LoggingComponents(rawValue: 1 << 8)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:17:20: warning: static property 'baseURL' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
15 | public static let duration = LoggingComponents(rawValue: 1 << 5)
16 | public static let statusCode = LoggingComponents(rawValue: 1 << 6)
17 | public static let baseURL = LoggingComponents(rawValue: 1 << 7)
| |- warning: static property 'baseURL' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'baseURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 | public static let query = LoggingComponents(rawValue: 1 << 8)
19 | public static let uuid = LoggingComponents(rawValue: 1 << 9)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:18:20: warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
16 | public static let statusCode = LoggingComponents(rawValue: 1 << 6)
17 | public static let baseURL = LoggingComponents(rawValue: 1 << 7)
18 | public static let query = LoggingComponents(rawValue: 1 << 8)
| |- warning: static property 'query' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'query' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | public static let uuid = LoggingComponents(rawValue: 1 << 9)
20 | public static let location = LoggingComponents(rawValue: 1 << 10)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:19:20: warning: static property 'uuid' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
17 | public static let baseURL = LoggingComponents(rawValue: 1 << 7)
18 | public static let query = LoggingComponents(rawValue: 1 << 8)
19 | public static let uuid = LoggingComponents(rawValue: 1 << 9)
| |- warning: static property 'uuid' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'uuid' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | public static let location = LoggingComponents(rawValue: 1 << 10)
21 | public static let onRequest = LoggingComponents(rawValue: 1 << 11)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:20:20: warning: static property 'location' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
18 | public static let query = LoggingComponents(rawValue: 1 << 8)
19 | public static let uuid = LoggingComponents(rawValue: 1 << 9)
20 | public static let location = LoggingComponents(rawValue: 1 << 10)
| |- warning: static property 'location' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'location' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let onRequest = LoggingComponents(rawValue: 1 << 11)
22 | public static let cURL = LoggingComponents(rawValue: 1 << 12)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:21:20: warning: static property 'onRequest' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
19 | public static let uuid = LoggingComponents(rawValue: 1 << 9)
20 | public static let location = LoggingComponents(rawValue: 1 << 10)
21 | public static let onRequest = LoggingComponents(rawValue: 1 << 11)
| |- warning: static property 'onRequest' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'onRequest' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
22 | public static let cURL = LoggingComponents(rawValue: 1 << 12)
23 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Types/LoggingComponent.swift:22:20: warning: static property 'cURL' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
6 |
7 | /// The components to be logged.
8 | public struct LoggingComponents: OptionSet {
| `- note: consider making struct 'LoggingComponents' conform to the 'Sendable' protocol
9 |
10 | public static let method = LoggingComponents(rawValue: 1 << 0)
:
20 | public static let location = LoggingComponents(rawValue: 1 << 10)
21 | public static let onRequest = LoggingComponents(rawValue: 1 << 11)
22 | public static let cURL = LoggingComponents(rawValue: 1 << 12)
| |- warning: static property 'cURL' is not concurrency-safe because non-'Sendable' type 'LoggingComponents' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'cURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | public static var url: LoggingComponents { [.path, .baseURL, .query] }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:27:20: warning: static property 'repeatKey' is not concurrency-safe because non-'Sendable' type 'ArrayEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
1 | import Foundation
2 |
3 | public enum ArrayEncodingStrategy {
| `- note: consider making enum 'ArrayEncodingStrategy' conform to the 'Sendable' protocol
4 |
5 | case keyed((_ path: [CodingKey]) throws -> (path: [CodingKey], items: (Int) throws -> CodingKey))
:
25 |
26 | /// No brackets are appended. The key is encoded as is and repeated for each value.
27 | public static let repeatKey = ArrayEncodingStrategy.keyed { path in
| |- warning: static property 'repeatKey' is not concurrency-safe because non-'Sendable' type 'ArrayEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'repeatKey' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
28 | guard let key = path.last else {
29 | throw EncodingError.invalidValue(
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:62:20: warning: static property 'numeric' is not concurrency-safe because non-'Sendable' type 'BoolEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
52 | }
53 |
54 | public struct BoolEncodingStrategy {
| `- note: consider making struct 'BoolEncodingStrategy' conform to the 'Sendable' protocol
55 |
56 | public let encode: (Bool) -> String
:
60 | }
61 |
62 | public static let numeric: Self = .init { $0 ? "1" : "0" }
| |- warning: static property 'numeric' is not concurrency-safe because non-'Sendable' type 'BoolEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'numeric' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 | public static let literal: Self = .init(\.description)
64 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:63:20: warning: static property 'literal' is not concurrency-safe because non-'Sendable' type 'BoolEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
52 | }
53 |
54 | public struct BoolEncodingStrategy {
| `- note: consider making struct 'BoolEncodingStrategy' conform to the 'Sendable' protocol
55 |
56 | public let encode: (Bool) -> String
:
61 |
62 | public static let numeric: Self = .init { $0 ? "1" : "0" }
63 | public static let literal: Self = .init(\.description)
| |- warning: static property 'literal' is not concurrency-safe because non-'Sendable' type 'BoolEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'literal' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
64 | }
65 |
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:90:20: warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public enum NestedEncodingStrategy {
| `- note: consider making enum 'NestedEncodingStrategy' conform to the 'Sendable' protocol
67 |
68 | case data(encoder: (ParametersEncoderOptions) -> DataEncoder, type: ValueType)
:
88 | }
89 |
90 | public static let json: NestedEncodingStrategy = .json()
| |- warning: static property 'json' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'json' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | public static let brackets: NestedEncodingStrategy = .flatten { path in
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:92:20: warning: static property 'brackets' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public enum NestedEncodingStrategy {
| `- note: consider making enum 'NestedEncodingStrategy' conform to the 'Sendable' protocol
67 |
68 | case data(encoder: (ParametersEncoderOptions) -> DataEncoder, type: ValueType)
:
90 | public static let json: NestedEncodingStrategy = .json()
91 |
92 | public static let brackets: NestedEncodingStrategy = .flatten { path in
| |- warning: static property 'brackets' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'brackets' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
93 | var key = path[0].stringValue
94 | let chain = path.dropFirst().map(\.stringValue).joined(separator: "][")
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:101:20: warning: static property 'dots' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
64 | }
65 |
66 | public enum NestedEncodingStrategy {
| `- note: consider making enum 'NestedEncodingStrategy' conform to the 'Sendable' protocol
67 |
68 | case data(encoder: (ParametersEncoderOptions) -> DataEncoder, type: ValueType)
:
99 | }
100 |
101 | public static let dots: NestedEncodingStrategy = .flatten { path in
| |- warning: static property 'dots' is not concurrency-safe because non-'Sendable' type 'NestedEncodingStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make static property 'dots' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 | var result = ""
103 | let point = String(ParametersValue.point)
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:230:13: warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
228 |
229 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
230 | private let _iso8601Formatter: ISO8601DateFormatter = {
| |- warning: let '_iso8601Formatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: add '@MainActor' to make let '_iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
231 | let formatter = ISO8601DateFormatter()
232 | formatter.formatOptions = .withInternetDateTime
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:873b43b7be6289c04a5a3fd4b2c372c2a5abf90643451079297d3dc6dc0b7d36
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/18] Write swift-version-24593BA9C3E375BF.txt
[2/48] Emitting module SwiftSyntax600
[3/48] Compiling SwiftSyntax509 Empty.swift
[4/48] Emitting module SwiftSyntax510
[5/48] Compiling SwiftSyntax510 Empty.swift
[6/48] Emitting module SwiftSyntax509
[7/50] Compiling SwiftSyntax600 Empty.swift
[11/51] Compiling Logging MetadataProvider.swift
[13/48] Emitting module Logging
[14/48] Compiling Logging Locks.swift
[15/48] Emitting module HTTPTypes
[16/48] Compiling HTTPTypes ISOLatin1String.swift
[17/57] Compiling HTTPTypes HTTPField.swift
[18/57] Emitting module CoreMetrics
[19/121] Compiling HTTPTypes NIOLock.swift
[20/121] Compiling HTTPTypes HTTPFieldName.swift
[21/122] Compiling HTTPTypes HTTPParsedFields.swift
[22/122] Compiling HTTPTypes HTTPRequest.swift
[23/122] Compiling HTTPTypes HTTPResponse.swift
[24/122] Compiling HTTPTypes ISOLatin1String.swift
[25/122] Compiling HTTPTypes HTTPParsedFields.swift
[26/122] Emitting module HTTPTypes
[27/122] Compiling CoreMetrics Locks.swift
[28/122] Compiling CoreMetrics Metrics.swift
[29/123] Compiling CoreMetrics Locks.swift
[30/123] Emitting module CoreMetrics
[31/123] Compiling CoreMetrics Metrics.swift
[34/124] Compiling HTTPTypes HTTPFields.swift
[35/124] Compiling HTTPTypes HTTPFieldName.swift
[36/124] Compiling Logging LogHandler.swift
[37/124] Compiling Logging Logging.swift
[38/126] Compiling HTTPTypes HTTPRequest.swift
[41/128] Compiling HTTPTypes NIOLock.swift
[42/128] Compiling HTTPTypes HTTPResponse.swift
[43/128] Compiling Logging LogHandler.swift
[44/128] Compiling Logging Locks.swift
[45/128] Emitting module Logging
[46/128] Compiling Logging Logging.swift
[47/131] Compiling HTTPTypes HTTPField.swift
[48/131] Compiling HTTPTypes HTTPFields.swift
[51/134] Compiling Metrics Metrics.swift
[52/137] Emitting module Metrics
[54/139] Compiling Metrics Metrics.swift
[57/146] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[58/146] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[59/146] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[60/146] Compiling SwiftSyntax AbsolutePosition.swift
[61/146] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[62/146] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[63/146] Compiling SwiftSyntax Assert.swift
[64/146] Compiling SwiftSyntax BumpPtrAllocator.swift
[65/146] Compiling SwiftSyntax CommonAncestor.swift
[66/146] Compiling SwiftSyntax Convenience.swift
[67/146] Compiling SwiftSyntax CustomTraits.swift
[68/146] Compiling SwiftSyntax Identifier.swift
[69/146] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[70/154] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[71/154] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[72/154] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[73/154] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[74/154] Emitting module HTTPTypesFoundation
[75/155] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[76/155] Emitting module HTTPTypesFoundation
[77/155] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[80/156] Compiling SwiftSyntax SyntaxNodeFactory.swift
[81/156] Compiling SwiftSyntax SyntaxNodeStructure.swift
[82/156] Compiling SwiftSyntax SyntaxProtocol.swift
[83/156] Compiling SwiftSyntax SyntaxText.swift
[84/156] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[85/156] Compiling SwiftSyntax TokenDiagnostic.swift
[86/156] Compiling SwiftSyntax TokenSequence.swift
[87/156] Compiling SwiftSyntax TokenSyntax.swift
[88/156] Compiling SwiftSyntax Trivia.swift
[89/156] Compiling SwiftSyntax SourcePresence.swift
[90/156] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[91/156] Compiling SwiftSyntax Syntax.swift
[92/156] Compiling SwiftSyntax SyntaxArena.swift
[93/156] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[94/156] Compiling SwiftSyntax SyntaxChildren.swift
[95/156] Compiling SwiftSyntax SyntaxCollection.swift
[96/156] Compiling SwiftSyntax SyntaxHashable.swift
[97/156] Compiling SwiftSyntax SyntaxIdentifier.swift
[98/156] Compiling SwiftSyntax MemoryLayout.swift
[99/156] Compiling SwiftSyntax MissingNodeInitializers.swift
[100/156] Compiling SwiftSyntax RawSyntax.swift
[101/156] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[102/156] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[103/156] Compiling SwiftSyntax RawSyntaxTokenView.swift
[104/156] Compiling SwiftSyntax SourceEdit.swift
[105/156] Compiling SwiftSyntax SourceLength.swift
[106/156] Compiling SwiftSyntax SourceLocation.swift
[107/156] Emitting module SwiftSyntax
[108/156] Compiling SwiftSyntax RawSyntaxNodesD.swift
[109/156] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[110/156] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[111/156] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[112/156] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[113/156] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[114/156] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[115/156] Compiling SwiftSyntax RawSyntaxValidation.swift
[116/156] Compiling SwiftSyntax SyntaxNodesAB.swift
[117/156] Compiling SwiftSyntax SyntaxNodesC.swift
[118/156] Compiling SwiftSyntax SyntaxNodesD.swift
[119/156] Compiling SwiftSyntax SyntaxNodesEF.swift
[120/156] Compiling SwiftSyntax SyntaxNodesGHI.swift
[121/156] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[122/156] Compiling SwiftSyntax SyntaxNodesOP.swift
[123/156] Compiling SwiftSyntax SyntaxNodesQRS.swift
[124/156] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[125/156] Compiling SwiftSyntax Utils.swift
[126/156] Compiling SwiftSyntax ChildNameForKeyPath.swift
[127/156] Compiling SwiftSyntax Keyword.swift
[128/156] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[129/156] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[130/156] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[131/156] Compiling SwiftSyntax SyntaxBaseNodes.swift
[132/156] Compiling SwiftSyntax SyntaxCollections.swift
[133/156] Compiling SwiftSyntax SyntaxEnum.swift
[134/156] Compiling SwiftSyntax SyntaxKind.swift
[135/156] Compiling SwiftSyntax SyntaxRewriter.swift
[136/156] Compiling SwiftSyntax SyntaxTraits.swift
[137/156] Compiling SwiftSyntax SyntaxVisitor.swift
[138/156] Compiling SwiftSyntax TokenKind.swift
[139/156] Compiling SwiftSyntax Tokens.swift
[140/156] Compiling SwiftSyntax TriviaPieces.swift
[141/156] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[142/156] Compiling SwiftSyntax RawSyntaxNodesC.swift
[144/197] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[145/197] Compiling SwiftParser CharacterInfo.swift
[146/197] Compiling SwiftParser CollectionNodes+Parsable.swift
[147/202] Compiling SwiftDiagnostics FixIt.swift
[148/214] Compiling SwiftParser Attributes.swift
[149/214] Compiling SwiftParser Availability.swift
[150/214] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[151/214] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[152/214] Compiling SwiftBasicFormat Syntax+Extensions.swift
[153/214] Compiling SwiftDiagnostics Message.swift
[154/214] Emitting module SwiftDiagnostics
[155/214] Compiling SwiftBasicFormat InferIndentation.swift
[156/214] Compiling SwiftDiagnostics Note.swift
[157/214] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[158/214] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[159/215] Emitting module SwiftBasicFormat
[160/215] Compiling SwiftBasicFormat BasicFormat.swift
[163/215] Compiling SwiftParser SwiftParserCompatibility.swift
[164/215] Compiling SwiftParser SwiftVersion.swift
[165/215] Compiling SwiftParser SyntaxUtils.swift
[166/215] Compiling SwiftParser TokenConsumer.swift
[167/215] Compiling SwiftParser TokenPrecedence.swift
[168/219] Compiling SwiftParser LexemeSequence.swift
[169/219] Compiling SwiftParser Lexer.swift
[170/219] Compiling SwiftParser RegexLiteralLexer.swift
[171/219] Compiling SwiftParser UnicodeScalarExtensions.swift
[172/219] Compiling SwiftParser Lookahead.swift
[173/219] Compiling SwiftParser LoopProgressCondition.swift
[174/219] Emitting module SwiftParser
[175/219] Compiling SwiftParser Modifiers.swift
[176/219] Compiling SwiftParser Names.swift
[177/219] Compiling SwiftParser Nominals.swift
[178/219] Compiling SwiftParser Parameters.swift
[179/219] Compiling SwiftParser ParseSourceFile.swift
[180/219] Compiling SwiftParser Parser.swift
[181/219] Compiling SwiftParser Patterns.swift
[182/219] Compiling SwiftParser Recovery.swift
[183/219] Compiling SwiftParser Specifiers.swift
[184/219] Compiling SwiftParser Statements.swift
[185/219] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[186/219] Compiling SwiftParser StringLiterals.swift
[187/219] Compiling SwiftParser TokenSpec.swift
[188/219] Compiling SwiftParser TokenSpecSet.swift
[189/219] Compiling SwiftParser TopLevel.swift
[190/219] Compiling SwiftParser TriviaParser.swift
[191/219] Compiling SwiftParser Types.swift
[196/219] Compiling SwiftParser Declarations.swift
[197/219] Compiling SwiftParser Directives.swift
[198/219] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[199/219] Compiling SwiftParser Expressions.swift
[200/219] Compiling SwiftParser IncrementalParseTransition.swift
[201/219] Compiling SwiftParser IsValidIdentifier.swift
[202/219] Compiling SwiftParser Cursor.swift
[203/219] Compiling SwiftParser Lexeme.swift
[204/219] Compiling SwiftParser ExperimentalFeatures.swift
[205/219] Compiling SwiftParser IsLexerClassified.swift
[206/219] Compiling SwiftParser LayoutNodes+Parsable.swift
[207/219] Compiling SwiftParser Parser+TokenSpecSet.swift
[208/219] Compiling SwiftParser TokenSpecStaticMembers.swift
[210/242] Compiling SwiftOperators PrecedenceGroup.swift
[211/243] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[212/244] Compiling SwiftOperators OperatorTable.swift
[213/244] Compiling SwiftOperators PrecedenceGraph.swift
[214/244] Compiling SwiftOperators SyntaxSynthesis.swift
[215/244] Compiling SwiftOperators OperatorTable+Semantics.swift
[216/244] Emitting module SwiftOperators
[217/244] Compiling SwiftParserDiagnostics MissingNodesError.swift
[218/244] Compiling SwiftParserDiagnostics MissingTokenError.swift
[219/244] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[220/244] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[221/244] Compiling SwiftOperators OperatorTable+Folding.swift
[223/245] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[224/244] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[225/244] Compiling SwiftParserDiagnostics PresenceUtils.swift
[226/244] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[227/244] Compiling SwiftParserDiagnostics Utils.swift
[228/244] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[229/244] Emitting module SwiftParserDiagnostics
[232/244] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[233/244] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[237/259] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[238/259] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[239/259] Compiling SwiftSyntaxBuilder Indenter.swift
[240/259] Compiling SwiftSyntaxBuilder ListBuilder.swift
[241/259] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[242/259] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[243/260] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[244/260] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[245/260] Emitting module SwiftSyntaxBuilder
[246/260] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[247/260] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[248/260] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[249/260] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[250/260] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[251/260] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[252/260] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[254/277] Compiling SwiftSyntaxMacros Macro.swift
[255/277] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[256/279] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[257/279] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[258/279] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[259/279] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[260/279] Compiling SwiftSyntaxMacros AccessorMacro.swift
[261/279] Compiling SwiftSyntaxMacros AttachedMacro.swift
[262/279] Compiling SwiftSyntaxMacros BodyMacro.swift
[263/279] Compiling SwiftSyntaxMacros MemberMacro.swift
[264/279] Compiling SwiftSyntaxMacros PeerMacro.swift
[265/279] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[266/279] Compiling SwiftSyntaxMacros Macro+Format.swift
[267/279] Emitting module SwiftSyntaxMacros
[268/279] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[269/279] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[270/279] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[271/279] Compiling SwiftSyntaxMacros PreambleMacro.swift
[272/279] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[274/288] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[275/289] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[276/289] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[277/289] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[278/289] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[279/289] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[280/289] Emitting module SwiftSyntaxMacroExpansion
[281/289] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[282/289] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[283/289] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[285/301] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[286/302] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[287/302] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[288/302] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[289/302] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[290/302] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[291/302] Emitting module SwiftCompilerPluginMessageHandling
[292/302] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[293/302] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[294/302] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[295/302] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[296/302] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[297/302] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[299/304] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[300/304] Emitting module SwiftCompilerPlugin
[302/309] Compiling SwiftAPIClientMacros String++.swift
[303/309] Compiling SwiftAPIClientMacros MacroError.swift
[304/309] Compiling SwiftAPIClientMacros Collection++.swift
[305/309] Emitting module SwiftAPIClientMacros
[306/309] Compiling SwiftAPIClientMacros SwiftAPIClientMacros.swift
/host/spi-builder-workspace/Sources/SwiftAPIClientMacros/SwiftAPIClientMacros.swift:41:40: warning: 'throwsSpecifier' is deprecated: use throwsClause.throwsSpecifier
39 | funcDecl.signature.effectSpecifiers = FunctionEffectSpecifiersSyntax()
40 | }
41 | funcDecl.signature.effectSpecifiers?.throwsSpecifier = "throws"
| `- warning: 'throwsSpecifier' is deprecated: use throwsClause.throwsSpecifier
42 |
43 | let isAsync = attribute.caller == "http" || funcDecl.signature.effectSpecifiers?.asyncSpecifier != nil
/host/spi-builder-workspace/Sources/SwiftAPIClientMacros/SwiftAPIClientMacros.swift:278:19: warning: 'macro' is deprecated: renamed to 'macroName'
276 |
277 | public static func expansion(of node: some FreestandingMacroExpansionSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
278 | let name = node.macro.text.lowercased()
| |- warning: 'macro' is deprecated: renamed to 'macroName'
| `- note: use 'macroName' instead
279 | var type = node.argumentList.first?.expression.trimmed.description ?? ""
280 | if type.hasSuffix(".self") {
/host/spi-builder-workspace/Sources/SwiftAPIClientMacros/SwiftAPIClientMacros.swift:279:19: warning: 'argumentList' is deprecated: renamed to 'arguments'
277 | public static func expansion(of node: some FreestandingMacroExpansionSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
278 | let name = node.macro.text.lowercased()
279 | var type = node.argumentList.first?.expression.trimmed.description ?? ""
| |- warning: 'argumentList' is deprecated: renamed to 'arguments'
| `- note: use 'arguments' instead
280 | if type.hasSuffix(".self") {
281 | type.removeLast(5)
[307/309] Write Objects.LinkFileList
[308/309] Linking SwiftAPIClientMacros-tool
[310/451] Compiling SwiftAPIClient Serializer.swift
[311/451] Compiling SwiftAPIClient TimeoutError.swift
[312/451] Compiling SwiftAPIClient AnyAsyncSequence.swift
[313/451] Compiling SwiftAPIClient AnyEncodable.swift
[314/451] Compiling SwiftAPIClient ContentEncoder.swift
[315/451] Compiling SwiftAPIClient DataDecoder.swift
[316/451] Compiling SwiftAPIClient EncodingStrategies.swift
[317/451] Compiling SwiftAPIClient ErrorDecoder.swift
[318/451] Compiling SwiftAPIClient FormURLEncoder.swift
[319/451] Compiling SwiftAPIClient HeadersEncoder.swift
[320/461] Emitting module SwiftAPIClient
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[322/471] Compiling SwiftAPIClient ConsoleStyle.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[323/471] Compiling SwiftAPIClient Error+String.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[324/471] Compiling SwiftAPIClient NoneLogger.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[325/471] Compiling SwiftAPIClient Publisher+Create.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[326/471] Compiling SwiftAPIClient Publishers+Task.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[327/471] Compiling SwiftAPIClient Reachability.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[328/471] Compiling SwiftAPIClient Status+Ext.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[329/471] Compiling SwiftAPIClient URLSessionDelegateWrapper.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[330/471] Compiling SwiftAPIClient UpdateMetrics.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[331/471] Compiling SwiftAPIClient WithSynchronizedAccess.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[332/471] Compiling SwiftAPIClient RequestBuilder.swift
[333/471] Compiling SwiftAPIClient AsyncValue.swift
[334/471] Compiling SwiftAPIClient ContentSerializer.swift
[335/471] Compiling SwiftAPIClient ContentType.swift
[336/471] Compiling SwiftAPIClient Errors.swift
[337/471] Compiling SwiftAPIClient HTTPFields.swift
[338/471] Compiling SwiftAPIClient HTTPRequestComponents.swift
[339/471] Compiling SwiftAPIClient LoggingComponent.swift
[340/471] Compiling SwiftAPIClient Mockable.swift
[341/471] Compiling SwiftAPIClient RedirectBehaviour.swift
[342/471] Compiling SwiftAPIClient String++.swift
[343/471] Compiling SwiftAPIClient URLComponentBuilder.swift
[344/471] Compiling SwiftAPIClient URLResponse++.swift
[345/471] Compiling SwiftAPIClient Imports.swift
[346/471] Compiling SwiftAPIClient Macros.swift
[347/471] Compiling SwiftAPIClient AuthModifier.swift
[348/471] Compiling SwiftAPIClient BackgroundModifiers.swift
[349/471] Compiling SwiftAPIClient CodeLocation.swift
[350/471] Compiling SwiftAPIClient CodersModifiers.swift
[351/471] Compiling SwiftAPIClient ErrorDecodeModifiers.swift
[352/471] Compiling SwiftAPIClient RequestModifiers.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[353/471] Compiling SwiftAPIClient RequestValidator.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[354/471] Compiling SwiftAPIClient ResponseWrapModifires.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[355/471] Compiling SwiftAPIClient RetryModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[356/471] Compiling SwiftAPIClient ThrottleModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[357/471] Compiling SwiftAPIClient TimeoutModifiers.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[358/471] Compiling SwiftAPIClient TokenCacheService.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[359/471] Compiling SwiftAPIClient TokenRefresher.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[360/471] Compiling SwiftAPIClient URLSessionModifiers.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
[361/471] Compiling SwiftAPIClient WaitForConnectionModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:37: error: value of type 'NSData' has no member 'compressed'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: value of type 'NSData' has no member 'compressed'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Modifiers/RequestCompression.swift:76:56: error: cannot infer contextual base in reference to member 'zlib'
74 | private func deflate(_ data: Data) throws -> Data {
75 | var output = Data([0x78, 0x5E]) // Header
76 | try output.append((data as NSData).compressed(using: .zlib) as Data)
| `- error: cannot infer contextual base in reference to member 'zlib'
77 | var checksum = adler32Checksum(of: data).bigEndian
78 | output.append(Data(bytes: &checksum, count: MemoryLayout<UInt32>.size))
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/URLSessionDelegateWrapper.swift:44:6: warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
42 | final class SessionDelegateProxy: NSObject {
43 |
44 | var configs: APIClient.Configs?
| `- warning: stored property 'configs' of 'Sendable'-conforming class 'SessionDelegateProxy' is mutable; this is an error in the Swift 6 language mode
45 | var originalDelegate: URLSessionDelegate? { configs?.urlSessionDelegate }
46 | }
[382/471] Compiling SwiftAPIClient JSONContentEncoders.swift
[383/471] Compiling SwiftAPIClient MultipartFormData.swift
[384/471] Compiling SwiftAPIClient MultipartFormDataEncoder.swift
[385/471] Compiling SwiftAPIClient ParametersEncoder.swift
[386/471] Compiling SwiftAPIClient ParametersValue.swift
[387/471] Compiling SwiftAPIClient QueryEncoder.swift
[388/471] Compiling SwiftAPIClient HTTPHeadersEncoder.swift
[389/471] Compiling SwiftAPIClient PlainCodingKey.swift
[390/471] Compiling SwiftAPIClient Ref.swift
[391/471] Compiling SwiftAPIClient URLQueryEncoder.swift
[392/471] Compiling SwiftAPIClient APIClient.swift
[393/471] Compiling SwiftAPIClient APIClientCaller.swift
[394/471] Compiling SwiftAPIClient APIClientConfigs.swift
[395/471] Compiling SwiftAPIClient APIClientType.swift
[396/471] Compiling SwiftAPIClient HTTPClient.swift
[397/471] Compiling SwiftAPIClient HTTPDownloadClient.swift
[398/471] Compiling SwiftAPIClient HTTPPublisher.swift
[399/471] Compiling SwiftAPIClient HTTPUploadClient.swift
[400/471] Compiling SwiftAPIClient URLSession+Client.swift
[401/471] Compiling SwiftAPIClient Async++.swift
[402/471] Compiling SwiftAPIClient ErrorHandler.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[403/471] Compiling SwiftAPIClient HTTPClientMiddleware.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[404/471] Compiling SwiftAPIClient HTTPResponseValidator.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[405/471] Compiling SwiftAPIClient ListenerModifiers.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[406/471] Compiling SwiftAPIClient LoggingModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[407/471] Compiling SwiftAPIClient MetricsModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[408/471] Compiling SwiftAPIClient MockResponses.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[409/471] Compiling SwiftAPIClient RateLimitModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[410/471] Compiling SwiftAPIClient RedirectModifier.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
[411/471] Compiling SwiftAPIClient RequestCompression.swift
/host/spi-builder-workspace/Sources/SwiftAPIClient/Utils/Coders/EncodingStrategies.swift:171:23: error: pattern variable binding cannot appear in an expression
169 | case .iso8601:
170 | try _iso8601Formatter.string(from: date).encode(to: encoder)
171 | case let .formatted(formatter):
| `- error: pattern variable binding cannot appear in an expression
172 | try formatter.string(from: date).encode(to: encoder)
173 | case let .custom(closure):
BUILD FAILURE 6.1 android