The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Nexio, reference main (d4a313), with Swift 6.4 for Wasm on 25 Sep 2026 17:23:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ANSCoder/Nexio.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/ANSCoder/Nexio
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d4a3130 Merge pull request #3 from ANSCoder/chore/pr-tooling
Cloned https://github.com/ANSCoder/Nexio.git
Revision (git rev-parse @):
d4a31301027dea0a9dfd6a4eca91ceb289be1475
SUCCESS checkout https://github.com/ANSCoder/Nexio.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ANSCoder/Nexio.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
[27 / 35] Nexio
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:30:87: error: cannot find type 'URLRequest' in scope
28 |     }
29 |
30 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
   |                                                                                       `- error: cannot find type 'URLRequest' in scope
31 |         var mutableRequest = request
32 |         let strategy = await provider()
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:30:34: error: cannot find type 'URLRequest' in scope
28 |     }
29 |
30 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
31 |         var mutableRequest = request
32 |         let strategy = await provider()
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:30:59: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
   |                                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         var mutableRequest = request
32 |         let strategy = await provider()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:47:20: error: cannot find type 'URLRequest' in scope
45 |
46 |     public func retry(
47 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
48 |         dueTo error: NexioError,
49 |         attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:80: error: cannot find type 'URLRequest' in scope
32 |     ///   - session: The session that will execute the request.
33 |     /// - Returns: The (possibly mutated) request.
34 |     func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest
   |                                                                                `- error: cannot find type 'URLRequest' in scope
35 |
36 |     /// Called after a request fails.
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:27: error: cannot find type 'URLRequest' in scope
32 |     ///   - session: The session that will execute the request.
33 |     /// - Returns: The (possibly mutated) request.
34 |     func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest
   |                           `- error: cannot find type 'URLRequest' in scope
35 |
36 |     /// Called after a request fails.
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:46:27: error: cannot find type 'URLRequest' in scope
44 |     ///   - attempt: Zero-based retry counter (0 = first failure).
45 |     /// - Returns: `true` to retry, `false` to propagate the error.
46 |     func retry(_ request: URLRequest, dueTo error: NexioError, attempt: Int) async -> Bool
   |                           `- error: cannot find type 'URLRequest' in scope
47 | }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:34:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |     private var authStrategy: AuthStrategy = .none
 33 |     private var interceptors: [any Interceptor] = []
 34 |     private var session: URLSession = URLSession.shared
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 35 |     private let decoder: JSONDecoder = JSONDecoder()
 36 |     private let encoder: JSONEncoder = JSONEncoder()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:34:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 32 |     private var authStrategy: AuthStrategy = .none
 33 |     private var interceptors: [any Interceptor] = []
 34 |     private var session: URLSession = URLSession.shared
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 35 |     private let decoder: JSONDecoder = JSONDecoder()
 36 |     private let encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:34:50: error: value of type '_' expected to be instance of class or class-constrained type
 32 |     private var authStrategy: AuthStrategy = .none
 33 |     private var interceptors: [any Interceptor] = []
 34 |     private var session: URLSession = URLSession.shared
    |                                                  `- error: value of type '_' expected to be instance of class or class-constrained type
 35 |     private let decoder: JSONDecoder = JSONDecoder()
 36 |     private let encoder: JSONEncoder = JSONEncoder()
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:222:62: error: cannot find type 'URLRequest' in scope
220 |     /// - Throws: ``NexioError/decodingFailed(underlying:data:)`` if `T`
221 |     ///   doesn't match the response shape, or any status-mapped ``NexioError``.
222 |     private func perform<T: Decodable & Sendable>(_ request: URLRequest) async throws -> T {
    |                                                              `- error: cannot find type 'URLRequest' in scope
223 |         let (data, http) = try await executeWithInterceptors(request, attempt: 0)
224 |         logIfNeeded(request: request, response: http, data: data)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:254:20: error: cannot find type 'URLRequest' in scope
252 |     ///   interceptor opts to retry.
253 |     private func executeWithInterceptors(
254 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
255 |         attempt: Int
256 |     ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:256:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
254 |         _ request: URLRequest,
255 |         attempt: Int
256 |     ) async throws -> (Data, HTTPURLResponse) {
    |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
257 |         var adapted = request
258 |         for interceptor in interceptors {
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/Nexio/Core/NexioClient.swift:292:17: error: cannot find type 'URLRequest' in scope
290 |         headers: [String: String],
291 |         body: Body?
292 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
293 |         guard let resolved = resolve(url) else {
294 |             throw NexioError.invalidURL(url)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:318:71: error: cannot find type 'URLRequest' in scope
316 |     /// - Returns: A populated `URLRequest`, ready for the interceptor pipeline.
317 |     /// - Throws: ``NexioError/invalidURL(_:)`` if the composed URL is malformed.
318 |     private func buildRequest(from endpoint: some Endpoint) throws -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
319 |         var components = URLComponents(
320 |             url: endpoint.baseURL.appendingPathComponent(endpoint.path),
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:365:56: error: cannot find type 'URLRequest' in scope
363 |     ///
364 |     /// - Parameter request: The request to mutate in place.
365 |     private func applyDefaultHeaders(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
366 |         config.defaultHeaders.forEach { request.setValue($1, forHTTPHeaderField: $0) }
367 |     }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:375:72: error: cannot find type 'URLRequest' in scope
373 |     ///   - strategy: The strategy to apply — global or per-endpoint.
374 |     ///   - request: The request to mutate in place.
375 |     private func applyAuth(_ strategy: AuthStrategy, to request: inout URLRequest) {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
376 |         switch strategy {
377 |         case .bearer(let token):
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:396:39: error: cannot find type 'URLRequest' in scope
394 |     ///   - response: The response that came back.
395 |     ///   - data: The raw response body (only its byte count is logged).
396 |     private func logIfNeeded(request: URLRequest, response: HTTPURLResponse, data: Data) {
    |                                       `- error: cannot find type 'URLRequest' in scope
397 |         switch config.logLevel {
398 |         case .none:
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:396:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
394 |     ///   - response: The response that came back.
395 |     ///   - data: The raw response body (only its byte count is logged).
396 |     private func logIfNeeded(request: URLRequest, response: HTTPURLResponse, data: Data) {
    |                                                             `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
397 |         switch config.logLevel {
398 |         case .none:
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/Nexio/Core/NexioRequest.swift:27:26: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |     }
26 |
27 |     init(urlSessionTask: URLSessionTask) {
   |                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         task = _TaskBox(urlSessionTask)
29 |     }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift:37:26: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | /// `URLSessionTask` is thread-safe for `cancel()` calls per Apple's docs.
36 | private final class _TaskBox: @unchecked Sendable {
37 |     private let wrapped: URLSessionTask
   |                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 |     init(_ task: URLSessionTask) { wrapped = task }
39 |     func cancel() { wrapped.cancel() }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift:38:18: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | private final class _TaskBox: @unchecked Sendable {
37 |     private let wrapped: URLSessionTask
38 |     init(_ task: URLSessionTask) { wrapped = task }
   |                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |     func cancel() { wrapped.cancel() }
40 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:22:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 |     /// The server returned HTTP 401.
22 |     case unauthorized(HTTPURLResponse)
   |                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 |     /// The server returned HTTP 404.
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/Nexio/Errors/NexioError.swift:25:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
23 |
24 |     /// The server returned HTTP 404.
25 |     case notFound(HTTPURLResponse)
   |                   `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 |     /// The server returned a 5xx or other unexpected status code.
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/Nexio/Errors/NexioError.swift:22:10: error: associated value 'unauthorized' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'
20 |
21 |     /// The server returned HTTP 401.
22 |     case unauthorized(HTTPURLResponse)
   |          `- error: associated value 'unauthorized' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'
23 |
24 |     /// The server returned HTTP 404.
/host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift:25:10: error: associated value 'notFound' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'
23 |
24 |     /// The server returned HTTP 404.
25 |     case notFound(HTTPURLResponse)
   |          `- error: associated value 'notFound' of 'Sendable'-conforming enum 'NexioError' has non-Sendable type 'AnyObject'
26 |
27 |     /// The server returned a 5xx or other unexpected status code.
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:40:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     // MARK: - Private State
 39 |
 40 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |
 42 |     // MARK: - Init
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:50:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 48 |     ///
 49 |     /// - Parameter session: Override for testing. Pass `nil` to use the default.
 50 |     public init(session: URLSession? = nil) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 51 |         if let session {
 52 |             self.session = session
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:74:50: error: cannot find type 'PlatformImage' in scope
 72 |     /// - Throws: ``NexioError`` on network failure; a generic error if the
 73 |     ///   data cannot be decoded as an image.
 74 |     public func load(_ url: URL) async throws -> PlatformImage {
    |                                                  `- error: cannot find type 'PlatformImage' in scope
 75 |         let request = URLRequest(url: url)
 76 |         let (data, response) = try await session.nexioData(for: request)
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:54:25: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |             self.session = session
 53 |         } else {
 54 |             let cache = URLCache(
    |                         `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |                 memoryCapacity: 50 * 1024 * 1024,   // 50 MB
 56 |                 diskCapacity: 200 * 1024 * 1024,    // 200 MB
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:59:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 57 |                 diskPath: "com.nexio.imagecache"
 58 |             )
 59 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 60 |             config.urlCache = cache
 61 |             config.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:61:42: error: cannot infer contextual base in reference to member 'returnCacheDataElseLoad'
 59 |             let config = URLSessionConfiguration.default
 60 |             config.urlCache = cache
 61 |             config.requestCachePolicy = .returnCacheDataElseLoad
    |                                          `- error: cannot infer contextual base in reference to member 'returnCacheDataElseLoad'
 62 |             self.session = URLSession(configuration: config)
 63 |         }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:62:28: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 60 |             config.urlCache = cache
 61 |             config.requestCachePolicy = .returnCacheDataElseLoad
 62 |             self.session = URLSession(configuration: config)
    |                            `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 63 |         }
 64 |     }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:62:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 60 |             config.urlCache = cache
 61 |             config.requestCachePolicy = .returnCacheDataElseLoad
 62 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 63 |         }
 64 |     }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift:34:52: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     ///   - session: The session that will execute the request.
33 |     /// - Returns: The (possibly mutated) request.
34 |     func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest
   |                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 |
36 |     /// Called after a request fails.
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:92:87: error: cannot find type 'URLRequest' in scope
 90 |     }
 91 |
 92 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
 93 |         request // pass-through
 94 |     }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:92:34: error: cannot find type 'URLRequest' in scope
 90 |     }
 91 |
 92 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
    |                                  `- error: cannot find type 'URLRequest' in scope
 93 |         request // pass-through
 94 |     }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:92:59: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 90 |     }
 91 |
 92 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
    |                                                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |         request // pass-through
 94 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:97:20: error: cannot find type 'URLRequest' in scope
 95 |
 96 |     public func retry(
 97 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
 98 |         dueTo error: NexioError,
 99 |         attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Internal/HTTPURLResponseExtensions.swift:6:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 4 | import Foundation
 5 |
 6 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 7 |
 8 |     /// Returns `true` when the status code is in the 200–299 range.
/host/spi-builder-workspace/Sources/Nexio/Internal/URLSessionExtensions.swift:6:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 4 | import Foundation
 5 |
 6 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
 7 |
 8 |     /// Performs a data task and maps common `NSError` codes to ``NexioError``.
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift /host/spi-builder-workspace/Sources/Nexio/Auth/AuthStrategy.swift /host/spi-builder-workspace/Sources/Nexio/Core/Endpoint.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioConfig.swift /host/spi-builder-workspace/Sources/Nexio/Core/NexioRequest.swift /host/spi-builder-workspace/Sources/Nexio/Errors/NexioError.swift /host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift /host/spi-builder-workspace/Sources/Nexio/Image/NexioImage.swift /host/spi-builder-workspace/Sources/Nexio/Interceptor/Interceptor.swift /host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift /host/spi-builder-workspace/Sources/Nexio/Internal/HTTPURLResponseExtensions.swift /host/spi-builder-workspace/Sources/Nexio/Internal/URLSessionExtensions.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Nexio -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Nexio_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Modules/Nexio.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Modules/Nexio.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Nexio-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Nexio-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Nexio-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Nexio.build/Debug-webassembly-wasm32/Nexio-t.build/Objects-normal/wasm32/Modules/Nexio.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm