Build Information
Failed to build transmission-rpc, reference master (39d8fc), with Swift 6.1 for Android on 29 Jun 2026 14:43:17 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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mogeko/transmission-rpc.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/mogeko/transmission-rpc
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 39d8fcd Merge pull request #2 from mogeko/dev
Cloned https://github.com/mogeko/transmission-rpc.git
Revision (git rev-parse @):
39d8fcd41d41e709c69e85b59899a4d43e079c16
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/mogeko/transmission-rpc.git at master
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/mogeko/transmission-rpc.git
https://github.com/mogeko/transmission-rpc.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:365d9b14669f92fea0572234887def10439445c91d7e524c78a6579ad7294f11
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling TransmissionRPC TorrentLocation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/14] Compiling TransmissionRPC TorrentAdd.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/14] Compiling TransmissionRPC TorrentAction.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/14] Compiling TransmissionRPC TorrentGet.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/14] Compiling TransmissionRPC CommonTypes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/14] Compiling TransmissionRPC MiscMethods.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/14] Compiling TransmissionRPC RPCEnvelope.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/14] Compiling TransmissionRPC Session.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/14] Emitting module TransmissionRPC
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
[12/14] Compiling TransmissionRPC Client.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:70:22: error: cannot find 'URLRequest' in scope
68 | ) async throws -> Args {
69 | let url = baseURL.appendingPathComponent("transmission/rpc")
70 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
71 | urlRequest.httpMethod = "POST"
72 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
85 |
86 | // Perform the HTTP request
87 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
88 |
89 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:106:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 | // Retry with the new session ID
105 | urlRequest.setValue(newSessionId, forHTTPHeaderField: "X-Transmission-Session-Id")
106 | let (retryData, retryResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
107 |
108 | guard let retryHttpResponse = retryResponse as? HTTPURLResponse else {
[13/14] Compiling TransmissionRPC Client+Convenience.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:70:22: error: cannot find 'URLRequest' in scope
68 | ) async throws -> Args {
69 | let url = baseURL.appendingPathComponent("transmission/rpc")
70 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
71 | urlRequest.httpMethod = "POST"
72 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
85 |
86 | // Perform the HTTP request
87 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
88 |
89 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:106:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 | // Retry with the new session ID
105 | urlRequest.setValue(newSessionId, forHTTPHeaderField: "X-Transmission-Session-Id")
106 | let (retryData, retryResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
107 |
108 | guard let retryHttpResponse = retryResponse as? HTTPURLResponse else {
[14/14] Compiling TransmissionRPC TorrentSet.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:365d9b14669f92fea0572234887def10439445c91d7e524c78a6579ad7294f11
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling TransmissionRPC TorrentLocation.swift
[3/13] Compiling TransmissionRPC TorrentSet.swift
[4/13] Compiling TransmissionRPC TorrentAdd.swift
[5/13] Compiling TransmissionRPC TorrentGet.swift
[6/13] Compiling TransmissionRPC TorrentAction.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/13] Compiling TransmissionRPC RPCEnvelope.swift
[8/13] Compiling TransmissionRPC Session.swift
[9/13] Compiling TransmissionRPC CommonTypes.swift
[10/13] Compiling TransmissionRPC MiscMethods.swift
[11/13] Emitting module TransmissionRPC
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
[12/13] Compiling TransmissionRPC Client.swift
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:70:22: error: cannot find 'URLRequest' in scope
68 | ) async throws -> Args {
69 | let url = baseURL.appendingPathComponent("transmission/rpc")
70 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
71 | urlRequest.httpMethod = "POST"
72 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
85 |
86 | // Perform the HTTP request
87 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
88 |
89 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:106:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 | // Retry with the new session ID
105 | urlRequest.setValue(newSessionId, forHTTPHeaderField: "X-Transmission-Session-Id")
106 | let (retryData, retryResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
107 |
108 | guard let retryHttpResponse = retryResponse as? HTTPURLResponse else {
[13/13] Compiling TransmissionRPC Client+Convenience.swift
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:24:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | /// The `URLSession` used for HTTP requests.
24 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 | /// The JSON encoder used for request serialization.
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/TransmissionRPC/Client.swift:46:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | self.baseURL = baseURL
48 | 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/TransmissionRPC/Client.swift:46:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
44 | /// - baseURL: The base URL of the Transmission web interface.
45 | /// - session: The `URLSession` to use. Defaults to `.shared`.
46 | public init(baseURL: URL, session: URLSession = .shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
47 | self.baseURL = baseURL
48 | self.session = session
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:70:22: error: cannot find 'URLRequest' in scope
68 | ) async throws -> Args {
69 | let url = baseURL.appendingPathComponent("transmission/rpc")
70 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
71 | urlRequest.httpMethod = "POST"
72 | urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:87:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
85 |
86 | // Perform the HTTP request
87 | let (data, response) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
88 |
89 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/TransmissionRPC/Client.swift:106:58: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
104 | // Retry with the new session ID
105 | urlRequest.setValue(newSessionId, forHTTPHeaderField: "X-Transmission-Session-Id")
106 | let (retryData, retryResponse) = try await session.data(for: urlRequest)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
107 |
108 | guard let retryHttpResponse = retryResponse as? HTTPURLResponse else {
BUILD FAILURE 6.1 android