The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Realtime, reference 0.0.2 (0b985c), with Swift 6.4 for Wasm on 18 Sep 2026 17:30:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/supabase-community/realtime-swift.git
Reference: 0.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/supabase-community/realtime-swift
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at 0b985c6 Remove Starscream Dependency and bump minimum support platform (#11)
Cloned https://github.com/supabase-community/realtime-swift.git
Revision (git rev-parse @):
0b985c687fe963f6bd818ff77a35c27247b98bb4
SUCCESS checkout https://github.com/supabase-community/realtime-swift.git at 0.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/supabase-community/realtime-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Building for debugging...
[Planning deferred tasks]
[27 / 35] Realtime
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/Realtime/HeartbeatTimer.swift:32:27: error: cannot find type 'DispatchSourceTimer' in scope
 30 |   }
 31 |
 32 |   private lazy var timer: DispatchSourceTimer = {
    |                           `- error: cannot find type 'DispatchSourceTimer' in scope
 33 |     let t = DispatchSource.makeTimerSource(flags: [], queue: self.dispatchQueue)
 34 |     t.schedule(deadline: .now() + self.timeInterval, repeating: self.timeInterval)
/host/spi-builder-workspace/Sources/Realtime/HeartbeatTimer.swift:25:22: error: cannot find type 'DispatchQueue' in scope
 23 | class HeartbeatTimer: Equatable {
 24 |   let timeInterval: TimeInterval
 25 |   let dispatchQueue: DispatchQueue
    |                      `- error: cannot find type 'DispatchQueue' in scope
 26 |   let id: String = UUID().uuidString
 27 |   init(timeInterval: TimeInterval, dispatchQueue: DispatchQueue) {
/host/spi-builder-workspace/Sources/Realtime/HeartbeatTimer.swift:27:51: error: cannot find type 'DispatchQueue' in scope
 25 |   let dispatchQueue: DispatchQueue
 26 |   let id: String = UUID().uuidString
 27 |   init(timeInterval: TimeInterval, dispatchQueue: DispatchQueue) {
    |                                                   `- error: cannot find type 'DispatchQueue' in scope
 28 |     self.timeInterval = timeInterval
 29 |     self.dispatchQueue = dispatchQueue
/host/spi-builder-workspace/Sources/Realtime/HeartbeatTimer.swift:33:13: error: cannot find 'DispatchSource' in scope
 31 |
 32 |   private lazy var timer: DispatchSourceTimer = {
 33 |     let t = DispatchSource.makeTimerSource(flags: [], queue: self.dispatchQueue)
    |             `- error: cannot find 'DispatchSource' in scope
 34 |     t.schedule(deadline: .now() + self.timeInterval, repeating: self.timeInterval)
 35 |     t.setEventHandler(handler: { [weak self] in
/host/spi-builder-workspace/Sources/Realtime/Push.swift:44:24: error: cannot find type 'DispatchWorkItem' in scope
 42 |
 43 |   /// WorkItem to be performed when the timeout timer fires
 44 |   var timeoutWorkItem: DispatchWorkItem?
    |                        `- error: cannot find type 'DispatchWorkItem' in scope
 45 |
 46 |   /// Hooks into a Push. Where .receive("ok", callback(Payload)) are stored
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:115:41: error: cannot find type 'SSLCipherSuite' in scope
113 |     /// allowed cipher suites supported by your server. This must be
114 |     /// set before calling `socket.connect()` in order to apply.
115 |     public var enabledSSLCipherSuites: [SSLCipherSuite]?
    |                                         `- error: cannot find type 'SSLCipherSuite' in scope
116 |   #endif
117 |
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:137:24: error: cannot find 'DispatchQueue' in scope
135 |
136 |   /// Queue to run heartbeat timer on
137 |   var heartbeatQueue = DispatchQueue(label: "com.supabase.realtime.socket.heartbeat")
    |                        `- error: cannot find 'DispatchQueue' in scope
138 |
139 |   /// Timer that triggers sending new Heartbeat messages
/host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift:715:4: error: Objective-C interoperability is disabled
713 |
714 |   /// Sends a hearbeat payload to the phoenix serverss
715 |   @objc func sendHeartbeat() {
    |    `- error: Objective-C interoperability is disabled
716 |     // Do not send if the connection is closed
717 |     guard isConnected else { return }
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:54:17: error: cannot find type 'DispatchWorkItem' in scope
 52 |
 53 |   /// The work to be done when the queue fires
 54 |   var workItem: DispatchWorkItem?
    |                 `- error: cannot find type 'DispatchWorkItem' in scope
 55 |
 56 |   /// The number of times the underlyingTimer hass been set off.
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:100:51: error: cannot find type 'DispatchWorkItem' in scope
 98 |   static var main = TimerQueue()
 99 |
100 |   func queue(timeInterval: TimeInterval, execute: DispatchWorkItem) {
    |                                                   `- error: cannot find type 'DispatchWorkItem' in scope
101 |     // TimeInterval is always in seconds. Multiply it by 1000 to convert
102 |     // to milliseconds and round to the nearest millisecond.
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:130:56: error: cannot find type 'URLSessionWebSocketDelegate' in scope
128 | /// your own WebSocket library or implementation.
129 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
130 | public class URLSessionTransport: NSObject, Transport, URLSessionWebSocketDelegate {
    |                                                        `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
131 |   /// The URL to connect to
132 |   internal let url: URL
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:135:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
133 |
134 |   /// The underling URLsession. Assigned during `connect()`
135 |   private var session: URLSession?
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
136 |
137 |   /// The ongoing task. Assigned during `connect()`
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/Realtime/Transport.swift:138:21: error: cannot find type 'URLSessionWebSocketTask' in scope
136 |
137 |   /// The ongoing task. Assigned during `connect()`
138 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
139 |
140 |   /**
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:209:22: error: cannot find type 'URLSessionWebSocketTask' in scope
207 |   public func urlSession(
208 |     _: URLSession,
209 |     webSocketTask _: URLSessionWebSocketTask,
    |                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
210 |     didOpenWithProtocol _: String?
211 |   ) {
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:208:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
206 |
207 |   public func urlSession(
208 |     _: URLSession,
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
209 |     webSocketTask _: URLSessionWebSocketTask,
210 |     didOpenWithProtocol _: String?
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/Realtime/Transport.swift:222:22: error: cannot find type 'URLSessionWebSocketTask' in scope
220 |   public func urlSession(
221 |     _: URLSession,
222 |     webSocketTask _: URLSessionWebSocketTask,
    |                      `- error: cannot find type 'URLSessionWebSocketTask' in scope
223 |     didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
224 |     reason _: Data?
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:223:29: error: cannot find type 'URLSessionWebSocketTask' in scope
221 |     _: URLSession,
222 |     webSocketTask _: URLSessionWebSocketTask,
223 |     didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                             `- error: cannot find type 'URLSessionWebSocketTask' in scope
224 |     reason _: Data?
225 |   ) {
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:221:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
219 |
220 |   public func urlSession(
221 |     _: URLSession,
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 |     webSocketTask _: URLSessionWebSocketTask,
223 |     didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
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/Realtime/Transport.swift:232:8: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
230 |
231 |   public func urlSession(
232 |     _: URLSession,
    |        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
233 |     task _: URLSessionTask,
234 |     didCompleteWithError error: Error?
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/Realtime/Transport.swift:233:13: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
231 |   public func urlSession(
232 |     _: URLSession,
233 |     task _: URLSessionTask,
    |             `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
234 |     didCompleteWithError error: Error?
235 |   ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/Realtime/Channel.swift /host/spi-builder-workspace/Sources/Realtime/Defaults.swift /host/spi-builder-workspace/Sources/Realtime/Delegated.swift /host/spi-builder-workspace/Sources/Realtime/HeartbeatTimer.swift /host/spi-builder-workspace/Sources/Realtime/Message.swift /host/spi-builder-workspace/Sources/Realtime/Push.swift /host/spi-builder-workspace/Sources/Realtime/RealtimeClient.swift /host/spi-builder-workspace/Sources/Realtime/SocketError.swift /host/spi-builder-workspace/Sources/Realtime/StateChangeCallbacks.swift /host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift /host/spi-builder-workspace/Sources/Realtime/Transport.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Realtime -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Realtime_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Modules/Realtime.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Modules/Realtime.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Realtime-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Realtime-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Realtime-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Realtime.build/Debug-webassembly-wasm32/Realtime-t.build/Objects-normal/wasm32/Modules/Realtime.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm