The Swift Package Index logo.Swift Package Index

Build Information

Failed to build NebiusForFoundationModels, reference v1.0.0 (87c7e1), with Swift 6.2 for Wasm on 22 Oct 2026 13:11:31 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.2-latest swift build --swift-sdk swift-6.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: v1.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/csauvage/nebius-for-foundation-models
 * tag               v1.0.0     -> FETCH_HEAD
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 v1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
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-53886769-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:0563b842faffea9ddc6fe15fbd2051d02dff3ef29dc4b5bfe0a0910a084eee81
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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 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
[13/44] Emitting module UpdateNebiusModelCatalog
[14/44] Compiling NebiusAPI SSEParser.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/44] Compiling TavilyAPI TavilyJSONValue.swift
BUILD FAILURE 6.2 wasm