The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NebiusForFoundationModels, reference main (87c7e1), with Swift 6.3 for Wasm on 22 Oct 2026 13:15:17 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-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.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/csauvage/nebius-for-foundation-models.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/csauvage/nebius-for-foundation-models
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 87c7e1b Add Nebius and Tavily integrations for Foundation Models
Cloned https://github.com/csauvage/nebius-for-foundation-models.git
Revision (git rev-parse @):
87c7e1b1b2b2ba5a4b025a601063c3eccaaecb9f
SUCCESS checkout https://github.com/csauvage/nebius-for-foundation-models.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/csauvage/nebius-for-foundation-models.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.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:11aa8e4a9dbcd813ae44128d01e945c51d260b4dfda77b6bb7d997d0cc236164
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/29] Write sources
[9/29] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/44] Emitting module NebiusAPI
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:17:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |   public let endpointURL: URL
 16 |   public let headers: [String: String]
 17 |   let session: URLSession
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |   // Set only by the explicit direct-key initializer. Arbitrary headers (including
 19 |   // relay tokens) must never authorize control-plane operations.
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/NebiusAPI/NebiusClient.swift:29:59: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     )
 28 |   #endif
 29 |   public init(directAPIKey: String, sessionConfiguration: URLSessionConfiguration? = nil) throws {
    |                                                           `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     let key = directAPIKey.trimmingCharacters(in: .whitespacesAndNewlines)
 31 |     guard !key.isEmpty,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:46:27: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     chatCompletionsPath: String? = nil,
 45 |     headers: [String: String],
 46 |     sessionConfiguration: URLSessionConfiguration? = nil
    |                           `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |   ) throws {
 48 |     guard baseURL.scheme?.lowercased() == "https", baseURL.host != nil else {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:111:74: error: cannot find type 'URLRequest' in scope
109 |   }
110 |
111 |   public func makeURLRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
112 |     var urlRequest = URLRequest(url: endpointURL)
113 |     urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:152:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |   }
151 |
152 |   private static func validate(response: URLResponse, body: Data?) throws {
    |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     guard let response = response as? HTTPURLResponse else {
154 |       throw NebiusTransportError.invalidStreamData("Missing HTTP response")
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/NebiusAPI/NebiusClient.swift:169:59: error: cannot find type 'URLSessionTaskDelegate' in scope
167 | /// origin. Same-origin redirects remain available for infrastructure-level
168 | /// canonicalization.
169 | private final class SameOriginRedirectDelegate: NSObject, URLSessionTaskDelegate,
    |                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
170 |   @unchecked Sendable
171 | {
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:176:25: error: cannot find type 'URLRequest' in scope
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
177 |     completionHandler: @escaping (URLRequest?) -> Void
178 |   ) {
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:177:35: error: cannot find type 'URLRequest' in scope
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
177 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
178 |   ) {
179 |     guard let source = task.currentRequest?.url ?? task.originalRequest?.url,
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:173:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | {
172 |   func urlSession(
173 |     _ session: URLSession,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
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/NebiusAPI/NebiusClient.swift:174:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |   func urlSession(
173 |     _ session: URLSession,
174 |     task: URLSessionTask,
    |           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
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/NebiusAPI/NebiusClient.swift:175:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     _ session: URLSession,
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     newRequest request: URLRequest,
177 |     completionHandler: @escaping (URLRequest?) -> Void
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
[12/44] Compiling NebiusAPI NebiusClient+DedicatedEndpoints.swift
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient+DedicatedEndpoints.swift:80:19: error: cannot find 'URLRequest' in scope
 78 |     var url = URL(string: "https://api.tokenfactory.nebius.com/v0/dedicated_endpoints")!
 79 |     if let suffix { url.appendPathComponent(suffix) }
 80 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 81 |     // Template revalidation and manual refresh must reach the control plane.
 82 |     request.cachePolicy = .reloadIgnoringLocalCacheData
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient+DedicatedEndpoints.swift:82:28: error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 80 |     var request = URLRequest(url: url)
 81 |     // Template revalidation and manual refresh must reach the control plane.
 82 |     request.cachePolicy = .reloadIgnoringLocalCacheData
    |                            `- error: cannot infer contextual base in reference to member 'reloadIgnoringLocalCacheData'
 83 |     request.httpMethod = method
 84 |     request.timeoutInterval = 60
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient+DedicatedEndpoints.swift:90:46: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 88 |     if body != nil { request.setValue("application/json", forHTTPHeaderField: "Content-Type") }
 89 |     // Deliberately does not use baseURL or headers: these can contain proxy credentials.
 90 |     let (data, response) = try await session.data(for: request)
    |                                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
 91 |     try Task.checkCancellation()
 92 |     guard let response = response as? HTTPURLResponse else {
[13/44] Compiling NebiusAPI SSEParser.swift
[14/44] Compiling NebiusAPI NebiusClient.swift
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:17:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 |   public let endpointURL: URL
 16 |   public let headers: [String: String]
 17 |   let session: URLSession
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |   // Set only by the explicit direct-key initializer. Arbitrary headers (including
 19 |   // relay tokens) must never authorize control-plane operations.
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/NebiusAPI/NebiusClient.swift:29:59: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     )
 28 |   #endif
 29 |   public init(directAPIKey: String, sessionConfiguration: URLSessionConfiguration? = nil) throws {
    |                                                           `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     let key = directAPIKey.trimmingCharacters(in: .whitespacesAndNewlines)
 31 |     guard !key.isEmpty,
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:46:27: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 44 |     chatCompletionsPath: String? = nil,
 45 |     headers: [String: String],
 46 |     sessionConfiguration: URLSessionConfiguration? = nil
    |                           `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 47 |   ) throws {
 48 |     guard baseURL.scheme?.lowercased() == "https", baseURL.host != nil else {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:111:74: error: cannot find type 'URLRequest' in scope
109 |   }
110 |
111 |   public func makeURLRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
    |                                                                          `- error: cannot find type 'URLRequest' in scope
112 |     var urlRequest = URLRequest(url: endpointURL)
113 |     urlRequest.httpMethod = "POST"
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:152:42: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
150 |   }
151 |
152 |   private static func validate(response: URLResponse, body: Data?) throws {
    |                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
153 |     guard let response = response as? HTTPURLResponse else {
154 |       throw NebiusTransportError.invalidStreamData("Missing HTTP response")
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/NebiusAPI/NebiusClient.swift:169:59: error: cannot find type 'URLSessionTaskDelegate' in scope
167 | /// origin. Same-origin redirects remain available for infrastructure-level
168 | /// canonicalization.
169 | private final class SameOriginRedirectDelegate: NSObject, URLSessionTaskDelegate,
    |                                                           `- error: cannot find type 'URLSessionTaskDelegate' in scope
170 |   @unchecked Sendable
171 | {
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:176:25: error: cannot find type 'URLRequest' in scope
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
    |                         `- error: cannot find type 'URLRequest' in scope
177 |     completionHandler: @escaping (URLRequest?) -> Void
178 |   ) {
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:177:35: error: cannot find type 'URLRequest' in scope
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
177 |     completionHandler: @escaping (URLRequest?) -> Void
    |                                   `- error: cannot find type 'URLRequest' in scope
178 |   ) {
179 |     guard let source = task.currentRequest?.url ?? task.originalRequest?.url,
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:173:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 | {
172 |   func urlSession(
173 |     _ session: URLSession,
    |                `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
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/NebiusAPI/NebiusClient.swift:174:11: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |   func urlSession(
173 |     _ session: URLSession,
174 |     task: URLSessionTask,
    |           `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
176 |     newRequest request: URLRequest,
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/NebiusAPI/NebiusClient.swift:175:42: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     _ session: URLSession,
174 |     task: URLSessionTask,
175 |     willPerformHTTPRedirection response: HTTPURLResponse,
    |                                          `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
176 |     newRequest request: URLRequest,
177 |     completionHandler: @escaping (URLRequest?) -> Void
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/NebiusAPI/NebiusClient.swift:56:50: error: reference to member 'ephemeral' cannot be resolved without a contextual type
 54 |     self.baseURL = baseURL
 55 |     self.headers = headers
 56 |     let configuration = sessionConfiguration ?? .ephemeral
    |                                                  `- error: reference to member 'ephemeral' cannot be resolved without a contextual type
 57 |     self.session = URLSession(
 58 |       configuration: configuration,
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:57:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |     self.headers = headers
 56 |     let configuration = sessionConfiguration ?? .ephemeral
 57 |     self.session = URLSession(
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 58 |       configuration: configuration,
 59 |       delegate: SameOriginRedirectDelegate(),
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:60:22: error: 'nil' requires a contextual type
 58 |       configuration: configuration,
 59 |       delegate: SameOriginRedirectDelegate(),
 60 |       delegateQueue: nil
    |                      `- error: 'nil' requires a contextual type
 61 |     )
 62 |   }
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:112:22: error: cannot find 'URLRequest' in scope
110 |
111 |   public func makeURLRequest(_ request: ChatCompletionRequest) throws -> URLRequest {
112 |     var urlRequest = URLRequest(url: endpointURL)
    |                      `- error: cannot find 'URLRequest' in scope
113 |     urlRequest.httpMethod = "POST"
114 |
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:153:35: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
151 |
152 |   private static func validate(response: URLResponse, body: Data?) throws {
153 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
154 |       throw NebiusTransportError.invalidStreamData("Missing HTTP response")
155 |     }
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:153:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |
152 |   private static func validate(response: URLResponse, body: Data?) throws {
153 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 |       throw NebiusTransportError.invalidStreamData("Missing HTTP response")
155 |     }
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/NebiusAPI/NebiusClient.swift:156:20: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
154 |       throw NebiusTransportError.invalidStreamData("Missing HTTP response")
155 |     }
156 |     guard response.statusCode == 200 else {
    |                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
157 |       let body = body ?? Data()
158 |       if let envelope = try? JSONDecoder().decode(ErrorEnvelope.self, from: body) {
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:161:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 |         throw envelope.error
160 |       }
161 |       throw NebiusTransportError.httpError(statusCode: response.statusCode, body: body)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 |     }
163 |   }
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:179:29: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
177 |     completionHandler: @escaping (URLRequest?) -> Void
178 |   ) {
179 |     guard let source = task.currentRequest?.url ?? task.originalRequest?.url,
    |                             `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'currentRequest'
180 |       let destination = request.url,
181 |       source.scheme?.caseInsensitiveCompare(destination.scheme ?? "") == .orderedSame,
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:179:57: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
177 |     completionHandler: @escaping (URLRequest?) -> Void
178 |   ) {
179 |     guard let source = task.currentRequest?.url ?? task.originalRequest?.url,
    |                                                         `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
180 |       let destination = request.url,
181 |       source.scheme?.caseInsensitiveCompare(destination.scheme ?? "") == .orderedSame,
/host/spi-builder-workspace/Sources/NebiusAPI/NebiusClient.swift:185:25: error: 'nil' requires a contextual type
183 |       effectivePort(source) == effectivePort(destination)
184 |     else {
185 |       completionHandler(nil)
    |                         `- error: 'nil' requires a contextual type
186 |       return
187 |     }
[15/44] Compiling UpdateNebiusModelCatalog main.swift
/host/spi-builder-workspace/Tools/UpdateNebiusModelCatalog/main.swift:184:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
182 |   private static func catalogData(input: URL?) async throws -> Data {
183 |     if let input { return try Data(contentsOf: input) }
184 |     let (data, response) = try await URLSession.shared.data(from: publicCatalogURL)
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
185 |     guard let response = response as? HTTPURLResponse, response.statusCode == 200 else {
186 |       throw GeneratorError.invalidResponse((response as? HTTPURLResponse)?.statusCode ?? -1)
/host/spi-builder-workspace/Tools/UpdateNebiusModelCatalog/main.swift:186:76: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 |     let (data, response) = try await URLSession.shared.data(from: publicCatalogURL)
185 |     guard let response = response as? HTTPURLResponse, response.statusCode == 200 else {
186 |       throw GeneratorError.invalidResponse((response as? HTTPURLResponse)?.statusCode ?? -1)
    |                                                                            `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |     }
188 |     return data
[16/44] Emitting module UpdateNebiusModelCatalog
[17/44] Compiling NebiusAPI JSONValue.swift
BUILD FAILURE 6.3 wasm