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 OkHttpClient, reference 1.0.0 (4b16a0), with Swift 6.1 for Wasm on 28 May 2025 20:13:07 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/rmichelberger/OkHttpClient.git
Reference: 1.0.0
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/rmichelberger/OkHttpClient
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 4b16a0f - fixed simple logger
Cloned https://github.com/rmichelberger/OkHttpClient.git
Revision (git rev-parse @):
4b16a0f97e814132326e76479fe90e2f9fc962a2
SUCCESS checkout https://github.com/rmichelberger/OkHttpClient.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/rmichelberger/OkHttpClient.git
https://github.com/rmichelberger/OkHttpClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "OkHttpClient",
  "name" : "OkHttpClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "OkHttpClient",
      "targets" : [
        "OkHttpClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OkHttpClientTests",
      "module_type" : "SwiftTarget",
      "name" : "OkHttpClientTests",
      "path" : "Tests/OkHttpClientTests",
      "sources" : [
        "JSONTests.swift",
        "NullEncodableTests.swift",
        "OkHttpClientTests.swift",
        "SimpleLoggerTests.swift"
      ],
      "target_dependencies" : [
        "OkHttpClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OkHttpClient",
      "module_type" : "SwiftTarget",
      "name" : "OkHttpClient",
      "path" : "Sources/OkHttpClient",
      "product_memberships" : [
        "OkHttpClient"
      ],
      "sources" : [
        "Decoding/DataDecoder.swift",
        "Decoding/RawDataDecoder.swift",
        "JSON/JSON.swift",
        "JSON/NullEncodable.swift",
        "Logger/Logger.swift",
        "Logger/SimpleLogger.swift",
        "OkHttpClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling OkHttpClient OkHttpClient.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:33: error: extra argument 'request' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                                 `- error: extra argument 'request' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:23: error: missing arguments for parameters 'response', 'data' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                       `- error: missing arguments for parameters 'response', 'data' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:10: note: 'log(response:data:)' declared here
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |          `- note: 'log(response:data:)' declared here
6 | }
7 |
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:16:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |             logger.log(request: request)
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
   |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         let data = result.0
18 |         if let logger, let response = result.1 as? HTTPURLResponse {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/10] Compiling OkHttpClient RawDataDecoder.swift
[5/10] Compiling OkHttpClient DataDecoder.swift
[6/10] Compiling OkHttpClient JSON.swift
[7/10] Emitting module OkHttpClient
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
[8/10] Compiling OkHttpClient NullEncodable.swift
[9/10] Compiling OkHttpClient Logger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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
[10/10] Compiling OkHttpClient SimpleLogger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:35:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
33 |     public func log(response: HTTPURLResponse, data: Data?) {
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
   |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
36 |         let components = URLComponents(string: urlString ?? "")
37 |
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:43:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |         }
42 |
43 |         responseLog += "HTTP \(response.statusCode)"
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |         if let path = components?.path {
45 |             responseLog += " \(path)"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:54:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
52 |             responseLog += "Host: \(host)\n"
53 |         }
54 |         for (name,value) in response.allHeaderFields {
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
55 |             responseLog += "\(name): \(value)\n"
56 |         }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling OkHttpClient OkHttpClient.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:33: error: extra argument 'request' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                                 `- error: extra argument 'request' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:14:23: error: missing arguments for parameters 'response', 'data' in call
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
13 |         if let logger {
14 |             logger.log(request: request)
   |                       `- error: missing arguments for parameters 'response', 'data' in call
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:10: note: 'log(response:data:)' declared here
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |          `- note: 'log(response:data:)' declared here
6 | }
7 |
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:16:43: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |             logger.log(request: request)
15 |         }
16 |         let result = try await URLSession.shared.data(for: request)
   |                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |         let data = result.0
18 |         if let logger, let response = result.1 as? HTTPURLResponse {
[3/9] Compiling OkHttpClient SimpleLogger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:35:34: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
33 |     public func log(response: HTTPURLResponse, data: Data?) {
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
   |                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'url'
36 |         let components = URLComponents(string: urlString ?? "")
37 |
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:43:41: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
41 |         }
42 |
43 |         responseLog += "HTTP \(response.statusCode)"
   |                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
44 |         if let path = components?.path {
45 |             responseLog += " \(path)"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:54:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
52 |             responseLog += "Host: \(host)\n"
53 |         }
54 |         for (name,value) in response.allHeaderFields {
   |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
55 |             responseLog += "\(name): \(value)\n"
56 |         }
[4/9] Compiling OkHttpClient NullEncodable.swift
[5/9] Compiling OkHttpClient Logger.swift
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/9] Compiling OkHttpClient RawDataDecoder.swift
[7/9] Compiling OkHttpClient DataDecoder.swift
[8/9] Compiling OkHttpClient JSON.swift
[9/9] Emitting module OkHttpClient
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:4:23: error: cannot find type 'URLRequest' in scope
2 |
3 | public protocol Logger {
4 |     func log(request: URLRequest)
  |                       `- error: cannot find type 'URLRequest' in scope
5 |     func log(response: HTTPURLResponse, data: Data?)
6 | }
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/Logger.swift:5:24: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
3 | public protocol Logger {
4 |     func log(request: URLRequest)
5 |     func log(response: HTTPURLResponse, data: Data?)
  |                        `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | }
7 |
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/OkHttpClient/Logger/SimpleLogger.swift:6:30: error: cannot find type 'URLRequest' in scope
 4 |     public init() {}
 5 |
 6 |     public func log(request: URLRequest) {
   |                              `- error: cannot find type 'URLRequest' in scope
 7 | #if DEBUG
 8 |         var result = "---------- Request ---------->\n"
/host/spi-builder-workspace/Sources/OkHttpClient/Logger/SimpleLogger.swift:33:31: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |     }
32 |
33 |     public func log(response: HTTPURLResponse, data: Data?) {
   |                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | #if DEBUG
35 |         let urlString = response.url?.absoluteString
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/OkHttpClient/OkHttpClient.swift:12:48: error: cannot find type 'URLRequest' in scope
10 |     }
11 |
12 |     public func execute<T: Decodable>(request: URLRequest) async throws -> T {
   |                                                `- error: cannot find type 'URLRequest' in scope
13 |         if let logger {
14 |             logger.log(request: request)
/host/spi-builder-workspace/Sources/OkHttpClient/OkHttpClient.swift:26:8: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
24 |
25 | @available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
26 | public extension URLSession {
   |        `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
27 |     func data(from url: URL) async throws -> (Data, URLResponse) {
28 |         try await withCheckedThrowingContinuation { continuation in
BUILD FAILURE 6.1 wasm