The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftRestClient, reference main (eb7b2f), with Swift 6.3 for Wasm on 15 Apr 2026 12:39:41 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path:  $PWD
https://github.com/duhnnie/SwiftRestClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-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: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: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()
BUILD FAILURE 6.3 wasm