Build Information
Failed to build GroqSwift, reference 0.1.1 (8a08b6), with Swift 6.3 for Wasm on 15 Apr 2026 19:33:28 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/groq_swift.git
Reference: 0.1.1
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/engali94/groq_swift
* tag 0.1.1 -> FETCH_HEAD
HEAD is now at 8a08b68 Disable SwiftLint plugin on Linux platforms
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
8a08b68e10e221d446842d953aa1e21f3fa3763a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at 0.1.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/engali94/groq_swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/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.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/lukepistrol/SwiftLintPlugin
[1/379] Fetching swiftlintplugin
[180/2656] Fetching swiftlintplugin, swift-docc-plugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.46s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.47s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (3.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3672] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.30s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.63.1 (0.61s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/lukepistrol/SwiftLintPlugin
Working copy of https://github.com/lukepistrol/SwiftLintPlugin resolved at 0.63.1
Downloading binary artifact https://github.com/realm/SwiftLint/releases/download/0.63.1/SwiftLintBinary.artifactbundle.zip
[930/72518195] Downloading https://github.com/realm/SwiftLint/releases/download/0.63.1/SwiftLintBinary.artifactbundle.zip
Downloaded https://github.com/realm/SwiftLint/releases/download/0.63.1/SwiftLintBinary.artifactbundle.zip (7.38s)
[1/1] Compiling plugin SwiftLintFix
[2/2] Compiling plugin SwiftLint
[3/3] Compiling plugin Swift-DocC Preview
[4/4] Compiling plugin Swift-DocC
Building for debugging...
[4/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/11] Emitting module GroqSwift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: value of type '_' expected to be instance of class or class-constrained type
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 | // swiftlint:enable function_body_length
175 |
176 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
177 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 | urlComponents?.path += "/chat/completions"
[8/11] Compiling GroqSwift Models.swift
[9/11] Compiling GroqSwift GroqClient.swift
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:19:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let apiKey: String
18 | private let host: URL
19 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |
21 | /// Initialize a new GroqClient
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/GroqSwift/GroqClient.swift:29:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 | ) {
31 | self.apiKey = apiKey
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/GroqSwift/GroqClient.swift:29:32: error: value of type '_' expected to be instance of class or class-constrained type
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: value of type '_' expected to be instance of class or class-constrained type
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:29:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 | apiKey: String,
28 | host: URL = GroqClient.defaultHost,
29 | session: URLSession = .shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 | ) {
31 | self.apiKey = apiKey
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:176:87: error: cannot find type 'URLRequest' in scope
174 | // swiftlint:enable function_body_length
175 |
176 | private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
177 | var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
178 | urlComponents?.path += "/chat/completions"
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:55:23: error: cannot find 'URLRequest' in scope
53 | }
54 |
55 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
56 | request.httpMethod = method
57 | request.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:64:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
62 | }
63 |
64 | let (data, response) = try await session.data(for: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
65 |
66 | guard let httpResponse = response as? HTTPURLResponse else {
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:111:38: error: cannot find 'URLRequest' in scope
109 | }
110 |
111 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
112 | urlRequest.httpMethod = "POST"
113 | urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:184:26: error: cannot find 'URLRequest' in scope
182 | }
183 |
184 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
185 | urlRequest.httpMethod = "POST"
186 | urlRequest.allHTTPHeaderFields = headers()
[10/11] Compiling GroqSwift Errors.swift
[11/11] Compiling GroqSwift Message.swift
BUILD FAILURE 6.3 wasm