Build Information
Successful build of HTTPClient, reference main (960cbb), with Swift 6.4 for macOS (SPM) on 21 Sep 2026 05:13:57 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marinofelipe/http_client.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marinofelipe/http_client
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 960cbb5 Missing conditional imports for Linux
Cloned https://github.com/marinofelipe/http_client.git
Revision (git rev-parse @):
960cbb55c2082c97523257aec91bb6b7e57f8e2e
SUCCESS checkout https://github.com/marinofelipe/http_client.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.4
Building package at path: $PWD
https://github.com/marinofelipe/http_client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-27.0.0-Release.Candidate.app xcrun swift build --arch arm64
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[45 / 88]
[47 / 90] Logging
[56 / 117]
[60 / 117]
[71 / 159]
[75 / 159]
[80 / 159]
[92 / 159] Logging
[95 / 159] Logging
[102 / 159] Logging
[103 / 159]
[105 / 159]
[110 / 159]
[113 / 159]
[115 / 159]
[116 / 159]
[124 / 159] HTTPClientCore
[132 / 161] CombineHTTPClient
[140 / 174] HTTPClient
[153 / 174] HTTPClientTestSupport
[162 / 175]
[166 / 175] HTTPClientTestSupport
[173 / 182] HTTPClientTestSupport
Build complete! (8.16 sec)
Fetching https://github.com/apple/swift-log.git
[1/8096] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.34s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (2.00s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: [1;33mwarning: [1;39mstatic property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m1 |[0;0m public extension Set where Element == Int {
[0;36m2 |[0;0m static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'defaultSuccessfulStatusCodes' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'defaultSuccessfulStatusCodes' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m3 |[0;0m }
[0;36m4 |[0;0m
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: [1;33mwarning: [1;39mstatic property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m1 |[0;0m public extension Set where Element == Int {
[0;36m2 |[0;0m static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'defaultSuccessfulStatusCodes' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'defaultSuccessfulStatusCodes' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m3 |[0;0m }
[0;36m4 |[0;0m
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:32:78: [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m30 |[0;0m @discardableResult
[0;36m31 |[0;0m public func run<S: Decodable, F: Decodable>(_ request: URLRequest,
[0;36m32 |[0;0m validStatusCode: Set<Int> = .defaultSuccessfulStatusCodes,
[0;36m|[0;0m `- [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m33 |[0;0m successDecoder: JSONDecoder = .init(),
[0;36m34 |[0;0m failureDecoder: JSONDecoder = .init(),
HTTPClientCore.Set.defaultSuccessfulStatusCodes:2:19: [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m1 |[0;0m generic struct Set {
[0;36m2 |[0;0m public static var defaultSuccessfulStatusCodes: Set<Int>}
[0;36m|[0;0m `- [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m3 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:13:1: [1;33mwarning: [1;39msendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'; this is an error in the Swift 6 language mode[0;0m
[0;36m7 |[0;0m var delegateQueue: OperationQueue { get }
[0;36m8 |[0;0m
[0;36m9 |[0;0m func dataTask(with request: URLRequest,
[0;36m|[0;0m `- [1;39mnote: [1;39mexpected sendability to match requirement here[0;0m
[0;36m10 |[0;0m completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
[0;36m11 |[0;0m }
[0;36m12 |[0;0m
[0;36m13 |[0;0m extension URLSession: URLSessionProtocol {}
[0;36m|[0;0m `- [1;33mwarning: [1;39msendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'; this is an error in the Swift 6 language mode[0;0m
[0;36m14 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Handlers/HTTPResponseHandler.swift:21:52: [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m19 |[0;0m let successfulStatusCodes: Set<Int>
[0;36m20 |[0;0m
[0;36m21 |[0;0m public init(successfulStatusCodes: Set<Int> = .defaultSuccessfulStatusCodes) {
[0;36m|[0;0m `- [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m22 |[0;0m self.successfulStatusCodes = successfulStatusCodes
[0;36m23 |[0;0m }
HTTPClientCore.Set.defaultSuccessfulStatusCodes:2:19: [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m1 |[0;0m generic struct Set {
[0;36m2 |[0;0m public static var defaultSuccessfulStatusCodes: Set<Int>}
[0;36m|[0;0m `- [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m3 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:13:1: [1;33mwarning: [1;39msendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'; this is an error in the Swift 6 language mode[0;0m
[0;36m7 |[0;0m var delegateQueue: OperationQueue { get }
[0;36m8 |[0;0m
[0;36m9 |[0;0m func dataTask(with request: URLRequest,
[0;36m|[0;0m `- [1;39mnote: [1;39mexpected sendability to match requirement here[0;0m
[0;36m10 |[0;0m completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTask
[0;36m11 |[0;0m }
[0;36m12 |[0;0m
[0;36m13 |[0;0m extension URLSession: URLSessionProtocol {}
[0;36m|[0;0m `- [1;33mwarning: [1;39msendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'; this is an error in the Swift 6 language mode[0;0m
[0;36m14 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:32:78: [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m30 |[0;0m @discardableResult
[0;36m31 |[0;0m public func run<S: Decodable, F: Decodable>(_ request: URLRequest,
[0;36m32 |[0;0m validStatusCode: Set<Int> = .defaultSuccessfulStatusCodes,
[0;36m|[0;0m `- [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m33 |[0;0m successDecoder: JSONDecoder = .init(),
[0;36m34 |[0;0m failureDecoder: JSONDecoder = .init(),
HTTPClientCore.Set.defaultSuccessfulStatusCodes:2:19: [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m1 |[0;0m generic struct Set {
[0;36m2 |[0;0m public static var defaultSuccessfulStatusCodes: Set<Int>}
[0;36m|[0;0m `- [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m3 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Handlers/HTTPResponseHandler.swift:21:52: [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m19 |[0;0m let successfulStatusCodes: Set<Int>
[0;36m20 |[0;0m
[0;36m21 |[0;0m public init(successfulStatusCodes: Set<Int> = .defaultSuccessfulStatusCodes) {
[0;36m|[0;0m `- [1;33mwarning: [1;39mreference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode[0;0m
[0;36m22 |[0;0m self.successfulStatusCodes = successfulStatusCodes
[0;36m23 |[0;0m }
HTTPClientCore.Set.defaultSuccessfulStatusCodes:2:19: [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m1 |[0;0m generic struct Set {
[0;36m2 |[0;0m public static var defaultSuccessfulStatusCodes: Set<Int>}
[0;36m|[0;0m `- [1;39mnote: [1;39mstatic property declared here[0;0m
[0;36m3 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: [1;33mwarning: [1;39mstatic property 'startLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m6 |[0;0m /// A mock that can be used to run stubbed URLSession tasks.
[0;36m7 |[0;0m public final class URLProtocolMock: URLProtocol {
[0;36m8 |[0;0m public static var startLoadingCallsCount: Int = 0
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'startLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'startLoadingCallsCount' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'startLoadingCallsCount' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m9 |[0;0m public static var stopLoadingCallsCount: Int = 0
[0;36m10 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: [1;33mwarning: [1;39mstatic property 'stopLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m7 |[0;0m public final class URLProtocolMock: URLProtocol {
[0;36m8 |[0;0m public static var startLoadingCallsCount: Int = 0
[0;36m9 |[0;0m public static var stopLoadingCallsCount: Int = 0
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stopLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stopLoadingCallsCount' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stopLoadingCallsCount' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m10 |[0;0m
[0;36m11 |[0;0m // MARK: - Stub
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: [1;33mwarning: [1;39mstatic property 'stubbedError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m11 |[0;0m // MARK: - Stub
[0;36m12 |[0;0m
[0;36m13 |[0;0m public static var stubbedError: Error?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stubbedError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stubbedError' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stubbedError' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m14 |[0;0m public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
[0;36m15 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: [1;33mwarning: [1;39mstatic property 'stubbedRequestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m12 |[0;0m
[0;36m13 |[0;0m public static var stubbedError: Error?
[0;36m14 |[0;0m public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stubbedRequestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stubbedRequestHandler' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stubbedRequestHandler' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public static func cleanup() {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: [1;33mwarning: [1;39mstatic property 'startLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m6 |[0;0m /// A mock that can be used to run stubbed URLSession tasks.
[0;36m7 |[0;0m public final class URLProtocolMock: URLProtocol {
[0;36m8 |[0;0m public static var startLoadingCallsCount: Int = 0
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'startLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'startLoadingCallsCount' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'startLoadingCallsCount' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m9 |[0;0m public static var stopLoadingCallsCount: Int = 0
[0;36m10 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: [1;33mwarning: [1;39mstatic property 'stopLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m7 |[0;0m public final class URLProtocolMock: URLProtocol {
[0;36m8 |[0;0m public static var startLoadingCallsCount: Int = 0
[0;36m9 |[0;0m public static var stopLoadingCallsCount: Int = 0
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stopLoadingCallsCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stopLoadingCallsCount' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stopLoadingCallsCount' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m10 |[0;0m
[0;36m11 |[0;0m // MARK: - Stub
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: [1;33mwarning: [1;39mstatic property 'stubbedError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m11 |[0;0m // MARK: - Stub
[0;36m12 |[0;0m
[0;36m13 |[0;0m public static var stubbedError: Error?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stubbedError' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stubbedError' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stubbedError' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m14 |[0;0m public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
[0;36m15 |[0;0m
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: [1;33mwarning: [1;39mstatic property 'stubbedRequestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m12 |[0;0m
[0;36m13 |[0;0m public static var stubbedError: Error?
[0;36m14 |[0;0m public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
[0;36m|[0;0m |- [1;33mwarning: [1;39mstatic property 'stubbedRequestHandler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable\MutableGlobalVariable]8;;\]
[0;36m|[0;0m |- [1;39mnote: [1;39mconvert 'stubbedRequestHandler' to a 'let' constant to make 'Sendable' shared state immutable[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39madd '@MainActor' to make static property 'stubbedRequestHandler' part of global actor 'MainActor'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdisable concurrency-safety checks if accesses are protected by an external synchronization mechanism[0;0m
[0;36m15 |[0;0m
[0;36m16 |[0;0m public static func cleanup() {
[#MutableGlobalVariable]: <https://docs.swift.org/compiler/documentation/diagnostics/mutable-global-variable>
Build complete.
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
}
],
"manifest_display_name" : "HTTPClient",
"name" : "HTTPClient",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
}
],
"products" : [
{
"name" : "HTTPClient",
"targets" : [
"HTTPClient",
"HTTPClientCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "CombineHTTPClient",
"targets" : [
"CombineHTTPClient",
"HTTPClientCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HTTPClientTestSupport",
"targets" : [
"HTTPClientTestSupport"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HTTPClientTests",
"module_type" : "SwiftTarget",
"name" : "HTTPClientTests",
"path" : "Tests/HTTPClientTests",
"sources" : [
"HTTPClientTests.swift",
"HTTPResponseDecoderTests.swift",
"HTTPResponseHandlerTests.swift",
"Helpers/Helpers.swift",
"Mocks/Mocks.swift"
],
"target_dependencies" : [
"HTTPClient",
"HTTPClientTestSupport"
],
"type" : "test"
},
{
"c99name" : "HTTPClientTestSupport",
"module_type" : "SwiftTarget",
"name" : "HTTPClientTestSupport",
"path" : "Sources/HTTPClientTestSupport",
"product_memberships" : [
"HTTPClientTestSupport"
],
"sources" : [
"Fakes/FakeError.swift",
"Fakes/FakeHTTPResponse.swift",
"Fakes/FakeResponseBody.swift",
"Fakes/HTTPTaskFake.swift",
"Mocks/HTTPClientMock.swift",
"Mocks/MockURLProtocol.swift"
],
"target_dependencies" : [
"HTTPClient"
],
"type" : "library"
},
{
"c99name" : "HTTPClientCoreTests",
"module_type" : "SwiftTarget",
"name" : "HTTPClientCoreTests",
"path" : "Tests/HTTPClientCoreTests",
"sources" : [
"DataExtensionTests.swift",
"HTTPRequestBuilderTests.swift",
"ResultExtensionTests.swift",
"SetExtensionTests.swift"
],
"target_dependencies" : [
"HTTPClientCore",
"HTTPClientTestSupport"
],
"type" : "test"
},
{
"c99name" : "HTTPClientCore",
"module_type" : "SwiftTarget",
"name" : "HTTPClientCore",
"path" : "Sources/HTTPClientCore",
"product_memberships" : [
"HTTPClient",
"CombineHTTPClient",
"HTTPClientTestSupport"
],
"sources" : [
"Extensions/Data+HTTPClient.swift",
"Extensions/Result+HTTPClient.swift",
"Extensions/Set+HTTPClient.swift",
"HTTPRequestBuilder/HTTPRequestBuilder.swift",
"HTTPRequestError.swift",
"HTTPRequestMethod.swift",
"HTTPRequestScheme.swift"
],
"type" : "library"
},
{
"c99name" : "HTTPClient",
"module_type" : "SwiftTarget",
"name" : "HTTPClient",
"path" : "Sources/HTTPClient",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"HTTPClient",
"HTTPClientTestSupport"
],
"sources" : [
"Abstractions/HTTPTask.swift",
"Abstractions/URLSessionProtocol.swift",
"Decoders/HTTPDecoder.swift",
"Extensions/Optional+Data.swift",
"HTTPClient.swift",
"HTTPResponse.swift",
"Handlers/HTTPResponseHandler.swift",
"Middlewares/HTTPClientMiddleware.swift",
"Middlewares/LoggerMiddleware.swift"
],
"target_dependencies" : [
"HTTPClientCore"
],
"type" : "library"
},
{
"c99name" : "CombineHTTPClientTests",
"module_type" : "SwiftTarget",
"name" : "CombineHTTPClientTests",
"path" : "Tests/CombineHTTPClientTests",
"sources" : [
"CombineHTTPClientTests.swift"
],
"target_dependencies" : [
"CombineHTTPClient",
"HTTPClientTestSupport"
],
"type" : "test"
},
{
"c99name" : "CombineHTTPClient",
"module_type" : "SwiftTarget",
"name" : "CombineHTTPClient",
"path" : "Sources/CombineHTTPClient",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"CombineHTTPClient"
],
"sources" : [
"CombineHTTPClient.swift",
"HTTPResponse.swift"
],
"target_dependencies" : [
"HTTPClientCore"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Done.