Build Information
Failed to build YTLiveStreaming, reference master (a7e22b), with Swift 6.1 for Wasm on 25 Sep 2026 22:30:50 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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SKrotkih/YTLiveStreaming.git
Reference: master
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/SKrotkih/YTLiveStreaming
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at a7e22b1 purgeBroadcast: delete the broadcast left behind after videos.delete
Cloned https://github.com/SKrotkih/YTLiveStreaming.git
Revision (git rev-parse @):
a7e22b1000c6b4290eb316695a4a508c17d7cf50
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/SKrotkih/YTLiveStreaming.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/SKrotkih/YTLiveStreaming.git
https://github.com/SKrotkih/YTLiveStreaming.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/16] Compiling YTLiveStreaming Endpoint.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:34:23: error: cannot find 'URLRequest' in scope
32 | guard let url = components.url else { throw YouTubeLiveError.invalidResponse }
33 |
34 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue
36 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:14:33: error: cannot find type 'URLRequest' in scope
12 |
13 | extension URLSession: HTTPTransport {
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
15 | let body: Data
16 | let response: URLResponse
[4/16] Compiling YTLiveStreaming HTTPTransport.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:34:23: error: cannot find 'URLRequest' in scope
32 | guard let url = components.url else { throw YouTubeLiveError.invalidResponse }
33 |
34 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue
36 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:14:33: error: cannot find type 'URLRequest' in scope
12 |
13 | extension URLSession: HTTPTransport {
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
15 | let body: Data
16 | let response: URLResponse
[5/17] Compiling YTLiveStreaming JSONCoding.swift
[6/17] Compiling YTLiveStreaming YouTubeLiveClient+Chat.swift
[7/17] Compiling YTLiveStreaming YouTubeLiveClient+Purge.swift
[8/17] Compiling YTLiveStreaming LiveChat.swift
[9/17] Compiling YTLiveStreaming LiveStream.swift
[10/17] Compiling YTLiveStreaming TokenProvider.swift
[11/17] Compiling YTLiveStreaming BroadcastMonitor.swift
[12/17] Compiling YTLiveStreaming YouTubeLiveError.swift
[13/17] Compiling YTLiveStreaming Cuepoint.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/17] Compiling YTLiveStreaming Enums.swift
[15/17] Compiling YTLiveStreaming LiveBroadcast.swift
[16/17] Emitting module YTLiveStreaming
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:53:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
51 | tokenProvider: any TokenProvider,
52 | configuration: Configuration = Configuration(),
53 | transport: any HTTPTransport = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 | ) {
55 | self.tokenProvider = tokenProvider
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:284:73: error: cannot find type 'URLRequest' in scope
282 | }
283 |
284 | private func request(_ endpoint: Endpoint, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
285 | try endpoint.urlRequest(
286 | baseURL: configuration.baseURL,
[17/17] Compiling YTLiveStreaming YouTubeLiveClient.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:53:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
51 | tokenProvider: any TokenProvider,
52 | configuration: Configuration = Configuration(),
53 | transport: any HTTPTransport = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 | ) {
55 | self.tokenProvider = tokenProvider
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:284:73: error: cannot find type 'URLRequest' in scope
282 | }
283 |
284 | private func request(_ endpoint: Endpoint, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
285 | try endpoint.urlRequest(
286 | baseURL: configuration.baseURL,
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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:beceeede496da67681f4fa220a6b97cc098a0178841a413735f598dc6bbaf4c8
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling YTLiveStreaming YouTubeLiveClient+Purge.swift
[3/16] Compiling YTLiveStreaming JSONCoding.swift
[4/16] Compiling YTLiveStreaming YouTubeLiveClient+Chat.swift
[5/16] Compiling YTLiveStreaming YouTubeLiveClient.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:53:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
51 | tokenProvider: any TokenProvider,
52 | configuration: Configuration = Configuration(),
53 | transport: any HTTPTransport = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 | ) {
55 | self.tokenProvider = tokenProvider
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:284:73: error: cannot find type 'URLRequest' in scope
282 | }
283 |
284 | private func request(_ endpoint: Endpoint, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
285 | try endpoint.urlRequest(
286 | baseURL: configuration.baseURL,
[6/16] Compiling YTLiveStreaming YouTubeLiveError.swift
[7/16] Compiling YTLiveStreaming Cuepoint.swift
[8/16] Compiling YTLiveStreaming TokenProvider.swift
[9/16] Compiling YTLiveStreaming BroadcastMonitor.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/16] Compiling YTLiveStreaming LiveChat.swift
[11/16] Compiling YTLiveStreaming LiveStream.swift
[12/16] Compiling YTLiveStreaming Enums.swift
[13/16] Compiling YTLiveStreaming LiveBroadcast.swift
[14/16] Emitting module YTLiveStreaming
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:53:51: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
51 | tokenProvider: any TokenProvider,
52 | configuration: Configuration = Configuration(),
53 | transport: any HTTPTransport = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
54 | ) {
55 | self.tokenProvider = tokenProvider
/host/spi-builder-workspace/Sources/YTLiveStreaming/YouTubeLiveClient.swift:284:73: error: cannot find type 'URLRequest' in scope
282 | }
283 |
284 | private func request(_ endpoint: Endpoint, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
285 | try endpoint.urlRequest(
286 | baseURL: configuration.baseURL,
[15/16] Compiling YTLiveStreaming Endpoint.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:34:23: error: cannot find 'URLRequest' in scope
32 | guard let url = components.url else { throw YouTubeLiveError.invalidResponse }
33 |
34 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue
36 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:14:33: error: cannot find type 'URLRequest' in scope
12 |
13 | extension URLSession: HTTPTransport {
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
15 | let body: Data
16 | let response: URLResponse
[16/16] Compiling YTLiveStreaming HTTPTransport.swift
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:22:104: error: cannot find type 'URLRequest' in scope
20 |
21 | /// Builds the request. `parts` are appended as the `part` query item, `apiKey` as `key`.
22 | func urlRequest(baseURL: URL, apiKey: String?, bundleIdentifier: String?, token: String) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
23 | let base = baseURLOverride ?? baseURL
24 | guard var components = URLComponents(url: base.appendingPathComponent(path), resolvingAgainstBaseURL: false) else {
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/Endpoint.swift:34:23: error: cannot find 'URLRequest' in scope
32 | guard let url = components.url else { throw YouTubeLiveError.invalidResponse }
33 |
34 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
35 | request.httpMethod = method.rawValue
36 | request.setValue("Bearer \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:26: error: cannot find type 'URLRequest' in scope
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: cannot find type 'URLRequest' in scope
11 | }
12 |
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:10:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | /// `URLSession` conforms out of the box; tests inject a recording mock.
9 | public protocol HTTPTransport: Sendable {
10 | func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | }
12 |
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/YTLiveStreaming/Networking/HTTPTransport.swift:13:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
11 | }
12 |
13 | extension URLSession: HTTPTransport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
15 | let body: Data
/host/spi-builder-workspace/Sources/YTLiveStreaming/Networking/HTTPTransport.swift:14:33: error: cannot find type 'URLRequest' in scope
12 |
13 | extension URLSession: HTTPTransport {
14 | public func send(_ request: URLRequest) async throws -> (Data, HTTPURLResponse) {
| `- error: cannot find type 'URLRequest' in scope
15 | let body: Data
16 | let response: URLResponse
BUILD FAILURE 6.1 wasm