The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SmartLogs, reference v0.0.6 (817874), with Swift 6.3 for Wasm on 18 Apr 2026 01:31:24 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.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/alima-webdev/SmartLogs-Swift.git
Reference: v0.0.6
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
 * tag               v0.0.6     -> FETCH_HEAD
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 v0.0.6
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/alima-webdev/SmartLogs-Swift.git
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.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
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] 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
[4/5] Compiling SmartLogs Utils.swift
/host/spi-builder-workspace/Sources/SmartLogs/Utils.swift:4:13: error: cannot find 'DispatchTime' in scope
2 |
3 | func getPreciseTime() -> UInt64 {
4 |      return DispatchTime.now().uptimeNanoseconds
  |             `- error: cannot find 'DispatchTime' in scope
5 | }
6 |
[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.3 wasm