The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIClientCore, reference main (99ce9a), with Swift 6.1 for macOS (SPM) on 13 Oct 2025 17:10:53 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zino-88/APIClientCore.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/zino-88/APIClientCore
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 99ce9a4 update README file
Cloned https://github.com/zino-88/APIClientCore.git
Revision (git rev-parse @):
99ce9a40070b73cb4278cc18f4ebb8ca1812e473
SUCCESS checkout https://github.com/zino-88/APIClientCore.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/zino-88/APIClientCore.git
https://github.com/zino-88/APIClientCore.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "APIClientCore",
  "name" : "APIClientCore",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "APIClientCore",
      "targets" : [
        "APIClientCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "APIClientCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "APIClientCoreTests",
      "path" : "Tests/APIClientCoreTests",
      "sources" : [
        "APIClientTests.swift",
        "Helpers/HTTPURLResponse+Mock.swift",
        "Helpers/TestAPIClient.swift",
        "Helpers/TestEndpoint.swift",
        "Helpers/TestModels.swift",
        "Mocks/ConcurrentHTTPTransportMock.swift",
        "Mocks/HTTPTransportMock.swift",
        "Mocks/URLProtocolStub.swift",
        "RequestBuilderTests.swift",
        "URLSessionTransportTests.swift"
      ],
      "target_dependencies" : [
        "APIClientCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "APIClientCore",
      "module_type" : "SwiftTarget",
      "name" : "APIClientCore",
      "path" : "Sources/APIClientCore",
      "product_memberships" : [
        "APIClientCore"
      ],
      "sources" : [
        "Client/APIClient.swift",
        "Client/DefaultAPIClient.swift",
        "Configuration/APIConfiguration.swift",
        "Core/DataCoding/DataCoding.swift",
        "Core/DataCoding/JSONCoder+Convenience.swift",
        "Core/DataCoding/PropertyListCoder+Convenience.swift",
        "Core/DataCoding/StringCoder+Convenience.swift",
        "Core/Errors/HTTPStatusError.swift",
        "Core/HTTPMethod.swift",
        "Core/RequestBuilder.swift",
        "Endpoint/APIEndpoint.swift",
        "Transport/HTTPTransport.swift",
        "Transport/URLSessionTransport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/15] Compiling APIClientCore HTTPTransport.swift
[4/16] Compiling APIClientCore JSONCoder+Convenience.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
[5/16] Compiling APIClientCore PropertyListCoder+Convenience.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
[6/16] Compiling APIClientCore HTTPMethod.swift
[7/16] Compiling APIClientCore RequestBuilder.swift
[8/16] Compiling APIClientCore HTTPStatusError.swift
[9/16] Compiling APIClientCore StringCoder+Convenience.swift
[10/16] Compiling APIClientCore APIEndpoint.swift
[11/16] Compiling APIClientCore APIClient.swift
[12/16] Compiling APIClientCore DefaultAPIClient.swift
[13/16] Compiling APIClientCore APIConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[14/16] Compiling APIClientCore DataCoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[15/16] Emitting module APIClientCore
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[16/16] Compiling APIClientCore URLSessionTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:35:50: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// > Tip: This transport is used by default in `APIConfiguration`.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   :
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                 `- note: add @available attribute to enclosing instance method
35 |         let (data, response) = try await session.data(for: request)
   |                                                  |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
   |                                                  `- note: add 'if #available' version check
36 |         guard let httpResponse = response as? HTTPURLResponse else {
37 |             throw URLError(.badServerResponse)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/14] Compiling APIClientCore APIEndpoint.swift
[3/15] Compiling APIClientCore HTTPTransport.swift
[4/15] Compiling APIClientCore HTTPMethod.swift
[5/15] Compiling APIClientCore HTTPStatusError.swift
[6/15] Compiling APIClientCore RequestBuilder.swift
[7/15] Compiling APIClientCore JSONCoder+Convenience.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
[8/15] Compiling APIClientCore PropertyListCoder+Convenience.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:24:28: warning: type 'Any' does not conform to the 'Sendable' protocol
22 |         let encoder = PropertyListEncoder()
23 |         encoder.outputFormat = outputFormat
24 |         encoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
25 |         return encoder
26 |     }
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/PropertyListCoder+Convenience.swift:34:28: warning: type 'Any' does not conform to the 'Sendable' protocol
32 |     static func configured(userInfo: [CodingUserInfoKey: Any]) -> PropertyListDecoder {
33 |         let decoder = PropertyListDecoder()
34 |         decoder.userInfo = userInfo
   |                            `- warning: type 'Any' does not conform to the 'Sendable' protocol
35 |         return decoder
36 |     }
[9/15] Compiling APIClientCore StringCoder+Convenience.swift
[10/15] Compiling APIClientCore APIClient.swift
[11/15] Compiling APIClientCore DefaultAPIClient.swift
[12/15] Compiling APIClientCore APIConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[13/15] Compiling APIClientCore DataCoding.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[14/15] Emitting module APIClientCore
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:33:1: warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 31 | // MARK: - JSONEncoder conformances
 32 |
 33 | extension JSONEncoder: DataEncoder {}
    | |- warning: conformance of 'JSONEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 34 |
 35 | // MARK: - JSONDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:37:1: warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 35 | // MARK: - JSONDecoder conformances
 36 |
 37 | extension JSONDecoder: DataDecoder {}
    | |- warning: conformance of 'JSONDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 38 |
 39 | // MARK: - PropertyListEncoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:41:1: warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
 39 | // MARK: - PropertyListEncoder conformances
 40 |
 41 | extension PropertyListEncoder: DataEncoder {}
    | |- warning: conformance of 'PropertyListEncoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 42 |
 43 | // MARK: - PropertyListDecoder conformances
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Core/DataCoding/DataCoding.swift:45:1: warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
 43 | // MARK: - PropertyListDecoder conformances
 44 |
 45 | extension PropertyListDecoder: DataDecoder {}
    | |- warning: conformance of 'PropertyListDecoder' to 'Sendable' is only available in macOS 13.0 or newer
    | `- note: add @available attribute to enclosing extension
 46 |
 47 | // MARK: - StringEncoder
[15/15] Compiling APIClientCore URLSessionTransport.swift
/Users/admin/builder/spi-builder-workspace/Sources/APIClientCore/Transport/URLSessionTransport.swift:35:50: error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
11 | ///
12 | /// > Tip: This transport is used by default in `APIConfiguration`.
13 | public struct URLSessionTransport: HTTPTransport, Sendable {
   |               `- note: add @available attribute to enclosing struct
14 |     /// The underlying `URLSession` used to execute requests.
15 |     public let session: URLSession
   :
32 |     ///   - `URLError(.badServerResponse)` if the response is not an `HTTPURLResponse`.
33 |     ///   - `CancellationError` if the task was cancelled.
34 |     public func data(for request: URLRequest) async throws -> (Data, HTTPURLResponse) {
   |                 `- note: add @available attribute to enclosing instance method
35 |         let (data, response) = try await session.data(for: request)
   |                                                  |- error: 'data(for:delegate:)' is only available in macOS 12.0 or newer
   |                                                  `- note: add 'if #available' version check
36 |         guard let httpResponse = response as? HTTPURLResponse else {
37 |             throw URLError(.badServerResponse)
BUILD FAILURE 6.1 macosSpm