Build Information
Failed to build JityApiClient, reference 1.0.2 (7d476b), with Swift 6.1 for Wasm on 14 May 2026 06:33:34 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Vritti-ai/jity-api-client-swift.git
Reference: 1.0.2
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/Vritti-ai/jity-api-client-swift
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at 7d476bc added license mit
Cloned https://github.com/Vritti-ai/jity-api-client-swift.git
Revision (git rev-parse @):
7d476bc8e2c236137adc49d5c3504871da44e179
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Vritti-ai/jity-api-client-swift.git at 1.0.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/Vritti-ai/jity-api-client-swift.git
https://github.com/Vritti-ai/jity-api-client-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling JityApiClient JityApiTypes.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module JityApiClient
/host/spi-builder-workspace/Sources/JityApiClient/JityApiError.swift:5:10: warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
3 | public enum JityApiError: Error, LocalizedError {
4 | case missingCredentials
5 | case httpError(statusCode: Int, details: Any?)
| `- warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
6 | case decodingError(Error)
7 | case networkError(Error)
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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
[5/6] Compiling JityApiClient JityContentApi.swift
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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/JityApiClient/JityContentApi.swift:19:25: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | self.baseURL = url
18 | self.enableLogging = options.enableLogging
19 | self.session = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |
21 | let credentials = "\(options.clientId):\(options.apiKey)"
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:35:23: error: cannot find 'URLRequest' in scope
33 | guard let url = components.url else { throw JityApiError.unknown }
34 |
35 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
36 | request.httpMethod = "GET"
37 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:45:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let data: Data
45 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | do {
47 | (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/JityApiClient/JityContentApi.swift:47:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let response: URLResponse
46 | do {
47 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | } catch {
49 | if enableLogging { print("❌ [Network Error] \(error)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
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/JityApiClient/JityContentApi.swift:55:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | if let http = response as? HTTPURLResponse {
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | }
57 | guard (200...299).contains(http.statusCode) else {
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:57:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | print("✅ [Response] \(http.statusCode) \(url)")
56 | }
57 | guard (200...299).contains(http.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:59:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
57 | guard (200...299).contains(http.statusCode) else {
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
61 | }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:60:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | }
62 | }
[6/6] Compiling JityApiClient JityApiError.swift
/host/spi-builder-workspace/Sources/JityApiClient/JityApiError.swift:5:10: warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
3 | public enum JityApiError: Error, LocalizedError {
4 | case missingCredentials
5 | case httpError(statusCode: Int, details: Any?)
| `- warning: associated value 'httpError(statusCode:details:)' of 'Sendable'-conforming enum 'JityApiError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
6 | case decodingError(Error)
7 | case networkError(Error)
swift-build: /home/build-user/llbuild/lib/Core/SQLiteBuildDB.cpp:703: virtual void (anonymous namespace)::SQLiteBuildDB::buildComplete(): Assertion `result == SQLITE_OK' failed.
*** Signal 6: Backtracing from 0x7f24f34d99fc... done ***
*** Program crashed: Aborted at 0x0000000000000001 ***
Thread 0 "swift-build":
0 0x00007f24f348580a <unknown> in libc.so.6
Thread 1:
0 0x00007f24f3568eae <unknown> in libc.so.6
Thread 2 crashed:
0 0x00007f24f34d99fc <unknown> in libc.so.6
Thread 3:
0 0x00007f24f34d4117 <unknown> in libc.so.6
Registers:
rax 0x0000000000000000 0
rdx 0x00007f24ed04f640 40 f6 04 ed 24 7f 00 00 20 27 00 e8 24 7f 00 00 @ö·í$··· '·è$···
rcx 0x00007f24f34d99fc 41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00 A·ÅA÷Ý=·ðÿÿ¸····
rbx 0x0000000000000006 6
rsi 0x0000000000000001 1
rdi 0x000000000000000a 10
rbp 0x000000000000000a 10
rsp 0x00007f24ed04e310 bc cd 05 d0 24 7f 00 00 90 cc 05 d0 24 7f 00 00 ¼Í·Ð$····Ì·Ð$···
r8 0x00007f24ed04e3e0 20 00 00 00 00 00 00 00 a0 e6 65 f3 24 7f 00 00 ······· æeó$···
r9 0x0000000000000000 0
r10 0x0000000000000008 8
r11 0x0000000000000246 582
r12 0x0000000000000006 6
r13 0x0000000000000016 22
r14 0x000055b3f6908554 72 65 73 75 6c 74 20 3d 3d 20 53 51 4c 49 54 45 result == SQLITE
r15 0x00007f24d0012ee0 20 2b 84 f6 b3 55 00 00 08 f1 02 d0 24 7f 00 00 +·ö³U···ñ·Ð$···
rip 0x00007f24f34d99fc 41 89 c5 41 f7 dd 3d 00 f0 ff ff b8 00 00 00 00 A·ÅA÷Ý=·ðÿÿ¸····
rflags 0x0000000000000246 ZF PF
cs 0x0033 fs 0x0000 gs 0x0000
Images (71 omitted):
0x00007f24f3443000–0x00007f24f35ff401 095c7ba148aeca81668091f718047078d57efddb libc.so.6 /usr/lib/x86_64-linux-gnu/libc.so.6
Backtrace took 0.02s
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] Compiling JityApiClient JityContentApi.swift
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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/JityApiClient/JityContentApi.swift:19:25: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | self.baseURL = url
18 | self.enableLogging = options.enableLogging
19 | self.session = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |
21 | let credentials = "\(options.clientId):\(options.apiKey)"
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:35:23: error: cannot find 'URLRequest' in scope
33 | guard let url = components.url else { throw JityApiError.unknown }
34 |
35 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
36 | request.httpMethod = "GET"
37 | request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:45:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
43 |
44 | let data: Data
45 | let response: URLResponse
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
46 | do {
47 | (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/JityApiClient/JityContentApi.swift:47:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
45 | let response: URLResponse
46 | do {
47 | (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
48 | } catch {
49 | if enableLogging { print("❌ [Network Error] \(error)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:32: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:53:36: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | }
52 |
53 | if let http = response as? HTTPURLResponse {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
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/JityApiClient/JityContentApi.swift:55:46: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
53 | if let http = response as? HTTPURLResponse {
54 | if enableLogging {
55 | print("✅ [Response] \(http.statusCode) \(url)")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
56 | }
57 | guard (200...299).contains(http.statusCode) else {
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:57:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 | print("✅ [Response] \(http.statusCode) \(url)")
56 | }
57 | guard (200...299).contains(http.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:59:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
57 | guard (200...299).contains(http.statusCode) else {
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
61 | }
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:60:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
58 | let details = try? JSONSerialization.jsonObject(with: data)
59 | if enableLogging { print("❌ [Error Response] \(http.statusCode)") }
60 | throw JityApiError.httpError(statusCode: http.statusCode, details: details)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
61 | }
62 | }
[3/5] Compiling JityApiClient JityApiError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module JityApiClient
/host/spi-builder-workspace/Sources/JityApiClient/JityContentApi.swift:7:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 | private let authHeader: String
6 | private let enableLogging: Bool
7 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 |
9 | public init(options: JityContentApiOptions) throws {
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
[5/5] Compiling JityApiClient JityApiTypes.swift
BUILD FAILURE 6.1 wasm