The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Nexio, reference 2.0.0 (aca814), with Swift 6.4 for Wasm on 23 Oct 2026 02:25:49 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ANSCoder/Nexio.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/ANSCoder/Nexio
 * tag               2.0.0      -> FETCH_HEAD
HEAD is now at aca8149 Fix request pipeline, authentication, cancellation, and URL handling (#4)
Cloned https://github.com/ANSCoder/Nexio.git
Revision (git rev-parse @):
aca8149127f8a05a7d1e2942d570fe184e061451
SUCCESS checkout https://github.com/ANSCoder/Nexio.git at 2.0.0
========================================
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-53886770-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:7a2e5502d3bb6640f9b2bbb1dadf9967024364ce9ed0ed0bd80cf1b699d193fd
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:87: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
   |                                                                                       `- error: cannot find type 'URLRequest' in scope
35 |         var mutableRequest = request
36 |         let strategy = await AuthResolution.$isResolving.withValue(true) {
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:34: error: cannot find type 'URLRequest' in scope
32 |     }
33 |
34 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
   |                                  `- error: cannot find type 'URLRequest' in scope
35 |         var mutableRequest = request
36 |         let strategy = await AuthResolution.$isResolving.withValue(true) {
/host/spi-builder-workspace/Sources/Nexio/Auth/AuthInterceptor.swift:34:59: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |     }
33 |
34 |     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.
35 |         var mutableRequest = request
36 |         let strategy = await AuthResolution.$isResolving.withValue(true) {
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:53:20: error: cannot find type 'URLRequest' in scope
51 |
52 |     public func retry(
53 |         _ request: URLRequest,
   |                    `- error: cannot find type 'URLRequest' in scope
54 |         dueTo error: NexioError,
55 |         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:42:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     private var retryPolicy: RetryPolicy = .none
 41 |     private var interceptors: [any Interceptor] = []
 42 |     private var session: URLSession = URLSession.shared
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 43 |     private let encoder: JSONEncoder = JSONEncoder()
 44 |
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:42:50: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 40 |     private var retryPolicy: RetryPolicy = .none
 41 |     private var interceptors: [any Interceptor] = []
 42 |     private var session: URLSession = URLSession.shared
    |                                                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 43 |     private let encoder: JSONEncoder = JSONEncoder()
 44 |
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:42:50: error: value of type '_' expected to be instance of class or class-constrained type
 40 |     private var retryPolicy: RetryPolicy = .none
 41 |     private var interceptors: [any Interceptor] = []
 42 |     private var session: URLSession = URLSession.shared
    |                                                  `- error: value of type '_' expected to be instance of class or class-constrained type
 43 |     private let encoder: JSONEncoder = JSONEncoder()
 44 |
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:246:20: error: cannot find type 'URLRequest' in scope
244 |     ///   match the response, or any status-mapped ``NexioError``.
245 |     private func perform<T: Decodable & Sendable>(
246 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
247 |         skipDynamicAuth: Bool
248 |     ) async throws -> T {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:271:21: error: cannot find type 'URLRequest' in scope
269 |     ///   transport ``NexioError`` from the final attempt.
270 |     private func send(
271 |         _ original: URLRequest,
    |                     `- error: cannot find type 'URLRequest' in scope
272 |         skipDynamicAuth: Bool
273 |     ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:273:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |         _ original: URLRequest,
272 |         skipDynamicAuth: Bool
273 |     ) async throws -> (Data, HTTPURLResponse) {
    |                              `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
274 |         // A token refresh issued from inside an AuthInterceptor provider must not
275 |         // go through that same interceptor again, or it would recurse.
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:315:86: error: cannot find type 'URLRequest' in scope
313 |     ///   - skipDynamicAuth: Whether to skip ``AuthInterceptor``.
314 |     /// - Returns: The adapted request.
315 |     private func adapt(_ request: URLRequest, skipDynamicAuth: Bool) async throws -> URLRequest {
    |                                                                                      `- error: cannot find type 'URLRequest' in scope
316 |         var adapted = request
317 |         for interceptor in interceptors {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:315:35: error: cannot find type 'URLRequest' in scope
313 |     ///   - skipDynamicAuth: Whether to skip ``AuthInterceptor``.
314 |     /// - Returns: The adapted request.
315 |     private func adapt(_ request: URLRequest, skipDynamicAuth: Bool) async throws -> URLRequest {
    |                                   `- error: cannot find type 'URLRequest' in scope
316 |         var adapted = request
317 |         for interceptor in interceptors {
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:336:20: error: cannot find type 'URLRequest' in scope
334 |     /// - Returns: `true` to run another attempt.
335 |     private func shouldRetry(
336 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
337 |         dueTo error: NexioError,
338 |         attempt: Int
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:368:17: error: cannot find type 'URLRequest' in scope
366 |         headers: [String: String],
367 |         body: Body?
368 |     ) throws -> URLRequest {
    |                 `- error: cannot find type 'URLRequest' in scope
369 |         guard let resolved = resolve(url) else {
370 |             throw NexioError.invalidURL(url)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:394:71: error: cannot find type 'URLRequest' in scope
392 |     /// - Returns: A populated `URLRequest`, ready for the interceptor pipeline.
393 |     /// - Throws: ``NexioError/invalidURL(_:)`` if the composed URL is malformed.
394 |     private func buildRequest(from endpoint: some Endpoint) throws -> URLRequest {
    |                                                                       `- error: cannot find type 'URLRequest' in scope
395 |         var components = URLComponents(
396 |             url: endpoint.baseURL.appendingPathComponent(endpoint.path),
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:461:56: error: cannot find type 'URLRequest' in scope
459 |     ///
460 |     /// - Parameter request: The request to mutate in place.
461 |     private func applyDefaultHeaders(to request: inout URLRequest) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
462 |         config.defaultHeaders.forEach { request.setValue($1, forHTTPHeaderField: $0) }
463 |     }
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:473:61: error: cannot find type 'URLRequest' in scope
471 |     ///
472 |     /// - Parameter request: The request to clean, in place.
473 |     private func stripCredentialHeaders(from request: inout URLRequest) {
    |                                                             `- error: cannot find type 'URLRequest' in scope
474 |         for name in Self.credentialHeaderNames {
475 |             request.setValue(nil, forHTTPHeaderField: name)
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:485:72: error: cannot find type 'URLRequest' in scope
483 |     ///   - strategy: The strategy to apply, global or per-endpoint.
484 |     ///   - request: The request to mutate in place.
485 |     private func applyAuth(_ strategy: AuthStrategy, to request: inout URLRequest) {
    |                                                                        `- error: cannot find type 'URLRequest' in scope
486 |         switch strategy {
487 |         case .bearer(let token):
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:506:39: error: cannot find type 'URLRequest' in scope
504 |     ///   - response: The response that came back.
505 |     ///   - data: The raw response body (only its byte count is logged).
506 |     private func logIfNeeded(request: URLRequest, response: HTTPURLResponse, data: Data) {
    |                                       `- error: cannot find type 'URLRequest' in scope
507 |         switch config.logLevel {
508 |         case .none:
/host/spi-builder-workspace/Sources/Nexio/Core/NexioClient.swift:506:61: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
504 |     ///   - response: The response that came back.
505 |     ///   - data: The raw response body (only its byte count is logged).
506 |     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.
507 |         switch config.logLevel {
508 |         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:30:26: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |     }
29 |
30 |     init(urlSessionTask: URLSessionTask) {
   |                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |         task = _TaskBox(urlSessionTask)
32 |     }
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:40:26: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
38 | /// `URLSessionTask` is thread-safe for `cancel()` calls per Apple's docs.
39 | private final class _TaskBox: @unchecked Sendable {
40 |     private let wrapped: URLSessionTask
   |                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |     init(_ task: URLSessionTask) { wrapped = task }
42 |     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:41:18: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 | private final class _TaskBox: @unchecked Sendable {
40 |     private let wrapped: URLSessionTask
41 |     init(_ task: URLSessionTask) { wrapped = task }
   |                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 |     func cancel() { wrapped.cancel() }
43 | }
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:24:16: error: cannot find type 'PlatformImage' in scope
 22 | /// never mutated afterwards, so sharing the reference is safe.
 23 | private struct DecodedImage: @unchecked Sendable {
 24 |     let image: PlatformImage
    |                `- error: cannot find type 'PlatformImage' in scope
 25 | }
 26 |
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:51:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 49 |     // MARK: - Private State
 50 |
 51 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 52 |
 53 |     // 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:61:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 59 |     ///
 60 |     /// - Parameter session: Override for testing. Pass `nil` to use the default.
 61 |     public init(session: URLSession? = nil) {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 62 |         if let session {
 63 |             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:85:50: error: cannot find type 'PlatformImage' in scope
 83 |     /// - Throws: ``NexioError`` on network failure; a generic error if the
 84 |     ///   data cannot be decoded as an image.
 85 |     public func load(_ url: URL) async throws -> PlatformImage {
    |                                                  `- error: cannot find type 'PlatformImage' in scope
 86 |         let request = URLRequest(url: url)
 87 |         let (data, response) = try await session.nexioData(for: request)
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:65:25: error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 63 |             self.session = session
 64 |         } else {
 65 |             let cache = URLCache(
    |                         `- error: 'URLCache' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 66 |                 memoryCapacity: 50 * 1024 * 1024,   // 50 MB
 67 |                 diskCapacity: 200 * 1024 * 1024,    // 200 MB
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:70:50: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 68 |                 diskPath: "com.nexio.imagecache"
 69 |             )
 70 |             let config = URLSessionConfiguration.default
    |                                                  `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 71 |             config.urlCache = cache
 72 |             config.requestCachePolicy = .returnCacheDataElseLoad
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:72:42: error: cannot infer contextual base in reference to member 'returnCacheDataElseLoad'
 70 |             let config = URLSessionConfiguration.default
 71 |             config.urlCache = cache
 72 |             config.requestCachePolicy = .returnCacheDataElseLoad
    |                                          `- error: cannot infer contextual base in reference to member 'returnCacheDataElseLoad'
 73 |             self.session = URLSession(configuration: config)
 74 |         }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:73:28: error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 71 |             config.urlCache = cache
 72 |             config.requestCachePolicy = .returnCacheDataElseLoad
 73 |             self.session = URLSession(configuration: config)
    |                            `- error: value of type '_' expected to be an instance of a class or class-constrained type in assignment
 74 |         }
 75 |     }
/host/spi-builder-workspace/Sources/Nexio/Image/ImageLoader.swift:73:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 71 |             config.urlCache = cache
 72 |             config.requestCachePolicy = .returnCacheDataElseLoad
 73 |             self.session = URLSession(configuration: config)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 74 |         }
 75 |     }
/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:99:33: error: cannot find type 'URLRequest' in scope
 97 |     ///   - attempt: Zero-based attempt counter.
 98 |     /// - Returns: `true` to run another attempt.
 99 |     func shouldRetry(_ request: URLRequest, dueTo error: NexioError, attempt: Int) async -> Bool {
    |                                 `- error: cannot find type 'URLRequest' in scope
100 |         guard maxAttempts > 0, attempt < maxAttempts else { return false }
101 |         guard Self.isIdempotent(request), Self.isRetryable(error) else { return false }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:115:41: error: cannot find type 'URLRequest' in scope
113 |
114 |     /// Whether repeating `request` is safe. A missing method means GET.
115 |     static func isIdempotent(_ request: URLRequest) -> Bool {
    |                                         `- error: cannot find type 'URLRequest' in scope
116 |         let method = (request.httpMethod ?? "GET").uppercased()
117 |         return ["GET", "HEAD", "PUT", "DELETE", "OPTIONS"].contains(method)
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:87: error: cannot find type 'URLRequest' in scope
153 |     }
154 |
155 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
156 |         request // pass-through
157 |     }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:34: error: cannot find type 'URLRequest' in scope
153 |     }
154 |
155 |     public func adapt(_ request: URLRequest, for session: URLSession) async throws -> URLRequest {
    |                                  `- error: cannot find type 'URLRequest' in scope
156 |         request // pass-through
157 |     }
/host/spi-builder-workspace/Sources/Nexio/Interceptor/RetryInterceptor.swift:155:59: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     }
154 |
155 |     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.
156 |         request // pass-through
157 |     }
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:160:20: error: cannot find type 'URLRequest' in scope
158 |
159 |     public func retry(
160 |         _ request: URLRequest,
    |                    `- error: cannot find type 'URLRequest' in scope
161 |         dueTo error: NexioError,
162 |         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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.bu[26 / 35] Nexio
ild/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