The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Spidra, reference main (3d0230), with Swift 6.2 for Linux on 29 Oct 2026 18:30:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886768-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:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spidra-io/spidra-swift.git
Reference: main
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/spidra-io/spidra-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3d02308 feat: bring Swift SDK up to parity with Python SDK v0.6.0
Cloned https://github.com/spidra-io/spidra-swift.git
Revision (git rev-parse @):
3d02308f397794b5fcb70122777e449d91c7da9d
SUCCESS checkout https://github.com/spidra-io/spidra-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/spidra-io/spidra-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-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:linux-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:fb5d8fda777a26ddf92a54d8d0a4928674c7f15e70feba2d3a729a0a6d9cf40c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/29] Emitting module Spidra
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         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/Spidra/HTTPClient.swift:9:62: error: value of type '_' expected to be instance of class or class-constrained type
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:54:17: error: cannot find type 'URLRequest' in scope
 52 |         body: T? = nil,
 53 |         query: [String: String?]? = nil
 54 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 55 |         var base = config.baseUrl
 56 |         if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 96 |         let (data, response) = try await session.data(for: request)
 97 |
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, 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/Spidra/SpidraClient.swift:19:103: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
[4/32] Compiling Spidra PresetsResource.swift
[5/32] Compiling Spidra ScrapeResource.swift
[6/32] Compiling Spidra SearchResource.swift
[7/32] Compiling Spidra TemplatesResource.swift
[8/32] Compiling Spidra LogsResource.swift
[9/32] Compiling Spidra MapResource.swift
[10/32] Compiling Spidra MonitorsResource.swift
[11/32] Compiling Spidra ParseResource.swift
[12/32] Compiling Spidra HTTPClient.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: value of type '_' expected to be instance of class or class-constrained type
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:54:17: error: cannot find type 'URLRequest' in scope
 52 |         body: T? = nil,
 53 |         query: [String: String?]? = nil
 54 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 55 |         var base = config.baseUrl
 56 |         if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 96 |         let (data, response) = try await session.data(for: request)
 97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 32 |     public func delete(_ endpoint: String) async throws {
 33 |         let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
 34 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 35 |         guard let httpResponse = response as? HTTPURLResponse else {
 36 |             throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
 80 |         }
 81 |
 82 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 83 |         request.httpMethod = method
 84 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 96 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 97 |
 98 |         guard let httpResponse = response as? HTTPURLResponse else {
[13/32] Compiling Spidra AccountResource.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: value of type '_' expected to be instance of class or class-constrained type
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:54:17: error: cannot find type 'URLRequest' in scope
 52 |         body: T? = nil,
 53 |         query: [String: String?]? = nil
 54 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 55 |         var base = config.baseUrl
 56 |         if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 96 |         let (data, response) = try await session.data(for: request)
 97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 32 |     public func delete(_ endpoint: String) async throws {
 33 |         let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
 34 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 35 |         guard let httpResponse = response as? HTTPURLResponse else {
 36 |             throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
 80 |         }
 81 |
 82 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 83 |         request.httpMethod = method
 84 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 96 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 97 |
 98 |         guard let httpResponse = response as? HTTPURLResponse else {
[14/32] Compiling Spidra BatchResource.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: value of type '_' expected to be instance of class or class-constrained type
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:54:17: error: cannot find type 'URLRequest' in scope
 52 |         body: T? = nil,
 53 |         query: [String: String?]? = nil
 54 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 55 |         var base = config.baseUrl
 56 |         if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 96 |         let (data, response) = try await session.data(for: request)
 97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 32 |     public func delete(_ endpoint: String) async throws {
 33 |         let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
 34 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 35 |         guard let httpResponse = response as? HTTPURLResponse else {
 36 |             throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
 80 |         }
 81 |
 82 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 83 |         request.httpMethod = method
 84 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 96 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 97 |
 98 |         guard let httpResponse = response as? HTTPURLResponse else {
[15/32] Compiling Spidra CrawlResource.swift
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:5:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  3 | public class HttpClient {
  4 |     private let config: SpidraConfig
  5 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  6 |     private let encoder: JSONEncoder
  7 |     private let decoder: JSONDecoder
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/Spidra/HTTPClient.swift:9:48: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |         self.config = config
 11 |         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/Spidra/HTTPClient.swift:9:62: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:9:62: error: value of type '_' expected to be instance of class or class-constrained type
  7 |     private let decoder: JSONDecoder
  8 |
  9 |     public init(config: SpidraConfig, session: URLSession = .shared) {
    |                                                              `- error: value of type '_' expected to be instance of class or class-constrained type
 10 |         self.config = config
 11 |         self.session = session
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:54:17: error: cannot find type 'URLRequest' in scope
 52 |         body: T? = nil,
 53 |         query: [String: String?]? = nil
 54 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
 55 |         var base = config.baseUrl
 56 |         if base.hasSuffix("/") {
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:95:47: error: cannot find type 'URLRequest' in scope
 93 |     }
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
    |                                               `- error: cannot find type 'URLRequest' in scope
 96 |         let (data, response) = try await session.data(for: request)
 97 |
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:34:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 32 |     public func delete(_ endpoint: String) async throws {
 33 |         let request = try createRequest(endpoint: endpoint, method: "DELETE", body: Optional<String>.none)
 34 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 35 |         guard let httpResponse = response as? HTTPURLResponse else {
 36 |             throw SpidraError.networkError(URLError(.badServerResponse))
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:82:23: error: cannot find 'URLRequest' in scope
 80 |         }
 81 |
 82 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 83 |         request.httpMethod = method
 84 |         request.setValue("Bearer \(config.apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/Spidra/HTTPClient.swift:96:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 94 |
 95 |     private func execute<U: Codable>(request: URLRequest) async throws -> U {
 96 |         let (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 97 |
 98 |         guard let httpResponse = response as? HTTPURLResponse else {
[16/32] Compiling Spidra SpidraError.swift
[17/32] Compiling Spidra Templates.swift
[18/32] Compiling Spidra Usage.swift
[19/32] Compiling Spidra Map.swift
[20/32] Compiling Spidra Monitors.swift
[21/32] Compiling Spidra Parse.swift
[22/32] Compiling Spidra Presets.swift
[23/32] Compiling Spidra Scrape.swift
[24/32] Compiling Spidra Search.swift
[25/32] Compiling Spidra Batch.swift
[26/32] Compiling Spidra Core.swift
[27/32] Compiling Spidra Crawl.swift
[28/32] Compiling Spidra Logs.swift
[29/32] Compiling Spidra UsageResource.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, 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/Spidra/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:103: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
[30/32] Compiling Spidra SpidraClient.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, 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/Spidra/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:103: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
[31/32] Compiling Spidra Account.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, 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/Spidra/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:103: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
[32/32] Compiling Spidra AnyCodable.swift
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:89: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, 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/Spidra/SpidraClient.swift:19:103: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
/host/spi-builder-workspace/Sources/Spidra/SpidraClient.swift:19:103: error: value of type '_' expected to be instance of class or class-constrained type
 17 |     private let http: HttpClient
 18 |
 19 |     public init(apiKey: String, baseUrl: String = "https://api.spidra.io/api", session: URLSession = .shared) {
    |                                                                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
 20 |         let config = SpidraConfig(apiKey: apiKey, baseUrl: baseUrl)
 21 |         self.http = HttpClient(config: config, session: session)
BUILD FAILURE 6.2 linux