The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AnthropicSwiftSDK, reference 0.14.0 (164609), with Swift 6.4 for Linux on 22 Sep 2026 16:37:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fumito-ito/AnthropicSwiftSDK.git
Reference: 0.14.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/fumito-ito/AnthropicSwiftSDK
 * tag               0.14.0     -> FETCH_HEAD
HEAD is now at 1646098 Merge pull request #83 from fumito-ito/feature/swift6
Cloned https://github.com/fumito-ito/AnthropicSwiftSDK.git
Revision (git rev-parse @):
16460981405215d83a14746a106564e53376bc32
SUCCESS checkout https://github.com/fumito-ito/AnthropicSwiftSDK.git at 0.14.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/fumito-ito/AnthropicSwiftSDK.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/fumito-ito/SwiftyJSONLines.git
[1/64] Fetching swiftyjsonlines
Fetched https://github.com/fumito-ito/SwiftyJSONLines.git (0.48s)
Computing version for https://github.com/fumito-ito/SwiftyJSONLines.git
Computed https://github.com/fumito-ito/SwiftyJSONLines.git at 0.0.4 (0.63s)
Creating working copy for https://github.com/fumito-ito/SwiftyJSONLines.git
Working copy of https://github.com/fumito-ito/SwiftyJSONLines.git resolved at 0.0.4
Building for debugging...
[Pre-planning 1 / 125]
[Starting]
[33 / 55] SwiftyJSONLines
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct APIKeys {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:54: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:68: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                                    `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift:16:68: error: value of type '_' expected to be instance of class or class-constrained type
14 |     public let apiKeys: APIKeys
15 |
16 |     public init(adminAPIKey apiKey: String, session: URLSession = .shared) {
   |                                                                    `- error: value of type '_' expected to be instance of class or class-constrained type
17 |         self.organizationMembers = OrganizationMembers(adminAPIKey: apiKey, session: session)
18 |         self.organizationInvites = OrganizationInvites(adminAPIKey: apiKey, session: session)
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationInvites {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:11:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct OrganizationMembers {
 10 |     let apiKey: String
 11 |     let session: URLSession
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift:13:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     let session: URLSession
 12 |
 13 |     init(adminAPIKey apiKey: String, session: URLSession) {
    |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = apiKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct WorkspaceMembers {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public struct Workspaces {
 10 |     private let apiKey: String
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift:13:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 11 |     private let session: URLSession
 12 |
 13 |     init(adminAPIKey: String, session: URLSession) {
    |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |         self.apiKey = adminAPIKey
 15 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:13:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |     private let apiKey: String
12 |     /// The URL session used for network requests.
13 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |
15 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift:20:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     ///   - apiKey: The API key for authentication.
19 |     ///   - session: The URL session for network requests.
20 |     init(apiKey: String, session: URLSession) {
   |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |         self.apiKey = apiKey
22 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 |     private let apiKey: String
 15 |     /// The URL session used for network requests.
 16 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     /// Initializes a new instance of `MessageBatches`.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift:23:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 21 |     ///   - apiKey: The API key for authentication.
 22 |     ///   - session: The URL session for network requests.
 23 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |         self.apiKey = apiKey
 25 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:12:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 | public struct Messages {
 11 |     private let apiKey: String
 12 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |     init(apiKey: String, session: URLSession) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift:14:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private let session: URLSession
 13 |
 14 |     init(apiKey: String, session: URLSession) {
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |         self.apiKey = apiKey
 16 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift:37:61: error: value of type '_' expected to be instance of class or class-constrained type
35 |     ///
36 |     /// - Parameter adminAPIKey: API key to access Anthropic Admin API
37 |     public init(adminAPIKey: String, session: URLSession = .shared) {
   |                                                             `- error: value of type '_' expected to be instance of class or class-constrained type
38 |         self.admin = Admin(adminAPIKey: adminAPIKey, session: session)
39 |     }
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift:17:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     case unknownStreamingResponseLine(String)
16 |     /// URLRequest could not be cast to HTTPURLRequest
17 |     case cannotHandleURLResponse(URLResponse)
   |                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |     /// The DataLine string returned from Stream could not be cast to the Data attribute.
19 |     case cannotHandleDataOfDataLine(String)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | struct APIClient {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     let baseURL: URL
13 |     let anthropicHeaderProvider: AnthropicHeaderProvider
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:17:32: error: value of type '_' expected to be instance of class or class-constrained type
15 |
16 |     init(
17 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
18 |         baseURL: URL = .init(string: "https://api.anthropic.com")!, // swiftlint:disable:this force_unwrapping
19 |         anthropicHeaderProvider: AnthropicHeaderProvider,
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:46:60: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |     /// - Parameter request: request body for api request
45 |     /// - Returns: response from API
46 |     func send(request: any Request) async throws -> (Data, URLResponse) {
   |                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |         var urlRequest = try request.toURLRequest(for: baseURL)
48 |         headers.forEach { key, value in
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift:74:67: error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
72 |     /// - Parameter request: request body for api request
73 |     /// - Returns: response chunk from API
74 |     func stream(request: any Request) async throws -> (URLSession.AsyncBytes, URLResponse) {
   |                                                                   `- error: 'AsyncBytes' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
75 |         var urlRequest = try request.toURLRequest(for: baseURL)
76 |         headers.forEach { key, value in
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift:16:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |     // swiftlint:disable:next function_parameter_count
15 |     func list(
16 |         session: URLSession,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |         type: RequestType,
18 |         limit: Int,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift:58:51: error: cannot find type 'URLRequest' in scope
56 |
57 | extension Request {
58 |     func toURLRequest(for baseURL: URL) throws -> URLRequest {
   |                                                   `- error: cannot find type 'URLRequest' in scope
59 |         let url = baseURL.appendingPathComponent(path)
60 |
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/APIKeys.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Admin.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationInvites.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/OrganizationMembers.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/WorkspaceMembers.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Admin/Workspaces.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/CountTokens.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/MessageBatches.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/API/Messages.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Anthropic.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/AnthropicAPIError.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/AnthropicVersion.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/ClientError.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Admin/Invitation.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Admin/OrganizationRole.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Admin/Registration.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Admin/WorkspaceRole.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/BatchParameter.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/BatchRequestCounts.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/BatchResultType.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/BatchType.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/MessageBatch.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Batch/ProcessingStatus.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/Content.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/DocumentContent.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/ImageContent.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/ToolResultContent.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Content/ToolUseContent.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Message.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/MetaData.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Model.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Role.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/StopReason.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Streaming/ContentBlockDelta.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Streaming/ContentBlockDeltaType.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Streaming/MessageDelta.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Streaming/StreamingError.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Streaming/StreamingEvent.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/SystemPrompt.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/TokenUsage.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Tool/BashTool.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Tool/ComputerTool.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Tool/FunctionTool.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Tool/TextEditorTool.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/Tool/Tool.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Entity/ToolChoice.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/AnthropicAPIClient.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Extension/StreamingResponse+Extension.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/HeaderProvider/AnthropicHeaderProvider.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/HeaderProvider/AuthenticationHeaderProvider.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/ObjectListable.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/APIKeys/GetAPIKeyRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/APIKeys/UpdateAPIKeyRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/CountTokenRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/ListObjectRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/MessageBatches/CancelMessageBatchRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/MessageBatches/MessageBatchesRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/MessageBatches/RetrieveMessageBatchResultsRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/MessageBatches/RetrieveMessageBatchesRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/MessagesRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationInvites/CreateOrganizationInviteRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationInvites/DeleteOrganizationInviteRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationInvites/GetOrganizationInviteRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationMembers/GetOrganizationMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationMembers/RemoveOrganizationMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/OrganizationMembers/UpdateOrganizationMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Request.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/WorkspaceMembers/CreateWorkspaceMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/WorkspaceMembers/DeleteWorkspaceMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/WorkspaceMembers/GetWorkspaceMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/WorkspaceMembers/UpdateWorkspaceMemberRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Workspaces/ArchiveWorkspaceRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Workspaces/CreateWorkspaceRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Workspaces/GetWorkspaceRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Request/Workspaces/UpdateWorkspaceRequest.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/APIKeyResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/BatchResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/BatchResultResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/CountTokenResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/InvitationRemoveResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/InvitationResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/MessagesResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/ObjectListResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/OrganizationMemberRemoveResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/OrganizationMemberResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/StreamingResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/WorkspaceMemberRemoveResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/WorkspaceMemberResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/Response/WorkspaceResponse.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/AnthropicStreamingParser.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/StreamingDataLineParser.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/StreamingEventLineParser.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Network/StreamingParser/StreamingResponseParser.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/AnthropicJSONDecoder.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/AnthropicJSONEncoder.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/AnyDecodable.swift /host/spi-builder-workspace/Sources/AnthropicSwiftSDK/Util/InputJSONDeltaAccumulator.swift -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name AnthropicSwiftSDK -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/AnthropicSwiftSDK_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/Modules/AnthropicSwiftSDK.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/Modules/AnthropicSwiftSDK.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/AnthropicSwiftSDK-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/AnthropicSwiftSDK-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/AnthropicSwiftSDK-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/AnthropicSwiftSDK.build/Debug-linux-x86_64/AnthropicSwiftSDK-t.build/Objects-normal/x86_64/Modules/AnthropicSwiftSDK.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux