The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SmartLogs, reference main (817874), with Swift 6.2 for Linux on 3 Jan 2026 05:19:27 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alima-webdev/SmartLogs-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/alima-webdev/SmartLogs-Swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 8178742 Platform version change to 26
Cloned https://github.com/alima-webdev/SmartLogs-Swift.git
Revision (git rev-parse @):
81787420443874a37680b1d656dd3d05156f8dac
SUCCESS checkout https://github.com/alima-webdev/SmartLogs-Swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/alima-webdev/SmartLogs-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:e1f50347098d838026a020bb7d0f8bade3d7b84d6d497429b7cf821cdf4fc3d1
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-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/5] Compiling SmartLogs Utils.swift
[4/5] Emitting module SmartLogs
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:25:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 23 |
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
    |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 26 |     private let session: URLSession = .init(configuration: .default)
 27 |
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     // Heartbeat
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/SmartLogs/SmartLogs.swift:26:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 27 |
 28 |     // Heartbeat
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:26:61: error: cannot infer contextual base in reference to member 'default'
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 27 |
 28 |     // Heartbeat
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:80:44: error: cannot find type 'URLSessionWebSocketTask' in scope
 78 |
 79 |     // Listen for messages
 80 |     private func _handleMessage(_ message: URLSessionWebSocketTask.Message) {
    |                                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 81 |         do {
 82 |             var msg: [String: Sendable]?
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:172:41: error: cannot find type 'URLSessionWebSocketTask' in scope
170 |     // -- Open
171 |     public nonisolated func urlSession(
172 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask, didOpenWithProtocol _: String?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
173 |     ) {
174 |         Task {
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:172:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     // -- Open
171 |     public nonisolated func urlSession(
172 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask, didOpenWithProtocol _: String?
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) {
174 |         Task {
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/SmartLogs/SmartLogs.swift:183:41: error: cannot find type 'URLSessionWebSocketTask' in scope
181 |     // -- Close
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
185 |     ) {
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:184:25: error: cannot find type 'URLSessionWebSocketTask' in scope
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
    |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
185 |     ) {
186 |         disconnect()
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:183:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     // -- Close
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
185 |     ) {
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/SmartLogs/SmartLogs.swift:19:45: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 17 | }
 18 |
 19 | public actor SmartLogs: NSObject, Sendable, URLSessionWebSocketDelegate {
    |                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 20 |     // Params
 21 |     let origin: String
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:61:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 59 |         // Create the socket
 60 |         if let url = self.serverURL {
 61 |             socket = session.webSocketTask(with: url)
    |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 62 |         } else {
 63 |             socket = nil
[5/5] Compiling SmartLogs SmartLogs.swift
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:25:25: error: cannot find type 'URLSessionWebSocketTask' in scope
 23 |
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
    |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 26 |     private let session: URLSession = .init(configuration: .default)
 27 |
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:26:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |
 28 |     // Heartbeat
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/SmartLogs/SmartLogs.swift:26:40: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                                        `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 27 |
 28 |     // Heartbeat
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:26:61: error: cannot infer contextual base in reference to member 'default'
 24 |     // WebSocket
 25 |     private let socket: URLSessionWebSocketTask?
 26 |     private let session: URLSession = .init(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 27 |
 28 |     // Heartbeat
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:80:44: error: cannot find type 'URLSessionWebSocketTask' in scope
 78 |
 79 |     // Listen for messages
 80 |     private func _handleMessage(_ message: URLSessionWebSocketTask.Message) {
    |                                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
 81 |         do {
 82 |             var msg: [String: Sendable]?
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:172:41: error: cannot find type 'URLSessionWebSocketTask' in scope
170 |     // -- Open
171 |     public nonisolated func urlSession(
172 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask, didOpenWithProtocol _: String?
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
173 |     ) {
174 |         Task {
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:172:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
170 |     // -- Open
171 |     public nonisolated func urlSession(
172 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask, didOpenWithProtocol _: String?
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
173 |     ) {
174 |         Task {
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/SmartLogs/SmartLogs.swift:183:41: error: cannot find type 'URLSessionWebSocketTask' in scope
181 |     // -- Close
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
    |                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
185 |     ) {
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:184:25: error: cannot find type 'URLSessionWebSocketTask' in scope
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
    |                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
185 |     ) {
186 |         disconnect()
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:183:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     // -- Close
182 |     public nonisolated func urlSession(
183 |         _: URLSession, webSocketTask _: URLSessionWebSocketTask,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |         didCloseWith _: URLSessionWebSocketTask.CloseCode, reason _: Data?
185 |     ) {
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/SmartLogs/SmartLogs.swift:19:45: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 17 | }
 18 |
 19 | public actor SmartLogs: NSObject, Sendable, URLSessionWebSocketDelegate {
    |                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 20 |     // Params
 21 |     let origin: String
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:61:30: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 59 |         // Create the socket
 60 |         if let url = self.serverURL {
 61 |             socket = session.webSocketTask(with: url)
    |                              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
 62 |         } else {
 63 |             socket = nil
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:85:80: error: cannot infer contextual base in reference to member 'utf8'
 83 |             switch message {
 84 |             case let .string(text):
 85 |                 msg = try JSONSerialization.jsonObject(with: text.data(using: .utf8)!) as? [String: any Sendable]
    |                                                                                `- error: cannot infer contextual base in reference to member 'utf8'
 86 |             case let .data(data):
 87 |                 msg = try JSONSerialization.jsonObject(with: data) as? [String: any Sendable]
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:206:36: error: cannot infer contextual base in reference to member 'string'
204 |             let payloadEncoded = try JSONSerialization.data(withJSONObject: payload, options: [])
205 |             let payloadString = String(data: payloadEncoded, encoding: .utf8) ?? "{}"
206 |             try await socket.send(.string(payloadString))
    |                                    `- error: cannot infer contextual base in reference to member 'string'
207 |
208 |             // Flip the state
/host/spi-builder-workspace/Sources/SmartLogs/SmartLogs.swift:259:48: error: cannot infer contextual base in reference to member 'string'
257 |                 do {
258 |                     if let message = self.messageQueue.first {
259 |                         try await socket.send(.string(message))
    |                                                `- error: cannot infer contextual base in reference to member 'string'
260 |
261 |                         // Remove message from queue
BUILD FAILURE 6.2 linux