Build Information
Failed to build Buble, reference main (d93f24), with Swift 6.2 for Wasm on 28 Jun 2026 21:46:34 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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bublehq/swift-sdk.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/bublehq/swift-sdk
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at d93f24c Prepare Swift SDK for package distribution
Cloned https://github.com/bublehq/swift-sdk.git
Revision (git rev-parse @):
d93f24cc524e16cf569063a3cb898d45dd383cd1
SUCCESS checkout https://github.com/bublehq/swift-sdk.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/bublehq/swift-sdk.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:wasm-6.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Building for debugging...
[0/35] Write sources
[9/35] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/53] Emitting module Buble
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:99:17: error: cannot find type 'URLRequest' in scope
97 | body: JSONValue? = nil,
98 | accept: String
99 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
100 | guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
101 | throw BubleError.invalidURL(baseURL.absoluteString)
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | public init(session: URLSession = .shared) {
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/Buble/HTTPTransport.swift:37:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | self.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/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:41:33: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | public func send(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
42 | let (data, response) = try await session.data(for: request)
43 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:53:35: error: cannot find type 'URLRequest' in scope
51 | }
52 |
53 | public func stream(_ request: URLRequest) async throws -> HTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
54 | let (bytes, response) = try await session.bytes(for: request)
55 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:17: warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
36 |
37 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:88:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
86 | }
87 |
88 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
89 | var headerFields: [String: String] {
90 | var output: [String: String] = [:]
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[12/55] Compiling Buble URLCoding.swift
[13/55] Compiling Buble WaitOptions.swift
[14/55] Compiling Buble AppsService.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
[15/55] Compiling Buble BubleClient.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
[16/55] Compiling Buble BubleClientOptions.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
[17/55] Compiling Buble MediaModelsService.swift
[18/55] Compiling Buble ServerSentEvent.swift
[19/55] Compiling Buble StreamText.swift
[20/55] Compiling Buble Types.swift
[21/55] Compiling Buble FoundationCompat.swift
[22/55] Compiling Buble GenerationsService.swift
[23/55] Compiling Buble CreateGenerationRequest.swift
[24/55] Compiling Buble FileUpload.swift
[25/55] Compiling Buble FilesService.swift
[26/55] Compiling Buble HTTPTransport.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | public init(session: URLSession = .shared) {
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/Buble/HTTPTransport.swift:37:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | self.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/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:41:33: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | public func send(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
42 | let (data, response) = try await session.data(for: request)
43 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:53:35: error: cannot find type 'URLRequest' in scope
51 | }
52 |
53 | public func stream(_ request: URLRequest) async throws -> HTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
54 | let (bytes, response) = try await session.bytes(for: request)
55 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:17: warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
36 |
37 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:88:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
86 | }
87 |
88 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
89 | var headerFields: [String: String] {
90 | var output: [String: String] = [:]
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:42:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | public func send(_ request: URLRequest) async throws -> HTTPResponse {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw BubleError.transport("Buble API returned a non-HTTP response.")
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:54:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
52 |
53 | public func stream(_ request: URLRequest) async throws -> HTTPStreamResponse {
54 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
55 | guard let httpResponse = response as? HTTPURLResponse else {
56 | throw BubleError.transport("Buble API returned a non-HTTP response.")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[27/55] Compiling Buble JSONValue.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | public init(session: URLSession = .shared) {
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/Buble/HTTPTransport.swift:37:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | self.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/Buble/HTTPTransport.swift:37:40: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:37:40: error: value of type '_' expected to be instance of class or class-constrained type
35 | private let session: URLSession
36 |
37 | public init(session: URLSession = .shared) {
| `- error: value of type '_' expected to be instance of class or class-constrained type
38 | self.session = session
39 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:41:33: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | public func send(_ request: URLRequest) async throws -> HTTPResponse {
| `- error: cannot find type 'URLRequest' in scope
42 | let (data, response) = try await session.data(for: request)
43 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:53:35: error: cannot find type 'URLRequest' in scope
51 | }
52 |
53 | public func stream(_ request: URLRequest) async throws -> HTTPStreamResponse {
| `- error: cannot find type 'URLRequest' in scope
54 | let (bytes, response) = try await session.bytes(for: request)
55 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:35:17: warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
33 | /// URLSession-backed HTTP transport.
34 | public struct URLSessionHTTPTransport: HTTPTransport {
35 | private let session: URLSession
| `- warning: stored property 'session' of 'Sendable'-conforming struct 'URLSessionHTTPTransport' has non-Sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
36 |
37 | public init(session: URLSession = .shared) {
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:88:9: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
86 | }
87 |
88 | private extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
89 | var headerFields: [String: String] {
90 | var output: [String: String] = [:]
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:42:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
40 |
41 | public func send(_ request: URLRequest) async throws -> HTTPResponse {
42 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 | guard let httpResponse = response as? HTTPURLResponse else {
44 | throw BubleError.transport("Buble API returned a non-HTTP response.")
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:54:51: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
52 |
53 | public func stream(_ request: URLRequest) async throws -> HTTPStreamResponse {
54 | let (bytes, response) = try await session.bytes(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
55 | guard let httpResponse = response as? HTTPURLResponse else {
56 | throw BubleError.transport("Buble API returned a non-HTTP response.")
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[28/55] Compiling Buble BubleError.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:99:17: error: cannot find type 'URLRequest' in scope
97 | body: JSONValue? = nil,
98 | accept: String
99 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
100 | guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
101 | throw BubleError.invalidURL(baseURL.absoluteString)
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:54:59: error: 'nil' requires a contextual type
52 | ) async throws -> T {
53 | let multipart = try file.multipartBody(fields: fields)
54 | var request = try makeRequest("POST", path, body: nil, accept: "application/json")
| `- error: 'nil' requires a contextual type
55 | request.setValue(multipart.contentType, forHTTPHeaderField: "Content-Type")
56 | request.httpBody = multipart.body
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:113:23: error: cannot find 'URLRequest' in scope
111 | }
112 |
113 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
114 | request.httpMethod = method
115 | request.timeoutInterval = timeout
[29/55] Compiling Buble BubleHTTPClient.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:99:17: error: cannot find type 'URLRequest' in scope
97 | body: JSONValue? = nil,
98 | accept: String
99 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
100 | guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
101 | throw BubleError.invalidURL(baseURL.absoluteString)
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:54:59: error: 'nil' requires a contextual type
52 | ) async throws -> T {
53 | let multipart = try file.multipartBody(fields: fields)
54 | var request = try makeRequest("POST", path, body: nil, accept: "application/json")
| `- error: 'nil' requires a contextual type
55 | request.setValue(multipart.contentType, forHTTPHeaderField: "Content-Type")
56 | request.httpBody = multipart.body
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:113:23: error: cannot find 'URLRequest' in scope
111 | }
112 |
113 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
114 | request.httpMethod = method
115 | request.timeoutInterval = timeout
[30/55] Compiling Buble ChatService.swift
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:29:26: error: cannot find type 'URLRequest' in scope
27 | /// Transport abstraction used by the SDK and tests.
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
| `- error: cannot find type 'URLRequest' in scope
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
31 | }
/host/spi-builder-workspace/Sources/Buble/HTTPTransport.swift:30:28: error: cannot find type 'URLRequest' in scope
28 | public protocol HTTPTransport: Sendable {
29 | func send(_ request: URLRequest) async throws -> HTTPResponse
30 | func stream(_ request: URLRequest) async throws -> HTTPStreamResponse
| `- error: cannot find type 'URLRequest' in scope
31 | }
32 |
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:99:17: error: cannot find type 'URLRequest' in scope
97 | body: JSONValue? = nil,
98 | accept: String
99 | ) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
100 | guard var components = URLComponents(url: baseURL, resolvingAgainstBaseURL: false) else {
101 | throw BubleError.invalidURL(baseURL.absoluteString)
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:54:59: error: 'nil' requires a contextual type
52 | ) async throws -> T {
53 | let multipart = try file.multipartBody(fields: fields)
54 | var request = try makeRequest("POST", path, body: nil, accept: "application/json")
| `- error: 'nil' requires a contextual type
55 | request.setValue(multipart.contentType, forHTTPHeaderField: "Content-Type")
56 | request.httpBody = multipart.body
/host/spi-builder-workspace/Sources/Buble/BubleHTTPClient.swift:113:23: error: cannot find 'URLRequest' in scope
111 | }
112 |
113 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
114 | request.httpMethod = method
115 | request.timeoutInterval = timeout
BUILD FAILURE 6.2 wasm