The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build Netrofit, reference main (535ab0), with Swift 6.2 for Android on 7 Nov 2025 17:16:24 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/winddpan/Netrofit.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/winddpan/Netrofit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 535ab05 improve LLM SSE test case
Cloned https://github.com/winddpan/Netrofit.git
Revision (git rev-parse @):
535ab0562fb96284af3e5da2a0bae4bf5e4a9fe0
SUCCESS checkout https://github.com/winddpan/Netrofit.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/winddpan/Netrofit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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:d70d83f328e9f1ae04a4e17e63e2d335ae10639f90ee796a5fe3bfb139eab948
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/72719] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (8.88s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (11.34s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Downloading package prebuilt https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz
Downloaded https://download.swift.org/prebuilts/swift-syntax/600.0.1/swift-6.2-RELEASE-MacroSupport-ubuntu_jammy_x86_64.tar.gz (0.61s)
Building for debugging...
[0/11] Write sources
[3/11] Write swift-version--11D90AFD9DD3AB2.txt
[5/19] Compiling NetrofitMacros FunctionDecl+.swift
[6/20] Compiling NetrofitMacros EmptyMacro.swift
[7/20] Emitting module NetrofitMacros
[8/20] Compiling NetrofitMacros APIMacro.swift
[9/20] Compiling NetrofitMacros PayloadFormat.swift
[10/20] Compiling NetrofitMacros Plugin.swift
[11/20] Compiling NetrofitMacros AttributeDecl+.swift
[12/20] Compiling NetrofitMacros String+.swift
[13/20] Compiling NetrofitMacros MethodMacro.swift
[14/21] Wrapping AST for NetrofitMacros for debugging
[15/21] Write Objects.LinkFileList
[16/21] Linking NetrofitMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/41] Emitting module Netrofit
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
 7 |
 8 | public struct NetrofitResponse {
 9 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
10 |     public var body: Data?
11 |     public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
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/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:58: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
   |                                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private var urlSession: URLSession!
17 |     private var createdTasks = Set<_NetrofitTask>()
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/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
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/Netrofit/_Netrofit/_NetrofitSession.swift:19:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
19 |     init(configuration: URLSessionConfiguration) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.configuration = configuration
21 |         super.init()
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:36:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
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/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
 33 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
    |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
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/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
 38 |     private(set) var dataTask: URLSessionDataTask?
    |                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var state: EventStreamingState = .idle
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/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 45 |         self.urlSession = urlSession
 46 |         self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         self.urlSession = urlSession
 46 |         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
[19/43] Compiling Netrofit AnyEncodable.swift
[20/43] Compiling Netrofit String+URLPathPart.swift
[21/43] Compiling Netrofit TextPlainEncoder.swift
[22/43] Compiling Netrofit URLEncodedFormEncoder.swift
[23/43] Compiling Netrofit NetrofitMacros.swift
[24/43] Compiling Netrofit _NetrofitSession.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
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/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:58: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
   |                                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private var urlSession: URLSession!
17 |     private var createdTasks = Set<_NetrofitTask>()
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/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
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/Netrofit/_Netrofit/_NetrofitSession.swift:19:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
19 |     init(configuration: URLSessionConfiguration) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.configuration = configuration
21 |         super.init()
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:36:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:22:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |         self.configuration = configuration
21 |         super.init()
22 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 |     }
24 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:22:94: error: 'nil' requires a contextual type
20 |         self.configuration = configuration
21 |         super.init()
22 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                              `- error: 'nil' requires a contextual type
23 |     }
24 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:26:23: error: cannot find 'URLRequest' in scope
24 |
25 |     func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
26 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
27 |         request.httpMethod = method
28 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 45 |         self.urlSession = urlSession
 46 |         self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
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/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
 33 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
    |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
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/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
 38 |     private(set) var dataTask: URLSessionDataTask?
    |                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var state: EventStreamingState = .idle
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/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         self.urlSession = urlSession
 46 |         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/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |     func resume() {
 51 |         guard dataTask == nil else { return }
 52 |         let task = urlSession.dataTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |         task.resume()
 54 |         dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
 80 |         let decoder = builder.decoder
 81 |         let deocdeKeyPath = builder.responseKeyPath
 82 |         return AsyncStream<T> { continuation in
    |                `- error: type of expression is ambiguous without a type annotation
 83 |             let wrapper = StreamWrapper(
 84 |                 decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 |         let decoder = builder.decoder
112 |         let deocdeKeyPath = builder.responseKeyPath
113 |         return AsyncThrowingStream(T.self) { continuation in
    |                `- error: type of expression is ambiguous without a type annotation
114 |             let wrapper = ThrowingStreamWrapper(
115 |                 decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 |         dataTask = nil
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 |             guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |         dataTask = nil
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 |             guard let k = key as? 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/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 |             guard let k = key as? String,
197 |                   let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |         response.body = responseData
207 |         response.headers = headers
208 |         response.statusCode = httpResponse?.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 |         for plugin in plugins {
[25/43] Compiling Netrofit _NetrofitTask.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
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/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: value of type '_' expected to be instance of class or class-constrained type
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 4 |     public convenience init(
 5 |         baseURL: String,
 6 |         configuration: URLSessionConfiguration = .default,
   |                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 7 |         plugins: [NetrofitPlugin] = []
 8 |     ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:58: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
   |                                                          `- error: cannot find type 'URLSessionDataDelegate' in scope
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
   |                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     private var urlSession: URLSession!
17 |     private var createdTasks = Set<_NetrofitTask>()
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/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, URLSessionDataDelegate {
15 |     let configuration: URLSessionConfiguration
16 |     private var urlSession: URLSession!
   |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
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/Netrofit/_Netrofit/_NetrofitSession.swift:19:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     private var createdTasks = Set<_NetrofitTask>()
18 |
19 |     init(configuration: URLSessionConfiguration) {
   |                         `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.configuration = configuration
21 |         super.init()
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                                                                `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:36:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:36:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |     }
35 |
36 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
   |                                                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
38 |             _task.urlResponse = response
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:43:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     }
42 |
43 |     func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
   |                                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
45 |             _task.didReceiveData(data)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
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/Netrofit/_Netrofit/_NetrofitSession.swift:49:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 |     }
48 |
49 |     func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
   |                                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |         if let _task = createdTasks.first(where: { $0.dataTask === task }) {
51 |             _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:22:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
20 |         self.configuration = configuration
21 |         super.init()
22 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
23 |     }
24 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:22:94: error: 'nil' requires a contextual type
20 |         self.configuration = configuration
21 |         super.init()
22 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
   |                                                                                              `- error: 'nil' requires a contextual type
23 |     }
24 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:26:23: error: cannot find 'URLRequest' in scope
24 |
25 |     func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
26 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
27 |         request.httpMethod = method
28 |         request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                                           `- error: cannot find type 'URLRequest' in scope
 45 |         self.urlSession = urlSession
 46 |         self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
    |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
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/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
 31 |     let uuid = UUID()
 32 |     let urlSession: URLSession
 33 |     let request: URLRequest
    |                  `- error: cannot find type 'URLRequest' in scope
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 33 |     let request: URLRequest
 34 |     let plugins: [NetrofitPlugin]
 35 |     var urlResponse: URLResponse?
    |                      `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
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/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 36 |
 37 |     private(set) var responseData = Data()
 38 |     private(set) var dataTask: URLSessionDataTask?
    |                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |
 40 |     private var state: EventStreamingState = .idle
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/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
 43 |
 44 |     init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
    |                      `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 45 |         self.urlSession = urlSession
 46 |         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/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 50 |     func resume() {
 51 |         guard dataTask == nil else { return }
 52 |         let task = urlSession.dataTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
 53 |         task.resume()
 54 |         dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
 80 |         let decoder = builder.decoder
 81 |         let deocdeKeyPath = builder.responseKeyPath
 82 |         return AsyncStream<T> { continuation in
    |                `- error: type of expression is ambiguous without a type annotation
 83 |             let wrapper = StreamWrapper(
 84 |                 decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 |         let decoder = builder.decoder
112 |         let deocdeKeyPath = builder.responseKeyPath
113 |         return AsyncThrowingStream(T.self) { continuation in
    |                `- error: type of expression is ambiguous without a type annotation
114 |             let wrapper = ThrowingStreamWrapper(
115 |                 decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 |         dataTask = nil
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
    |                                        `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 |             guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 |         dataTask = nil
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
    |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 |             guard let k = key as? 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/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 |         let httpResponse = urlResponse as? HTTPURLResponse
195 |         let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
    |                                     `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 |             guard let k = key as? String,
197 |                   let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 |         response.body = responseData
207 |         response.headers = headers
208 |         response.statusCode = httpResponse?.statusCode
    |                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 |         for plugin in plugins {
[26/43] Compiling Netrofit AttributeWrappers.swift
[27/43] Compiling Netrofit DynamicContentTypeDecoder.swift
[28/43] Compiling Netrofit EventStreamingDecoder.swift
[29/43] Compiling Netrofit NetrofitPlugin.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
 7 |
 8 | public struct NetrofitResponse {
 9 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
10 |     public var body: Data?
11 |     public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
[30/43] Compiling Netrofit NetrofitProvider.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
 7 |
 8 | public struct NetrofitResponse {
 9 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
10 |     public var body: Data?
11 |     public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
[31/43] Compiling Netrofit NetrofitResponse.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
 7 |
 8 | public struct NetrofitResponse {
 9 |     public var request: URLRequest
   |                         `- error: cannot find type 'URLRequest' in scope
10 |     public var body: Data?
11 |     public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 |     public var error: Error?
14 |
15 |     public init(request: URLRequest) {
   |                          `- error: cannot find type 'URLRequest' in scope
16 |         self.request = request
17 |     }
[32/43] Compiling Netrofit NetrofitSessionProtocols.swift
[33/43] Compiling Netrofit RequestBuilder.swift
[34/43] Compiling Netrofit HTTPBodyDecoder.swift
[35/43] Compiling Netrofit JSONDecoder.swift
[36/43] Compiling Netrofit TextPlainDecoder.swift
[37/43] Compiling Netrofit HTTPBodyEncoder.swift
[38/43] Compiling Netrofit JSONEncoder.swift
[39/43] Compiling Netrofit MultipartEncoder.swift
BUILD FAILURE 6.2 android