The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftRestClient, reference main (eb7b2f), with Swift 6.1 for Wasm on 30 May 2025 03:20:20 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/duhnnie/SwiftRestClient.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/duhnnie/SwiftRestClient
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eb7b2fc Merge pull request #21 from duhnnie/release/0.7.1
Cloned https://github.com/duhnnie/SwiftRestClient.git
Revision (git rev-parse @):
eb7b2fcf534b0293e11e139866c5117bc56e7695
SUCCESS checkout https://github.com/duhnnie/SwiftRestClient.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/duhnnie/SwiftRestClient.git
https://github.com/duhnnie/SwiftRestClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftRestClient",
  "name" : "SwiftRestClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftRestClient",
      "targets" : [
        "SwiftRestClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SwiftRestClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestClientTests",
      "path" : "Tests/SwiftRestClientTests",
      "sources" : [
        "SwiftRestClientTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRestClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRestClient",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRestClient",
      "path" : "Sources/SwiftRestClient",
      "product_memberships" : [
        "SwiftRestClient"
      ],
      "sources" : [
        "Encoders/HTTPFormURLEncoded.swift",
        "SwiftRestClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Compiling SwiftRestClient HTTPFormURLEncoded.swift
[4/5] Emitting module SwiftRestClient
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | #endif
  5 |
  6 | public class SwiftRestClient {
    |              `- note: class 'SwiftRestClient' does not conform to the 'Sendable' protocol
  7 |     private enum HTTPMethod: String {
  8 |         case GET
    :
 16 |     }
 17 |
 18 |     public static let shared = SwiftRestClient()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
 20 |     public typealias Headers = [String: String]
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:19:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public static let shared = SwiftRestClient()
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
    |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public typealias Headers = [String: String]
 21 |
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/SwiftRestClient/SwiftRestClient.swift:54:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |        body: Data? = nil,
 53 |        headers: Headers? = nil
 54 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         return try await withCheckedThrowingContinuation { continuation in
 56 |             self.call(url, method: method, body: body, headers: headers) { data, response, error in
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/SwiftRestClient/SwiftRestClient.swift:83:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         body: Data? = nil,
 82 |         headers: Headers? = nil
 83 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (os(Linux) && compiler(>=6.0))
 85 |         var request = URLRequest(url: url)
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/SwiftRestClient/SwiftRestClient.swift:112:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
112 |     public func get(_ url: URL, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         return try await call(url, method: .GET, body: nil, headers: headers)
114 |     }
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/SwiftRestClient/SwiftRestClient.swift:121:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
121 |     public func post(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |         return try await call(url, method: .POST, body: body, headers: headers)
123 |     }
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/SwiftRestClient/SwiftRestClient.swift:130:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |
129 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
130 |     public func put(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         return try await call(url, method: .PUT, body: body, headers: headers)
132 |     }
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
[5/5] Compiling SwiftRestClient SwiftRestClient.swift
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:18:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | #endif
  5 |
  6 | public class SwiftRestClient {
    |              `- note: class 'SwiftRestClient' does not conform to the 'Sendable' protocol
  7 |     private enum HTTPMethod: String {
  8 |         case GET
    :
 16 |     }
 17 |
 18 |     public static let shared = SwiftRestClient()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SwiftRestClient' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
 20 |     public typealias Headers = [String: String]
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:19:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public static let shared = SwiftRestClient()
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
    |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public typealias Headers = [String: String]
 21 |
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/SwiftRestClient/SwiftRestClient.swift:54:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |        body: Data? = nil,
 53 |        headers: Headers? = nil
 54 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         return try await withCheckedThrowingContinuation { continuation in
 56 |             self.call(url, method: method, body: body, headers: headers) { data, response, error in
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/SwiftRestClient/SwiftRestClient.swift:83:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         body: Data? = nil,
 82 |         headers: Headers? = nil
 83 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (os(Linux) && compiler(>=6.0))
 85 |         var request = URLRequest(url: url)
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/SwiftRestClient/SwiftRestClient.swift:112:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
112 |     public func get(_ url: URL, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         return try await call(url, method: .GET, body: nil, headers: headers)
114 |     }
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/SwiftRestClient/SwiftRestClient.swift:121:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
121 |     public func post(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |         return try await call(url, method: .POST, body: body, headers: headers)
123 |     }
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/SwiftRestClient/SwiftRestClient.swift:130:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |
129 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
130 |     public func put(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         return try await call(url, method: .PUT, body: body, headers: headers)
132 |     }
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/SwiftRestClient/SwiftRestClient.swift:31:23: error: cannot find 'URLRequest' in scope
 29 |         onCompletion: @escaping RequestCompletion
 30 |     ) -> Void {
 31 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 32 |
 33 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:43:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |         request.httpBody = body
 42 |
 43 |         let dataTask = URLSession.shared.dataTask(with: request, completionHandler: onCompletion)
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |
 45 |         dataTask.resume()
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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/4] Compiling SwiftRestClient SwiftRestClient.swift
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:19:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public static let shared = SwiftRestClient()
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
    |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public typealias Headers = [String: String]
 21 |
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/SwiftRestClient/SwiftRestClient.swift:54:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |        body: Data? = nil,
 53 |        headers: Headers? = nil
 54 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         return try await withCheckedThrowingContinuation { continuation in
 56 |             self.call(url, method: method, body: body, headers: headers) { data, response, error in
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/SwiftRestClient/SwiftRestClient.swift:83:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         body: Data? = nil,
 82 |         headers: Headers? = nil
 83 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (os(Linux) && compiler(>=6.0))
 85 |         var request = URLRequest(url: url)
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/SwiftRestClient/SwiftRestClient.swift:112:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
112 |     public func get(_ url: URL, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         return try await call(url, method: .GET, body: nil, headers: headers)
114 |     }
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/SwiftRestClient/SwiftRestClient.swift:121:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
121 |     public func post(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |         return try await call(url, method: .POST, body: body, headers: headers)
123 |     }
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/SwiftRestClient/SwiftRestClient.swift:130:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |
129 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
130 |     public func put(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         return try await call(url, method: .PUT, body: body, headers: headers)
132 |     }
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/SwiftRestClient/SwiftRestClient.swift:31:23: error: cannot find 'URLRequest' in scope
 29 |         onCompletion: @escaping RequestCompletion
 30 |     ) -> Void {
 31 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 32 |
 33 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:43:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |         request.httpBody = body
 42 |
 43 |         let dataTask = URLSession.shared.dataTask(with: request, completionHandler: onCompletion)
    |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 44 |
 45 |         dataTask.resume()
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Compiling SwiftRestClient HTTPFormURLEncoded.swift
[4/4] Emitting module SwiftRestClient
/host/spi-builder-workspace/Sources/SwiftRestClient/SwiftRestClient.swift:19:50: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |
 18 |     public static let shared = SwiftRestClient()
 19 |     public typealias RequestCompletion = (Data?, URLResponse?, Error?) -> Void
    |                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |     public typealias Headers = [String: String]
 21 |
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/SwiftRestClient/SwiftRestClient.swift:54:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |        body: Data? = nil,
 53 |        headers: Headers? = nil
 54 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 55 |         return try await withCheckedThrowingContinuation { continuation in
 56 |             self.call(url, method: method, body: body, headers: headers) { data, response, error in
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/SwiftRestClient/SwiftRestClient.swift:83:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 81 |         body: Data? = nil,
 82 |         headers: Headers? = nil
 83 |     ) async throws -> (Data, URLResponse) {
    |                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 |         #if os(macOS) || os(iOS) || os(watchOS) || os(tvOS) || (os(Linux) && compiler(>=6.0))
 85 |         var request = URLRequest(url: url)
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/SwiftRestClient/SwiftRestClient.swift:112:81: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
110 |
111 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
112 |     public func get(_ url: URL, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 |         return try await call(url, method: .GET, body: nil, headers: headers)
114 |     }
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/SwiftRestClient/SwiftRestClient.swift:121:101: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
119 |
120 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
121 |     public func post(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
122 |         return try await call(url, method: .POST, body: body, headers: headers)
123 |     }
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/SwiftRestClient/SwiftRestClient.swift:130:100: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
128 |
129 |     @available(iOS 13.0, watchOS 6.0, tvOS 13.0, *)
130 |     public func put(_ url: URL, body: Data? = nil, headers: Headers? = nil) async throws -> (Data, URLResponse) {
    |                                                                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
131 |         return try await call(url, method: .PUT, body: body, headers: headers)
132 |     }
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
BUILD FAILURE 6.1 wasm