The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ASNetworkKit, reference main (a0cc29), with Swift 6.2 for Android on 26 Aug 2025 18:52:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/arindam94/ASNetworkKit.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/arindam94/ASNetworkKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a0cc299 Update README.md
Cloned https://github.com/arindam94/ASNetworkKit.git
Revision (git rev-parse @):
a0cc2996ac82377617477abe460890b13685e89b
SUCCESS checkout https://github.com/arindam94/ASNetworkKit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/arindam94/ASNetworkKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/9] Compiling ASNetworkKit URLRequestBuilder.swift
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:17:17: error: cannot find type 'URLRequest' in scope
15 |         urlEncoding: URLEncoding,
16 |         headers: HTTPHeaders
17 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
18 |         let url = try url.asURL()
19 |         var req: URLRequest
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:49:17: error: cannot find type 'URLRequest' in scope
47 |         jsonEncoding: JSONEncoding,
48 |         headers: HTTPHeaders
49 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
50 |         let url = try url.asURL()
51 |         var req = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:19:18: error: cannot find type 'URLRequest' in scope
17 |     ) throws -> URLRequest {
18 |         let url = try url.asURL()
19 |         var req: URLRequest
   |                  `- error: cannot find type 'URLRequest' in scope
20 |         switch urlEncoding.destination {
21 |         case .methodDependent:
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:24:23: error: cannot find 'URLRequest' in scope
22 |             if method == .get || method == .head || method == .delete {
23 |                 let composed = try appendQuery(to: url, parameters: parameters)
24 |                 req = URLRequest(url: composed)
   |                       `- error: cannot find 'URLRequest' in scope
25 |             } else {
26 |                 req = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:26:23: error: cannot find 'URLRequest' in scope
24 |                 req = URLRequest(url: composed)
25 |             } else {
26 |                 req = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
27 |                 if let parameters { req.httpBody = query(parameters).data(using: .utf8) }
28 |                 req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:32:19: error: cannot find 'URLRequest' in scope
30 |         case .queryString:
31 |             let composed = try appendQuery(to: url, parameters: parameters)
32 |             req = URLRequest(url: composed)
   |                   `- error: cannot find 'URLRequest' in scope
33 |         case .httpBody:
34 |             req = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:34:19: error: cannot find 'URLRequest' in scope
32 |             req = URLRequest(url: composed)
33 |         case .httpBody:
34 |             req = URLRequest(url: url)
   |                   `- error: cannot find 'URLRequest' in scope
35 |             if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
36 |             req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:82: error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
33 |         case .httpBody:
34 |             req = URLRequest(url: url)
35 |             if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
   |                                                                                  `- error: referencing operator function '-' on 'SIMD' requires that 'String.Encoding' conform to 'SIMD'
36 |             req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 |         }
Swift.SIMD:1:11: note: where 'Self' = 'String.Encoding'
 1 | extension SIMD where Self.Scalar : FloatingPoint {
   |           `- note: where 'Self' = 'String.Encoding'
 2 |     prefix public static func - (a: Self) -> Self
 3 |     public static func + (a: Self.Scalar, b: Self) -> Self
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:35:83: error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
33 |         case .httpBody:
34 |             req = URLRequest(url: url)
35 |             if let parameters { req.httpBody = query(parameters).data(using: .utf-8) }
   |                                                                                   `- error: cannot convert value of type 'Int' to expected argument type 'String.Encoding'
36 |             req.setValue("application/x-www-form-urlencoded; charset=utf-8", forHTTPHeaderField: "Content-Type")
37 |         }
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:51:19: error: cannot find 'URLRequest' in scope
49 |     ) throws -> URLRequest {
50 |         let url = try url.asURL()
51 |         var req = URLRequest(url: url)
   |                   `- error: cannot find 'URLRequest' in scope
52 |         req.httpMethod = method.rawValue
53 |         if let parameters {
[4/9] Compiling ASNetworkKit RequestAdapters.swift
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:13:56: error: cannot find type 'URLRequest' in scope
11 |     private let tokenProvider: () -> String?
12 |     public init(tokenProvider: @escaping () -> String?) { self.tokenProvider = tokenProvider }
13 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
14 |         var req = request
15 |         if let token = tokenProvider() {
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:13:34: error: cannot find type 'URLRequest' in scope
11 |     private let tokenProvider: () -> String?
12 |     public init(tokenProvider: @escaping () -> String?) { self.tokenProvider = tokenProvider }
13 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
14 |         var req = request
15 |         if let token = tokenProvider() {
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:49: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                                                 `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:27: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                           `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:25:56: error: cannot find type 'URLRequest' in scope
23 |     private let headers: HTTPHeaders
24 |     public init(_ headers: HTTPHeaders) { self.headers = headers }
25 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
26 |         var req = request
27 |         for (k, v) in headers.storage { req.setValue(v, forHTTPHeaderField: k) }
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:25:34: error: cannot find type 'URLRequest' in scope
23 |     private let headers: HTTPHeaders
24 |     public init(_ headers: HTTPHeaders) { self.headers = headers }
25 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
26 |         var req = request
27 |         for (k, v) in headers.storage { req.setValue(v, forHTTPHeaderField: k) }
[5/9] Compiling ASNetworkKit MultipartFormData.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Emitting module ASNetworkKit
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:49: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                                                 `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:27: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                           `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:70:27: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public protocol RequestRetrier {
 70 |     func retry(_ request: URLRequest, dueTo error: Error, attempt: Int) async -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
 71 | }
 72 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:79:34: error: cannot find type 'URLRequest' in scope
 77 |         self.maxRetries = maxRetries; self.baseDelay = baseDelay
 78 |     }
 79 |     public func retry(_ request: URLRequest, dueTo error: Error, attempt: Int) async -> Bool {
    |                                  `- error: cannot find type 'URLRequest' in scope
 80 |         guard attempt < maxRetries else { return false }
 81 |         let delay = pow(2.0, Double(attempt)) * baseDelay
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:103:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
102 |
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:98:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 | public final class Session {
 97 |     public static let `default` = Session()
 98 |     public let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |     public let session: URLSession
100 |     public var adapters: [RequestAdapter] = []
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:99:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     public static let `default` = Session()
 98 |     public let configuration: URLSessionConfiguration
 99 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |     public var adapters: [RequestAdapter] = []
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
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/ASNetworkKit/ASNetworkKit.swift:103:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
102 |
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:183:65: error: cannot find type 'URLRequest' in scope
181 |     }
182 |
183 |     private func applyAdapters(_ request: URLRequest) throws -> URLRequest {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
184 |         var req = request
185 |         for adapter in adapters {
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:183:43: error: cannot find type 'URLRequest' in scope
181 |     }
182 |
183 |     private func applyAdapters(_ request: URLRequest) throws -> URLRequest {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 |         var req = request
185 |         for adapter in adapters {
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 | public final class DataRequest {
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private(set) var request: URLRequest?
 13 |     private let retrier: RequestRetrier?
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/ASNetworkKit/DataRequest.swift:12:31: error: cannot find type 'URLRequest' in scope
 10 | public final class DataRequest {
 11 |     private let session: URLSession
 12 |     private(set) var request: URLRequest?
    |                               `- error: cannot find type 'URLRequest' in scope
 13 |     private let retrier: RequestRetrier?
 14 |     private var validation: Validation = Validation()
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let retrier: RequestRetrier?
 14 |     private var validation: Validation = Validation()
 15 |     private var task: URLSessionDataTask?
    |                       `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var attempt = 0
 17 |     private var storedError: Error?
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:19:40: error: cannot find type 'URLRequest' in scope
 17 |     private var storedError: Error?
 18 |
 19 |     init(session: URLSession, request: URLRequest?, error: Error? = nil, retrier: RequestRetrier?) {
    |                                        `- error: cannot find type 'URLRequest' in scope
 20 |         self.session = session
 21 |         self.request = request
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:19:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private var storedError: Error?
 18 |
 19 |     init(session: URLSession, request: URLRequest?, error: Error? = nil, retrier: RequestRetrier?) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         self.session = session
 21 |         self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:85:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |     // MARK: - Async/Await Serializers
 84 |
 85 |     public func serializingData() async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         return try await withCheckedThrowingContinuation { cont in
 87 |             self.responseData { cont.resume(with: $0.map { ($0, HTTPURLResponse()) }) }
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/ASNetworkKit/DataRequest.swift:91:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     }
 90 |
 91 |     public var _response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |
 93 |     public var resumeData: Data? { nil }
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/ASNetworkKit/DataRequest.swift:95:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     public var resumeData: Data? { nil }
 94 |
 95 |     public struct Payload { public let data: Data; public let response: HTTPURLResponse }
    |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     public func serializingString(encoding: String.Encoding = .utf8) async throws -> String {
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/ASNetworkKit/DownloadRequest.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public final class DownloadRequest {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     private let url: URL
13 |     private let destination: URL
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/ASNetworkKit/DownloadRequest.swift:14:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     private let url: URL
13 |     private let destination: URL
14 |     private var task: URLSessionDownloadTask?
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     private var storedError: Error?
16 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:17:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     private var storedError: Error?
16 |
17 |     init(session: URLSession, url: URL, destination: URL, error: Error? = nil) {
   |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.session = session; self.url = url; self.destination = destination; self.storedError = error
19 |     }
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/ASNetworkKit/RequestAdapters.swift:13:56: error: cannot find type 'URLRequest' in scope
11 |     private let tokenProvider: () -> String?
12 |     public init(tokenProvider: @escaping () -> String?) { self.tokenProvider = tokenProvider }
13 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
14 |         var req = request
15 |         if let token = tokenProvider() {
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:13:34: error: cannot find type 'URLRequest' in scope
11 |     private let tokenProvider: () -> String?
12 |     public init(tokenProvider: @escaping () -> String?) { self.tokenProvider = tokenProvider }
13 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
14 |         var req = request
15 |         if let token = tokenProvider() {
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:25:56: error: cannot find type 'URLRequest' in scope
23 |     private let headers: HTTPHeaders
24 |     public init(_ headers: HTTPHeaders) { self.headers = headers }
25 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                                        `- error: cannot find type 'URLRequest' in scope
26 |         var req = request
27 |         for (k, v) in headers.storage { req.setValue(v, forHTTPHeaderField: k) }
/host/spi-builder-workspace/Sources/ASNetworkKit/RequestAdapters.swift:25:34: error: cannot find type 'URLRequest' in scope
23 |     private let headers: HTTPHeaders
24 |     public init(_ headers: HTTPHeaders) { self.headers = headers }
25 |     public func adapt(_ request: URLRequest) throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
26 |         var req = request
27 |         for (k, v) in headers.storage { req.setValue(v, forHTTPHeaderField: k) }
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:17:17: error: cannot find type 'URLRequest' in scope
15 |         urlEncoding: URLEncoding,
16 |         headers: HTTPHeaders
17 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
18 |         let url = try url.asURL()
19 |         var req: URLRequest
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:49:17: error: cannot find type 'URLRequest' in scope
47 |         jsonEncoding: JSONEncoding,
48 |         headers: HTTPHeaders
49 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
50 |         let url = try url.asURL()
51 |         var req = URLRequest(url: url)
[7/9] Compiling ASNetworkKit ASNetworkKit.swift
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:49: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                                                 `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:66:27: error: cannot find type 'URLRequest' in scope
 64 |
 65 | public protocol RequestAdapter {
 66 |     func adapt(_ request: URLRequest) throws -> URLRequest
    |                           `- error: cannot find type 'URLRequest' in scope
 67 | }
 68 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:70:27: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public protocol RequestRetrier {
 70 |     func retry(_ request: URLRequest, dueTo error: Error, attempt: Int) async -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
 71 | }
 72 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:79:34: error: cannot find type 'URLRequest' in scope
 77 |         self.maxRetries = maxRetries; self.baseDelay = baseDelay
 78 |     }
 79 |     public func retry(_ request: URLRequest, dueTo error: Error, attempt: Int) async -> Bool {
    |                                  `- error: cannot find type 'URLRequest' in scope
 80 |         guard attempt < maxRetries else { return false }
 81 |         let delay = pow(2.0, Double(attempt)) * baseDelay
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:103:59: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
102 |
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
    |                                                           `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:98:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 | public final class Session {
 97 |     public static let `default` = Session()
 98 |     public let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 99 |     public let session: URLSession
100 |     public var adapters: [RequestAdapter] = []
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:99:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |     public static let `default` = Session()
 98 |     public let configuration: URLSessionConfiguration
 99 |     public let session: URLSession
    |                         `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
100 |     public var adapters: [RequestAdapter] = []
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
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/ASNetworkKit/ASNetworkKit.swift:103:32: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 |     public var retrier: RequestRetrier? = ExponentialBackoffRetrier()
102 |
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
    |                                `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:183:65: error: cannot find type 'URLRequest' in scope
181 |     }
182 |
183 |     private func applyAdapters(_ request: URLRequest) throws -> URLRequest {
    |                                                                 `- error: cannot find type 'URLRequest' in scope
184 |         var req = request
185 |         for adapter in adapters {
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:183:43: error: cannot find type 'URLRequest' in scope
181 |     }
182 |
183 |     private func applyAdapters(_ request: URLRequest) throws -> URLRequest {
    |                                           `- error: cannot find type 'URLRequest' in scope
184 |         var req = request
185 |         for adapter in adapters {
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:105:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
    |                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
106 |     }
107 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:105:75: error: 'nil' requires a contextual type
103 |     public init(configuration: URLSessionConfiguration = .default, delegateQueue: OperationQueue? = nil) {
104 |         self.configuration = configuration
105 |         self.session = URLSession(configuration: configuration, delegate: nil, delegateQueue: delegateQueue)
    |                                                                           `- error: 'nil' requires a contextual type
106 |     }
107 |
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:117:18: error: cannot find type 'URLRequest' in scope
115 |         headers: HTTPHeaders = [:]
116 |     ) -> DataRequest {
117 |         var req: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
118 |         do {
119 |             req = try URLRequestBuilder.build(url, method: method, parameters: parameters, urlEncoding: encoding, headers: headers)
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:17:17: error: cannot find type 'URLRequest' in scope
15 |         urlEncoding: URLEncoding,
16 |         headers: HTTPHeaders
17 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
18 |         let url = try url.asURL()
19 |         var req: URLRequest
/host/spi-builder-workspace/Sources/ASNetworkKit/URLRequestBuilder.swift:49:17: error: cannot find type 'URLRequest' in scope
47 |         jsonEncoding: JSONEncoding,
48 |         headers: HTTPHeaders
49 |     ) throws -> URLRequest {
   |                 `- error: cannot find type 'URLRequest' in scope
50 |         let url = try url.asURL()
51 |         var req = URLRequest(url: url)
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:19:40: error: cannot find type 'URLRequest' in scope
 17 |     private var storedError: Error?
 18 |
 19 |     init(session: URLSession, request: URLRequest?, error: Error? = nil, retrier: RequestRetrier?) {
    |                                        `- error: cannot find type 'URLRequest' in scope
 20 |         self.session = session
 21 |         self.request = request
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:122:59: error: 'nil' requires a contextual type
120 |             req = try applyAdapters(req)
121 |         } catch {
122 |             return DataRequest(session: session, request: nil, error: error, retrier: retrier)
    |                                                           `- error: 'nil' requires a contextual type
123 |         }
124 |         return DataRequest(session: session, request: req, retrier: retrier)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:134:18: error: cannot find type 'URLRequest' in scope
132 |         headers: HTTPHeaders = [:]
133 |     ) -> DataRequest {
134 |         var req: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
135 |         do {
136 |             req = try URLRequestBuilder.build(url, method: method, parameters: parameters, jsonEncoding: jsonEncoding, headers: headers)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:139:59: error: 'nil' requires a contextual type
137 |             req = try applyAdapters(req)
138 |         } catch {
139 |             return DataRequest(session: session, request: nil, error: error, retrier: retrier)
    |                                                           `- error: 'nil' requires a contextual type
140 |         }
141 |         return DataRequest(session: session, request: req, retrier: retrier)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:146:18: error: cannot find type 'URLRequest' in scope
144 |     // Upload
145 |     public func upload(_ data: Data, to url: URLConvertible, method: HTTPMethod = .post, headers: HTTPHeaders = [:]) -> DataRequest {
146 |         var req: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
147 |         do {
148 |             req = try URLRequestBuilder.build(url, method: method, parameters: nil, urlEncoding: .default, headers: headers)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:148:80: error: 'nil' requires a contextual type
146 |         var req: URLRequest
147 |         do {
148 |             req = try URLRequestBuilder.build(url, method: method, parameters: nil, urlEncoding: .default, headers: headers)
    |                                                                                `- error: 'nil' requires a contextual type
149 |             req.httpBody = data
150 |             req.setValue(String(data.count), forHTTPHeaderField: "Content-Length")
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:148:99: error: cannot infer contextual base in reference to member 'default'
146 |         var req: URLRequest
147 |         do {
148 |             req = try URLRequestBuilder.build(url, method: method, parameters: nil, urlEncoding: .default, headers: headers)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'default'
149 |             req.httpBody = data
150 |             req.setValue(String(data.count), forHTTPHeaderField: "Content-Length")
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:153:59: error: 'nil' requires a contextual type
151 |             req = try applyAdapters(req)
152 |         } catch {
153 |             return DataRequest(session: session, request: nil, error: error, retrier: retrier)
    |                                                           `- error: 'nil' requires a contextual type
154 |         }
155 |         return DataRequest(session: session, request: req, retrier: retrier)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:159:18: error: cannot find type 'URLRequest' in scope
157 |
158 |     public func upload(multipart: MultipartFormData, to url: URLConvertible, method: HTTPMethod = .post, headers: HTTPHeaders = [:]) -> DataRequest {
159 |         var req: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
160 |         do {
161 |             let boundary = "asnk-\(UUID().uuidString)"
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:164:80: error: 'nil' requires a contextual type
162 |             var mutableHeaders = headers
163 |             mutableHeaders.add(name: "Content-Type", value: "multipart/form-data; boundary=\(boundary)")
164 |             req = try URLRequestBuilder.build(url, method: method, parameters: nil, urlEncoding: .default, headers: mutableHeaders)
    |                                                                                `- error: 'nil' requires a contextual type
165 |             req.httpBody = multipart.encode(boundary: boundary)
166 |             req = try applyAdapters(req)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:164:99: error: cannot infer contextual base in reference to member 'default'
162 |             var mutableHeaders = headers
163 |             mutableHeaders.add(name: "Content-Type", value: "multipart/form-data; boundary=\(boundary)")
164 |             req = try URLRequestBuilder.build(url, method: method, parameters: nil, urlEncoding: .default, headers: mutableHeaders)
    |                                                                                                   `- error: cannot infer contextual base in reference to member 'default'
165 |             req.httpBody = multipart.encode(boundary: boundary)
166 |             req = try applyAdapters(req)
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:168:59: error: 'nil' requires a contextual type
166 |             req = try applyAdapters(req)
167 |         } catch {
168 |             return DataRequest(session: session, request: nil, error: error, retrier: retrier)
    |                                                           `- error: 'nil' requires a contextual type
169 |         }
170 |         return DataRequest(session: session, request: req, retrier: retrier)
[8/9] Compiling ASNetworkKit DownloadRequest.swift
/host/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |
10 | public final class DownloadRequest {
11 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     private let url: URL
13 |     private let destination: URL
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/ASNetworkKit/DownloadRequest.swift:14:23: error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     private let url: URL
13 |     private let destination: URL
14 |     private var task: URLSessionDownloadTask?
   |                       `- error: 'URLSessionDownloadTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     private var storedError: Error?
16 |
Foundation.URLSessionDownloadTask:2:18: note: 'URLSessionDownloadTask' 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 URLSessionDownloadTask = AnyObject
  |                  `- note: 'URLSessionDownloadTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:17:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |     private var storedError: Error?
16 |
17 |     init(session: URLSession, url: URL, destination: URL, error: Error? = nil) {
   |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 |         self.session = session; self.url = url; self.destination = destination; self.storedError = error
19 |     }
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/ASNetworkKit/DownloadRequest.swift:21:34: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
19 |     }
20 |
21 |     public func cancel() { task?.cancel() }
   |                                  `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'cancel'
22 |
23 |     public func response(completion: @escaping (Result<URL, Error>) -> Void) {
/host/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:25:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
23 |     public func response(completion: @escaping (Result<URL, Error>) -> Void) {
24 |         if let storedError { completion(.failure(storedError)); return }
25 |         task = session.downloadTask(with: url) { temp, response, error in
   |                        `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'downloadTask'
26 |             if let error {
27 |                 completion(.failure(NetworkError.underlying(error))); return
/host/spi-builder-workspace/Sources/ASNetworkKit/DownloadRequest.swift:40:15: error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
38 |             }
39 |         }
40 |         task?.resume()
   |               `- error: value of type 'URLSessionDownloadTask' (aka 'AnyObject') has no member 'resume'
41 |     }
42 |
[9/9] Compiling ASNetworkKit DataRequest.swift
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:11:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 |
 10 | public final class DataRequest {
 11 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |     private(set) var request: URLRequest?
 13 |     private let retrier: RequestRetrier?
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/ASNetworkKit/DataRequest.swift:12:31: error: cannot find type 'URLRequest' in scope
 10 | public final class DataRequest {
 11 |     private let session: URLSession
 12 |     private(set) var request: URLRequest?
    |                               `- error: cannot find type 'URLRequest' in scope
 13 |     private let retrier: RequestRetrier?
 14 |     private var validation: Validation = Validation()
/host/spi-builder-workspace/Sources/ASNetworkKit/ASNetworkKit.swift:70:27: error: cannot find type 'URLRequest' in scope
 68 |
 69 | public protocol RequestRetrier {
 70 |     func retry(_ request: URLRequest, dueTo error: Error, attempt: Int) async -> Bool
    |                           `- error: cannot find type 'URLRequest' in scope
 71 | }
 72 |
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |     private let retrier: RequestRetrier?
 14 |     private var validation: Validation = Validation()
 15 |     private var task: URLSessionDataTask?
    |                       `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var attempt = 0
 17 |     private var storedError: Error?
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:19:40: error: cannot find type 'URLRequest' in scope
 17 |     private var storedError: Error?
 18 |
 19 |     init(session: URLSession, request: URLRequest?, error: Error? = nil, retrier: RequestRetrier?) {
    |                                        `- error: cannot find type 'URLRequest' in scope
 20 |         self.session = session
 21 |         self.request = request
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:19:19: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |     private var storedError: Error?
 18 |
 19 |     init(session: URLSession, request: URLRequest?, error: Error? = nil, retrier: RequestRetrier?) {
    |                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |         self.session = session
 21 |         self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:85:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |     // MARK: - Async/Await Serializers
 84 |
 85 |     public func serializingData() async throws -> (data: Data, response: HTTPURLResponse) {
    |                                                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 86 |         return try await withCheckedThrowingContinuation { cont in
 87 |             self.responseData { cont.resume(with: $0.map { ($0, HTTPURLResponse()) }) }
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/ASNetworkKit/DataRequest.swift:91:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 89 |     }
 90 |
 91 |     public var _response: HTTPURLResponse?
    |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |
 93 |     public var resumeData: Data? { nil }
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/ASNetworkKit/DataRequest.swift:95:73: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |     public var resumeData: Data? { nil }
 94 |
 95 |     public struct Payload { public let data: Data; public let response: HTTPURLResponse }
    |                                                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |
 97 |     public func serializingString(encoding: String.Encoding = .utf8) async throws -> String {
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/ASNetworkKit/DataRequest.swift:33:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 31 |
 32 |     public func cancel() {
 33 |         task?.cancel()
    |               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
 34 |     }
 35 |
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:87:65: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 85 |     public func serializingData() async throws -> (data: Data, response: HTTPURLResponse) {
 86 |         return try await withCheckedThrowingContinuation { cont in
 87 |             self.responseData { cont.resume(with: $0.map { ($0, HTTPURLResponse()) }) }
    |                                                                 `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 88 |         }
 89 |     }
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:132:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
130 |
131 |         func perform() {
132 |             task = session.dataTask(with: request) { data, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
133 |                 if let error {
134 |                     Task {
/host/spi-builder-workspace/Sources/ASNetworkKit/DataRequest.swift:161:19: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
159 |                 completion(.success(payload))
160 |             }
161 |             task?.resume()
    |                   `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'resume'
162 |         }
163 |
BUILD FAILURE 6.2 android