The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Jobvetta, reference 1.0.0 (a252cb), with Swift 6.3 for Wasm on 13 Aug 2026 22:52:59 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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.0.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jobvetta/jobvetta-swift.git
Reference: 1.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/jobvetta/jobvetta-swift
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a252cb1 Publish the Jobvetta Swift SDK
Cloned https://github.com/jobvetta/jobvetta-swift.git
Revision (git rev-parse @):
a252cb182942e69ec34b0d7cd3c6169c46b98e9d
SUCCESS checkout https://github.com/jobvetta/jobvetta-swift.git at 1.0.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/jobvetta/jobvetta-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-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:e92e38b97676c18adb57b57429ddfb766786102cb50cb918e0d9e8055d05b35d
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/4] Emitting module Jobvetta
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:171:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     private let apiKey: String
170 |     private let baseURL: URL
171 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |
173 |     public 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/Jobvetta/Jobvetta.swift:176:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
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/Jobvetta/Jobvetta.swift:176:32: error: value of type '_' expected to be instance of class or class-constrained type
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:176:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
[4/4] Compiling Jobvetta Jobvetta.swift
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:171:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |     private let apiKey: String
170 |     private let baseURL: URL
171 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |
173 |     public 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/Jobvetta/Jobvetta.swift:176:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
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/Jobvetta/Jobvetta.swift:176:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:176:32: error: value of type '_' expected to be instance of class or class-constrained type
174 |         apiKey: String,
175 |         baseURL: URL = jobvettaDefaultBaseURL,
176 |         session: URLSession = .shared
    |                                `- error: value of type '_' expected to be instance of class or class-constrained type
177 |     ) throws {
178 |         let normalizedKey = apiKey.trimmingCharacters(in: .whitespacesAndNewlines)
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:231:23: error: cannot find 'URLRequest' in scope
229 |
230 |     private func get<T: Decodable>(_ url: URL) async throws -> T {
231 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
232 |         request.httpMethod = "GET"
233 |         request.timeoutInterval = 30
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:239:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
237 |
238 |         let data: Data
239 |         let response: URLResponse
    |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
240 |         do {
241 |             (data, response) = try await session.data(for: request)
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/Jobvetta/Jobvetta.swift:241:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
239 |         let response: URLResponse
240 |         do {
241 |             (data, response) = try await session.data(for: request)
    |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
242 |         } catch {
243 |             throw JobvettaError.request(error.localizedDescription)
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:246:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
244 |         }
245 |
246 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
247 |             throw JobvettaError.request("received a non-HTTP response")
248 |         }
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:246:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 |         }
245 |
246 |         guard let httpResponse = response as? HTTPURLResponse else {
    |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
247 |             throw JobvettaError.request("received a non-HTTP response")
248 |         }
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/Jobvetta/Jobvetta.swift:255:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
253 |             throw JobvettaError.emptyResponse
254 |         }
255 |         guard (200..<300).contains(httpResponse.statusCode) else {
    |                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 |             let message = ((try? JSONSerialization.jsonObject(with: data)) as? [String: Any])?["error"] as? String
257 |             throw JobvettaError.api(
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:258:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
256 |             let message = ((try? JSONSerialization.jsonObject(with: data)) as? [String: Any])?["error"] as? String
257 |             throw JobvettaError.api(
258 |                 status: httpResponse.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |                 message: message?.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty == false
260 |                     ? message!
/host/spi-builder-workspace/Sources/Jobvetta/Jobvetta.swift:261:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
259 |                 message: message?.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty == false
260 |                     ? message!
261 |                     : "Jobvetta request failed with status \(httpResponse.statusCode)",
    |                                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
262 |                 body: data
263 |             )
BUILD FAILURE 6.3 wasm