The Swift Package Index logo.Swift Package Index

Build Information

Failed to build audd-swift, reference main (842850), with Swift 6.1 for Wasm on 10 Oct 2026 00:28:14 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AudDMusic/audd-swift.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/AudDMusic/audd-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8428504 Release v1.5.20
Cloned https://github.com/AudDMusic/audd-swift.git
Revision (git rev-parse @):
842850425c33cfcb792f1ca226bb49202b16541c
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/AudDMusic/audd-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/AudDMusic/audd-swift.git
https://github.com/AudDMusic/audd-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-docc-plugin
[1/2345] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.51s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (1.43s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3835] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.56s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.83s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/19] Emitting module AudD
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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
[6/20] Compiling AudD Streams.swift
[7/20] Compiling AudD UserAgent.swift
[8/20] Compiling AudD Advanced.swift
[9/20] Compiling AudD AnyCodable.swift
[10/20] Compiling AudD AudD.swift
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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
[11/20] Compiling AudD CustomCatalog.swift
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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
[12/20] Compiling AudD MD5.swift
[13/20] Compiling AudD Models.swift
[14/20] Compiling AudD RetryPolicy.swift
[15/20] Compiling AudD Source.swift
[16/20] Compiling AudD Logger.swift
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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/AudD/LongpollConsumer.swift:54:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |             self.ownsSession = false
 53 |         } else {
 54 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:57:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
 57 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |             self.ownsSession = true
 59 |         }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:84:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 82 |     public func close() {
 83 |         if ownsSession {
 84 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:97:19: error: cannot find 'URLRequest' in scope
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
 96 |     let url = components.url ?? endpoint
 97 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 98 |     request.httpMethod = "GET"
 99 |     request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:102:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
100 |
101 |     return try await withCheckedThrowingContinuation { continuation in
102 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
103 |             if let error {
104 |                 continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:111:93: error: argument type '_' expected to be an instance of a class or class-constrained type
109 |                 return
110 |             }
111 |             continuation.resume(returning: HTTPResponseEnvelope.parse(data: data, response: response))
    |                                                                                             `- error: argument type '_' expected to be an instance of a class or class-constrained type
112 |         }
113 |         task.resume()
[17/20] Compiling AudD LongpollConsumer.swift
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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/AudD/LongpollConsumer.swift:54:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |             self.ownsSession = false
 53 |         } else {
 54 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:57:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
 57 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |             self.ownsSession = true
 59 |         }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:84:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 82 |     public func close() {
 83 |         if ownsSession {
 84 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:97:19: error: cannot find 'URLRequest' in scope
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
 96 |     let url = components.url ?? endpoint
 97 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 98 |     request.httpMethod = "GET"
 99 |     request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:102:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
100 |
101 |     return try await withCheckedThrowingContinuation { continuation in
102 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
103 |             if let error {
104 |                 continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:111:93: error: argument type '_' expected to be an instance of a class or class-constrained type
109 |                 return
110 |             }
111 |             continuation.resume(returning: HTTPResponseEnvelope.parse(data: data, response: response))
    |                                                                                             `- error: argument type '_' expected to be an instance of a class or class-constrained type
112 |         }
113 |         task.resume()
[18/20] Compiling AudD Errors.swift
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/HTTPClient.swift:35:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:35:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
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/AudD/HTTPClient.swift:36:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:39:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
 39 |         if let headers = httpResponse?.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 40 |             for (k, v) in headers {
 41 |                 if let key = k as? String, key.lowercased() == "x-request-id" {
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:71:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 69 |             self.ownsSession = false
 70 |         } else {
 71 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:74:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
 74 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 75 |             self.ownsSession = true
 76 |         }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:95:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 93 |     func close() {
 94 |         if ownsSession {
 95 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 96 |         }
 97 |     }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         let body = makeMultipartBody(fields: fields, filePart: prepared.filePart, boundary: boundary)
111 |
112 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "POST"
114 |         request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:129:23: error: cannot find 'URLRequest' in scope
127 |         let body = urlEncodedBody(fields: allFields)
128 |
129 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
130 |         request.httpMethod = "POST"
131 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:150:23: error: cannot find 'URLRequest' in scope
148 |         let finalURL = components.url ?? url
149 |
150 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
151 |         request.httpMethod = "GET"
152 |         request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:163:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
161 |         // Bridge to a continuation manually for portability.
162 |         return try await withCheckedThrowingContinuation { continuation in
163 |             let task = session.dataTask(with: request) { data, response, error in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
164 |                 if let error {
165 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:172:55: error: value of type '_' expected to be instance of class or class-constrained type
170 |                     return
171 |                 }
172 |                 continuation.resume(returning: (data, response))
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
173 |             }
174 |             task.resume()
[19/20] Compiling AudD HTTPClient.swift
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/HTTPClient.swift:35:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:35:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
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/AudD/HTTPClient.swift:36:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:39:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
 39 |         if let headers = httpResponse?.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 40 |             for (k, v) in headers {
 41 |                 if let key = k as? String, key.lowercased() == "x-request-id" {
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:71:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 69 |             self.ownsSession = false
 70 |         } else {
 71 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:74:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
 74 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 75 |             self.ownsSession = true
 76 |         }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:95:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 93 |     func close() {
 94 |         if ownsSession {
 95 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 96 |         }
 97 |     }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         let body = makeMultipartBody(fields: fields, filePart: prepared.filePart, boundary: boundary)
111 |
112 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "POST"
114 |         request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:129:23: error: cannot find 'URLRequest' in scope
127 |         let body = urlEncodedBody(fields: allFields)
128 |
129 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
130 |         request.httpMethod = "POST"
131 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:150:23: error: cannot find 'URLRequest' in scope
148 |         let finalURL = components.url ?? url
149 |
150 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
151 |         request.httpMethod = "GET"
152 |         request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:163:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
161 |         // Bridge to a continuation manually for portability.
162 |         return try await withCheckedThrowingContinuation { continuation in
163 |             let task = session.dataTask(with: request) { data, response, error in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
164 |                 if let error {
165 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:172:55: error: value of type '_' expected to be instance of class or class-constrained type
170 |                     return
171 |                 }
172 |                 continuation.resume(returning: (data, response))
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
173 |             }
174 |             task.resume()
[20/20] Compiling AudD Version.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling AudD Streams.swift
[5/18] Compiling AudD UserAgent.swift
[6/19] Compiling AudD Version.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/19] Compiling AudD RetryPolicy.swift
[8/19] Compiling AudD Source.swift
[9/19] Compiling AudD MD5.swift
[10/19] Compiling AudD Models.swift
[11/19] Emitting module AudD
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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
[12/19] Compiling AudD Advanced.swift
[13/19] Compiling AudD AnyCodable.swift
[14/19] Compiling AudD Errors.swift
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/HTTPClient.swift:35:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:35:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
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/AudD/HTTPClient.swift:36:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:39:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
 39 |         if let headers = httpResponse?.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 40 |             for (k, v) in headers {
 41 |                 if let key = k as? String, key.lowercased() == "x-request-id" {
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:71:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 69 |             self.ownsSession = false
 70 |         } else {
 71 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:74:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
 74 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 75 |             self.ownsSession = true
 76 |         }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:95:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 93 |     func close() {
 94 |         if ownsSession {
 95 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 96 |         }
 97 |     }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         let body = makeMultipartBody(fields: fields, filePart: prepared.filePart, boundary: boundary)
111 |
112 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "POST"
114 |         request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:129:23: error: cannot find 'URLRequest' in scope
127 |         let body = urlEncodedBody(fields: allFields)
128 |
129 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
130 |         request.httpMethod = "POST"
131 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:150:23: error: cannot find 'URLRequest' in scope
148 |         let finalURL = components.url ?? url
149 |
150 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
151 |         request.httpMethod = "GET"
152 |         request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:163:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
161 |         // Bridge to a continuation manually for portability.
162 |         return try await withCheckedThrowingContinuation { continuation in
163 |             let task = session.dataTask(with: request) { data, response, error in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
164 |                 if let error {
165 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:172:55: error: value of type '_' expected to be instance of class or class-constrained type
170 |                     return
171 |                 }
172 |                 continuation.resume(returning: (data, response))
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
173 |             }
174 |             task.resume()
[15/19] Compiling AudD HTTPClient.swift
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:34:45: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     let rawText: String
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
    |                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
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/AudD/HTTPClient.swift:60:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 58 |     private var _apiToken: String
 59 |     private let tokenLock = NSLock()
 60 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 61 |     private let timeouts: HTTPRequestTimeouts
 62 |     private let ownsSession: Bool
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/AudD/HTTPClient.swift:64:83: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |     private let ownsSession: Bool
 63 |
 64 |     init(apiToken: String, timeouts: HTTPRequestTimeouts = .standard, urlSession: URLSession? = nil) {
    |                                                                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |         self._apiToken = apiToken
 66 |         self.timeouts = timeouts
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/AudD/HTTPClient.swift:159:36: error: cannot find type 'URLRequest' in scope
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                    `- error: cannot find type 'URLRequest' in scope
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:159:71: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     private func dataTask(request: URLRequest) async throws -> (Data, URLResponse) {
    |                                                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |         // Linux Foundation through Swift 5.10 lacks the throwing async URLSession.data(for:).
161 |         // Bridge to a continuation manually for portability.
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/AudD/HTTPClient.swift:35:37: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                     `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:35:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |         let status = httpResponse?.statusCode ?? 0
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
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/AudD/HTTPClient.swift:36:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 34 |     static func parse(data: Data, response: URLResponse) -> HTTPResponseEnvelope {
 35 |         let httpResponse = response as? HTTPURLResponse
 36 |         let status = httpResponse?.statusCode ?? 0
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:39:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 37 |         let raw = String(data: data, encoding: .utf8) ?? ""
 38 |         var requestID: String?
 39 |         if let headers = httpResponse?.allHeaderFields {
    |                                        `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
 40 |             for (k, v) in headers {
 41 |                 if let key = k as? String, key.lowercased() == "x-request-id" {
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:71:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 69 |             self.ownsSession = false
 70 |         } else {
 71 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:74:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 72 |             config.timeoutIntervalForRequest = timeouts.connect
 73 |             config.timeoutIntervalForResource = timeouts.resource
 74 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 75 |             self.ownsSession = true
 76 |         }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:95:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 93 |     func close() {
 94 |         if ownsSession {
 95 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 96 |         }
 97 |     }
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         let body = makeMultipartBody(fields: fields, filePart: prepared.filePart, boundary: boundary)
111 |
112 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "POST"
114 |         request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:129:23: error: cannot find 'URLRequest' in scope
127 |         let body = urlEncodedBody(fields: allFields)
128 |
129 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
130 |         request.httpMethod = "POST"
131 |         request.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:150:23: error: cannot find 'URLRequest' in scope
148 |         let finalURL = components.url ?? url
149 |
150 |         var request = URLRequest(url: finalURL)
    |                       `- error: cannot find 'URLRequest' in scope
151 |         request.httpMethod = "GET"
152 |         request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:163:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
161 |         // Bridge to a continuation manually for portability.
162 |         return try await withCheckedThrowingContinuation { continuation in
163 |             let task = session.dataTask(with: request) { data, response, error in
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
164 |                 if let error {
165 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/HTTPClient.swift:172:55: error: value of type '_' expected to be instance of class or class-constrained type
170 |                     return
171 |                 }
172 |                 continuation.resume(returning: (data, response))
    |                                                       `- error: value of type '_' expected to be instance of class or class-constrained type
173 |             }
174 |             task.resume()
[16/19] Compiling AudD Logger.swift
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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/AudD/LongpollConsumer.swift:54:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |             self.ownsSession = false
 53 |         } else {
 54 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:57:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
 57 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |             self.ownsSession = true
 59 |         }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:84:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 82 |     public func close() {
 83 |         if ownsSession {
 84 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:97:19: error: cannot find 'URLRequest' in scope
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
 96 |     let url = components.url ?? endpoint
 97 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 98 |     request.httpMethod = "GET"
 99 |     request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:102:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
100 |
101 |     return try await withCheckedThrowingContinuation { continuation in
102 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
103 |             if let error {
104 |                 continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:111:93: error: argument type '_' expected to be an instance of a class or class-constrained type
109 |                 return
110 |             }
111 |             continuation.resume(returning: HTTPResponseEnvelope.parse(data: data, response: response))
    |                                                                                             `- error: argument type '_' expected to be an instance of a class or class-constrained type
112 |         }
113 |         task.resume()
[17/19] Compiling AudD LongpollConsumer.swift
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:36:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 34 |
 35 |     private let category: String
 36 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 |     private let ownsSession: Bool
 38 |     private let policy: RetryPolicy
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/AudD/LongpollConsumer.swift:43:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |     public init(
 42 |         category: String,
 43 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |         maxRetries: Int = 3,
 45 |         backoffFactor: Double = 0.5,
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/AudD/LongpollConsumer.swift:93:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 | }
 92 |
 93 | private func fetchLongpoll(session: URLSession, endpoint: URL, params: [String: String]) async throws -> HTTPResponseEnvelope {
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     var components = URLComponents(url: endpoint, resolvingAgainstBaseURL: false)!
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
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/AudD/LongpollConsumer.swift:54:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 52 |             self.ownsSession = false
 53 |         } else {
 54 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:57:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |             config.timeoutIntervalForRequest = HTTPRequestTimeouts.longpoll.connect
 56 |             config.timeoutIntervalForResource = HTTPRequestTimeouts.longpoll.resource
 57 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |             self.ownsSession = true
 59 |         }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:72:60: warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 70 |         let fetch: @Sendable (_ params: [String: String]) async throws -> HTTPResponseEnvelope = { params in
 71 |             return try await withRetry(policy: policy) {
 72 |                 let env = try await fetchLongpoll(session: session, endpoint: endpoint, params: params)
    |                                                            `- warning: capture of 'session' with non-sendable type 'URLSession' (aka 'AnyObject') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 73 |                 if shouldRetryStatus(env.httpStatus, retryClass: policy.retryClass) {
 74 |                     return RetryableResponse<HTTPResponseEnvelope>.retryable(status: env.httpStatus, rawText: env.rawText, requestID: env.requestID)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:84:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 82 |     public func close() {
 83 |         if ownsSession {
 84 |             session.finishTasksAndInvalidate()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
 85 |         }
 86 |     }
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:97:19: error: cannot find 'URLRequest' in scope
 95 |     components.queryItems = params.map { URLQueryItem(name: $0.key, value: $0.value) }
 96 |     let url = components.url ?? endpoint
 97 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 98 |     request.httpMethod = "GET"
 99 |     request.setValue(UserAgent.string(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:102:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
100 |
101 |     return try await withCheckedThrowingContinuation { continuation in
102 |         let task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
103 |             if let error {
104 |                 continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/AudD/LongpollConsumer.swift:111:93: error: argument type '_' expected to be an instance of a class or class-constrained type
109 |                 return
110 |             }
111 |             continuation.resume(returning: HTTPResponseEnvelope.parse(data: data, response: response))
    |                                                                                             `- error: argument type '_' expected to be an instance of a class or class-constrained type
112 |         }
113 |         task.resume()
[18/19] Compiling AudD AudD.swift
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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
[19/19] Compiling AudD CustomCatalog.swift
/host/spi-builder-workspace/Sources/AudD/AudD.swift:134:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
132 |         maxRetries: Int = 3,
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
135 |         enterpriseURLSession: URLSession? = nil,
136 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:135:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |         backoffFactor: Double = 0.5,
134 |         urlSession: URLSession? = nil,
135 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |         apiBase: URL = AudD.apiBase,
137 |         enterpriseBase: URL = AudD.enterpriseBase,
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/AudD/AudD.swift:172:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |         maxRetries: Int = 3,
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |         enterpriseURLSession: URLSession? = nil,
174 |         apiBase: URL = AudD.apiBase,
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/AudD/AudD.swift:173:31: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |         backoffFactor: Double = 0.5,
172 |         urlSession: URLSession? = nil,
173 |         enterpriseURLSession: URLSession? = nil,
    |                               `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiBase: URL = AudD.apiBase,
175 |         enterpriseBase: URL = AudD.enterpriseBase,
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
BUILD FAILURE 6.1 wasm