The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NetworkKit, reference v1.0.5 (1c1904), with Swift 6.1 for Linux on 2 Apr 2026 03:47:38 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/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ErsanQ/NetworkKit.git
Reference: v1.0.5
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/ErsanQ/NetworkKit
 * tag               v1.0.5     -> FETCH_HEAD
HEAD is now at 1c19041 fix: resolve invalid test paths and empty targets for SPI compatibility
Cloned https://github.com/ErsanQ/NetworkKit.git
Revision (git rev-parse @):
1c19041ca528e103a6858862d5f87f135086828b
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/ErsanQ/NetworkKit.git at v1.0.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/ErsanQ/NetworkKit.git
https://github.com/ErsanQ/NetworkKit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "NetworkKit",
  "name" : "NetworkKit",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "NetworkKit",
      "targets" : [
        "NetworkKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "NetworkKitTests",
      "module_type" : "SwiftTarget",
      "name" : "NetworkKitTests",
      "path" : "Tests/NetworkKitTests",
      "sources" : [
        "NetworkKitTests.swift"
      ],
      "target_dependencies" : [
        "NetworkKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NetworkKit",
      "module_type" : "SwiftTarget",
      "name" : "NetworkKit",
      "path" : "Sources/NetworkKit",
      "product_memberships" : [
        "NetworkKit"
      ],
      "sources" : [
        "Network.swift",
        "NetworkClient.swift",
        "NetworkError.swift",
        "NetworkKitFallback.swift",
        "NetworkRequest.swift",
        "NetworkResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/9] Compiling NetworkKit Network.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/Network.swift:112:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 |     public static func response(for request: NetworkRequest) async throws -> NetworkResponse {
111 |         let urlRequest = try request.buildURLRequest(with: shared.baseURL)
112 |         let (data, response) = try await URLSession.shared.data(for: urlRequest)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 |         guard let http = response as? HTTPURLResponse else { throw NetworkError.invalidResponse }
114 |         return NetworkResponse(statusCode: http.statusCode, data: data, headers: http.allHeaderFields.reduce(into: [:]) { partial, item in
[4/9] Compiling NetworkKit NetworkResponse.swift
[5/9] Compiling NetworkKit NetworkError.swift
[6/9] Compiling NetworkKit NetworkKitFallback.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/9] Compiling NetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         let urlRequest = try request.buildURLRequest(with: baseURL)
40 |
41 |         let (data, response) = try await session.data(for: urlRequest)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         guard let httpResponse = response as? HTTPURLResponse else {
[8/9] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
[9/9] Compiling NetworkKit NetworkRequest.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:50:23: error: cannot find 'URLRequest' in scope
48 |         }
49 |
50 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpMethod = method.rawValue
52 |         request.httpBody = body
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/swiftpackageindex/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:108e10880bce35e9496fba26782956e40a8e91a2a227f9b90af7e4cd93d2c183
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/8] Compiling NetworkKit NetworkError.swift
[3/8] Emitting module NetworkKit
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
[4/8] Compiling NetworkKit NetworkClient.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |     private let decoder: JSONDecoder
20 |
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/NetworkKit/NetworkClient.swift:27:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         self.baseURL = baseURL
29 |         self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:18:17: warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
16 |     /// The base URL prepended to all relative request paths.
17 |     public let baseURL: URL
18 |     private let session: URLSession
   |                 `- warning: stored property 'session' of 'Sendable'-conforming class 'NetworkClient' has non-sendable type 'URLSession' (aka 'AnyObject'); this is an error in the Swift 6 language mode
19 |     private let decoder: JSONDecoder
20 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:41:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
39 |         let urlRequest = try request.buildURLRequest(with: baseURL)
40 |
41 |         let (data, response) = try await session.data(for: urlRequest)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
42 |
43 |         guard let httpResponse = response as? HTTPURLResponse else {
[5/8] Compiling NetworkKit Network.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkClient.swift:27:54: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |     ///   - session: An optional custom `URLSession`. Defaults to `.shared`.
26 |     ///   - decoder: An optional custom `JSONDecoder`. Defaults to a standard decoder.
27 |     public init(baseURL: URL, session: URLSession = .shared, decoder: JSONDecoder = JSONDecoder()) {
   |                                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         self.baseURL = baseURL
29 |         self.session = session
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/Network.swift:112:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
110 |     public static func response(for request: NetworkRequest) async throws -> NetworkResponse {
111 |         let urlRequest = try request.buildURLRequest(with: shared.baseURL)
112 |         let (data, response) = try await URLSession.shared.data(for: urlRequest)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
113 |         guard let http = response as? HTTPURLResponse else { throw NetworkError.invalidResponse }
114 |         return NetworkResponse(statusCode: http.statusCode, data: data, headers: http.allHeaderFields.reduce(into: [:]) { partial, item in
[6/8] Compiling NetworkKit NetworkKitFallback.swift
[7/8] Compiling NetworkKit NetworkResponse.swift
[8/8] Compiling NetworkKit NetworkRequest.swift
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:40:55: error: cannot find type 'URLRequest' in scope
38 |
39 |     /// Internal helper to transform the `NetworkRequest` into a native `URLRequest`.
40 |     func buildURLRequest(with baseURL: URL) throws -> URLRequest {
   |                                                       `- error: cannot find type 'URLRequest' in scope
41 |         var url = baseURL.appendingPathComponent(path)
42 |
/host/spi-builder-workspace/Sources/NetworkKit/NetworkRequest.swift:50:23: error: cannot find 'URLRequest' in scope
48 |         }
49 |
50 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
51 |         request.httpMethod = method.rawValue
52 |         request.httpBody = body
BUILD FAILURE 6.1 linux