Build Information
Failed to build Spidra, reference v1.1.0 (3d0230), with Swift 6.3 for Android on 29 Nov 2026 04:34:07 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-58779149-1":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/spidra-io/spidra-swift.git
Reference: v1.1.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/spidra-io/spidra-swift
* tag v1.1.0 -> FETCH_HEAD
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 v1.1.0
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/spidra-io/spidra-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-58779149-1":/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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:456a0db6fb3cfb8f98bfbd2540edcdeb716848f9352219df1a9ea239639f96ab
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-272D24FF697CF451.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: 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/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)
[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 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: 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)
[9/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: 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)
[10/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: 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)
[11/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: 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)
[12/32] Compiling Spidra Map.swift
[13/32] Compiling Spidra Monitors.swift
[14/32] Compiling Spidra Parse.swift
[15/32] Compiling Spidra Presets.swift
[16/32] Compiling Spidra Scrape.swift
[17/32] Compiling Spidra Search.swift
[18/32] Compiling Spidra SpidraError.swift
[19/32] Compiling Spidra Templates.swift
[20/32] Compiling Spidra Usage.swift
[21/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: 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/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 {
[22/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: 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/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 {
[23/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: 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/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 {
[24/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: 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/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 {
[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 LogsResource.swift
[30/32] Compiling Spidra MapResource.swift
[31/32] Compiling Spidra MonitorsResource.swift
[32/32] Compiling Spidra ParseResource.swift
BUILD FAILURE 6.3 android