The Swift Package Index logo.Swift Package Index

Build Information

Failed to build GroqSwift, reference main (3e3e24), with Swift 6.3 for Wasm on 15 Apr 2026 19:34:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/engali94/groq_swift.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/engali94/groq_swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3e3e24a Refactor Dockerfile and update Linux URLSession extension
Cloned https://github.com/engali94/groq_swift.git
Revision (git rev-parse @):
3e3e24aadc0a89834f6511208517948d568966a5
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/engali94/groq_swift.git at main
========================================
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-2":/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
[1/2277] Fetching swift-docc-plugin
Fetching https://github.com/lukepistrol/SwiftLintPlugin
Fetched https://github.com/apple/swift-docc-plugin from cache (0.70s)
[1/379] Fetching swiftlintplugin
Fetched https://github.com/lukepistrol/SwiftLintPlugin from cache (0.33s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.4.6 (4.86s)
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.86s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.81s)
Computing version for https://github.com/lukepistrol/SwiftLintPlugin
Computed https://github.com/lukepistrol/SwiftLintPlugin at 0.63.1 (1.01s)
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
[902/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 (6.60s)
[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
[7/12] Compiling GroqSwift URLSession+Linux.swift
[8/12] Compiling GroqSwift Models.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/12] Compiling GroqSwift Errors.swift
[10/12] 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:254:87: error: cannot find type 'URLRequest' in scope
252 |     // swiftlint:enable function_body_length
253 |
254 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
255 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 |         urlComponents?.path += "/chat/completions"
[11/12] 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: 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: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:254:87: error: cannot find type 'URLRequest' in scope
252 |     // swiftlint:enable function_body_length
253 |
254 |     private func createURLRequest(for request: ChatCompletionRequest) async throws -> URLRequest {
    |                                                                                       `- error: cannot find type 'URLRequest' in scope
255 |         var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
256 |         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:193:38: error: cannot find 'URLRequest' in scope
191 |                     }
192 |
193 |                     var urlRequest = URLRequest(url: url)
    |                                      `- error: cannot find 'URLRequest' in scope
194 |                     urlRequest.httpMethod = "POST"
195 |                     urlRequest.allHTTPHeaderFields = headers()
/host/spi-builder-workspace/Sources/GroqSwift/GroqClient.swift:262:26: error: cannot find 'URLRequest' in scope
260 |         }
261 |
262 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
263 |         urlRequest.httpMethod = "POST"
264 |         urlRequest.allHTTPHeaderFields = headers()
[12/12] Compiling GroqSwift Message.swift
BUILD FAILURE 6.3 wasm