The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BasicRequestsKit, reference main (221c0d), with Swift 6.3 for Wasm on 27 Oct 2026 14:32:47 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/AEOlumide/BasicRequestsKit.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/AEOlumide/BasicRequestsKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 221c0d9 Update README.md
Cloned https://github.com/AEOlumide/BasicRequestsKit.git
Revision (git rev-parse @):
221c0d9c1d3db6d844ce80668815ad286ed5e41e
SUCCESS checkout https://github.com/AEOlumide/BasicRequestsKit.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/AEOlumide/BasicRequestsKit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Image is up to date for registry.gitlab.com/saguaro1/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/4] Emitting module BasicRequestsKit
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:7:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 | #endif
  6 |
  7 | public typealias URLDataResponse = (data: Data, response: URLResponse)
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 | public enum HTTPMethod: String {
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/BasicRequestsKit/BasicRequestsKit.swift:24:28: error: cannot find type 'URLRequest' in scope
 22 |
 23 | public protocol URLDataProvider: Sendable {
 24 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
 25 | }
 26 |
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:24:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 | public protocol URLDataProvider: Sendable {
 24 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 | }
 26 |
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/BasicRequestsKit/BasicRequestsKit.swift:27:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 25 | }
 26 |
 27 | extension URLSession: URLDataProvider {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 28 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 29 |         try await data(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:48:122: error: cannot find type 'URLRequest' in scope
 46 |
 47 | public enum HTTPRequestBuilder {
 48 |     public static func make(url: URL, method: HTTPMethod = .get, headers: [String: String]? = [:], body: Data? = nil) -> URLRequest {
    |                                                                                                                          `- error: cannot find type 'URLRequest' in scope
 49 |         var request = URLRequest(url: url)
 50 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:67:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |     private let encoder: JSONEncoder
 66 |
 67 |     public init(session: any URLDataProvider = URLSession.shared, decoder: JSONDecoder = {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         let decoder = JSONDecoder()
 69 |         decoder.dateDecodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:89:34: error: cannot find type 'URLRequest' in scope
 87 |     }
 88 |
 89 |     public func fetch(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
 90 |         let (data, response) = try await session.data(for: request)
 91 |         return try ResponseValidator.validate(requestResponse: (data, response))
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:101:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 99 |     private var bearerToken: String?
100 |
101 |     public init(session: any URLDataProvider = URLSession.shared, decoder: JSONDecoder = {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         let decoder = JSONDecoder()
103 |         decoder.dateDecodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:129:34: error: cannot find type 'URLRequest' in scope
127 |     }
128 |
129 |     public func fetch(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
130 |         var authorizedRequest = request
131 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[4/4] Compiling BasicRequestsKit BasicRequestsKit.swift
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:7:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  5 | #endif
  6 |
  7 | public typealias URLDataResponse = (data: Data, response: URLResponse)
    |                                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  8 |
  9 | public enum HTTPMethod: String {
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/BasicRequestsKit/BasicRequestsKit.swift:24:28: error: cannot find type 'URLRequest' in scope
 22 |
 23 | public protocol URLDataProvider: Sendable {
 24 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                            `- error: cannot find type 'URLRequest' in scope
 25 | }
 26 |
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:24:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |
 23 | public protocol URLDataProvider: Sendable {
 24 |     func data(for request: URLRequest) async throws -> (Data, URLResponse)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 25 | }
 26 |
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/BasicRequestsKit/BasicRequestsKit.swift:27:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 25 | }
 26 |
 27 | extension URLSession: URLDataProvider {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
 28 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
 29 |         try await data(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:48:122: error: cannot find type 'URLRequest' in scope
 46 |
 47 | public enum HTTPRequestBuilder {
 48 |     public static func make(url: URL, method: HTTPMethod = .get, headers: [String: String]? = [:], body: Data? = nil) -> URLRequest {
    |                                                                                                                          `- error: cannot find type 'URLRequest' in scope
 49 |         var request = URLRequest(url: url)
 50 |         request.httpMethod = method.rawValue
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:67:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 65 |     private let encoder: JSONEncoder
 66 |
 67 |     public init(session: any URLDataProvider = URLSession.shared, decoder: JSONDecoder = {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 68 |         let decoder = JSONDecoder()
 69 |         decoder.dateDecodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:89:34: error: cannot find type 'URLRequest' in scope
 87 |     }
 88 |
 89 |     public func fetch(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
 90 |         let (data, response) = try await session.data(for: request)
 91 |         return try ResponseValidator.validate(requestResponse: (data, response))
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:101:59: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 99 |     private var bearerToken: String?
100 |
101 |     public init(session: any URLDataProvider = URLSession.shared, decoder: JSONDecoder = {
    |                                                           `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
102 |         let decoder = JSONDecoder()
103 |         decoder.dateDecodingStrategy = .iso8601
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:129:34: error: cannot find type 'URLRequest' in scope
127 |     }
128 |
129 |     public func fetch(_ request: URLRequest) async throws -> Data {
    |                                  `- error: cannot find type 'URLRequest' in scope
130 |         var authorizedRequest = request
131 |
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:35:58: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 33 | public enum ResponseValidator {
 34 |     public nonisolated static func validate(requestResponse: URLDataResponse, statusCodes: ClosedRange<Int> = 200...299) throws -> Data {
 35 |         guard let statusCode = (requestResponse.response as? HTTPURLResponse)?.statusCode else {
    |                                                          `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
 36 |             throw NetworkingError.invalidResponse
 37 |         }
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:35:80: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 33 | public enum ResponseValidator {
 34 |     public nonisolated static func validate(requestResponse: URLDataResponse, statusCodes: ClosedRange<Int> = 200...299) throws -> Data {
 35 |         guard let statusCode = (requestResponse.response as? HTTPURLResponse)?.statusCode else {
    |                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 36 |             throw NetworkingError.invalidResponse
 37 |         }
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:49:23: error: cannot find 'URLRequest' in scope
 47 | public enum HTTPRequestBuilder {
 48 |     public static func make(url: URL, method: HTTPMethod = .get, headers: [String: String]? = [:], body: Data? = nil) -> URLRequest {
 49 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 50 |         request.httpMethod = method.rawValue
 51 |         request.allHTTPHeaderFields = headers
/host/spi-builder-workspace/Sources/BasicRequestsKit/BasicRequestsKit.swift:28:35: error: cannot find type 'URLRequest' in scope
 26 |
 27 | extension URLSession: URLDataProvider {
 28 |     public func data(for request: URLRequest) async throws -> (Data, URLResponse) {
    |                                   `- error: cannot find type 'URLRequest' in scope
 29 |         try await data(for: request, delegate: nil)
 30 |     }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.3 wasm