Build Information
Failed to build Agentback, reference 0.3.0 (67fce8), with Swift 6.3 for Wasm on 27 Nov 2026 03:21:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/superagents-lab/agentback-swift.git
Reference: 0.3.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/superagents-lab/agentback-swift
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at 67fce8a Reports take an optional reporter email (0.3.0) (#1)
Cloned https://github.com/superagents-lab/agentback-swift.git
Revision (git rev-parse @):
67fce8ad90633d32a2e977a445ee0e19fe3c1f34
SUCCESS checkout https://github.com/superagents-lab/agentback-swift.git at 0.3.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/superagents-lab/agentback-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:c3e9b647a8a44b039f995a08aedc0aa863ba107df357cae1fa410b778751f9d2
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-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/4] Emitting module Agentback
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:87:39: error: cannot find type 'URLRequest' in scope
85 |
86 | private let endpoint: URL
87 | private let transport: @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | /// HTTPS is required except for loopback development servers. Uses an ephemeral session
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:92:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
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/Agentback/Agentback.swift:92:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:92:66: error: cannot infer contextual base in reference to member 'ephemeral'
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:99:42: error: cannot find type 'URLRequest' in scope
97 |
98 | init(projectKey: String, origin: URL,
99 | transport: @escaping @Sendable (URLRequest) async throws -> (Data, URLResponse)) throws {
| `- error: cannot find type 'URLRequest' in scope
100 | guard projectKey.range(of: "^af_[a-f0-9]{64}$", options: .regularExpression) != nil else {
101 | throw AgentbackError.invalidConfiguration
[4/4] Compiling Agentback Agentback.swift
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:87:39: error: cannot find type 'URLRequest' in scope
85 |
86 | private let endpoint: URL
87 | private let transport: @Sendable (URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
88 |
89 | /// HTTPS is required except for loopback development servers. Uses an ephemeral session
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:92:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
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/Agentback/Agentback.swift:92:39: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:92:66: error: cannot infer contextual base in reference to member 'ephemeral'
90 | /// by default so feedback never shares the application's cookies or disk cache.
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
| `- error: cannot infer contextual base in reference to member 'ephemeral'
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
94 | try await session.data(for: request)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:99:42: error: cannot find type 'URLRequest' in scope
97 |
98 | init(projectKey: String, origin: URL,
99 | transport: @escaping @Sendable (URLRequest) async throws -> (Data, URLResponse)) throws {
| `- error: cannot find type 'URLRequest' in scope
100 | guard projectKey.range(of: "^af_[a-f0-9]{64}$", options: .regularExpression) != nil else {
101 | throw AgentbackError.invalidConfiguration
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:93:74: error: extra argument 'transport' in call
91 | public init(projectKey: String, origin: URL = URL(string: "https://agentback.app")!,
92 | session: URLSession = URLSession(configuration: .ephemeral)) throws {
93 | try self.init(projectKey: projectKey, origin: origin, transport: { request in
| `- error: extra argument 'transport' in call
94 | try await session.data(for: request)
95 | })
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:123:23: error: cannot find 'URLRequest' in scope
121 | let body = try JSONEncoder().encode(payload)
122 | guard body.count <= 65_536 else { throw AgentbackError.invalidReport(field: "body") }
123 | var request = URLRequest(url: endpoint)
| `- error: cannot find 'URLRequest' in scope
124 | request.httpMethod = "POST"
125 | request.timeoutInterval = 20
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:126:32: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
124 | request.httpMethod = "POST"
125 | request.timeoutInterval = 20
126 | request.cachePolicy = .reloadIgnoringLocalCacheData
| `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
127 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
128 | request.setValue("application/json", forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:131:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
129 | request.httpBody = body
130 | let data: Data
131 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 | do {
133 | (data, response) = try await transport(request)
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/Agentback/Agentback.swift:140:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
138 | throw AgentbackError.network
139 | }
140 | guard let http = response as? HTTPURLResponse else { throw AgentbackError.invalidResponse }
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
141 | guard http.statusCode == 201 else {
142 | let retryAfter = http.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:140:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
138 | throw AgentbackError.network
139 | }
140 | guard let http = response as? HTTPURLResponse else { throw AgentbackError.invalidResponse }
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
141 | guard http.statusCode == 201 else {
142 | let retryAfter = http.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:141:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
139 | }
140 | guard let http = response as? HTTPURLResponse else { throw AgentbackError.invalidResponse }
141 | guard http.statusCode == 201 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
142 | let retryAfter = http.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
143 | throw AgentbackError.http(status: http.statusCode, retryAfter: retryAfter)
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:142:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
140 | guard let http = response as? HTTPURLResponse else { throw AgentbackError.invalidResponse }
141 | guard http.statusCode == 201 else {
142 | let retryAfter = http.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
143 | throw AgentbackError.http(status: http.statusCode, retryAfter: retryAfter)
144 | }
/host/spi-builder-workspace/Sources/Agentback/Agentback.swift:143:52: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
141 | guard http.statusCode == 201 else {
142 | let retryAfter = http.value(forHTTPHeaderField: "Retry-After").flatMap(TimeInterval.init)
143 | throw AgentbackError.http(status: http.statusCode, retryAfter: retryAfter)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
144 | }
145 | guard let receipt = try? JSONDecoder().decode(Receipt.self, from: data),
BUILD FAILURE 6.3 wasm