The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Realtime, reference 0.0.2 (0b985c), with Swift 6.1 for Wasm on 28 May 2025 10:06:15 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
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.1
Building package at path:  $PWD
https://github.com/supabase-community/realtime-swift.git
https://github.com/supabase-community/realtime-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Realtime",
  "name" : "Realtime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Realtime",
      "targets" : [
        "Realtime"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RealtimeTests",
      "module_type" : "SwiftTarget",
      "name" : "RealtimeTests",
      "path" : "Tests/RealtimeTests",
      "sources" : [
        "ChannelTopicTests.swift",
        "RealtimeTests.swift"
      ],
      "target_dependencies" : [
        "Realtime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Realtime",
      "module_type" : "SwiftTarget",
      "name" : "Realtime",
      "path" : "Sources/Realtime",
      "product_memberships" : [
        "Realtime"
      ],
      "sources" : [
        "Channel.swift",
        "Defaults.swift",
        "Delegated.swift",
        "HeartbeatTimer.swift",
        "Message.swift",
        "Push.swift",
        "RealtimeClient.swift",
        "SocketError.swift",
        "StateChangeCallbacks.swift",
        "TimeoutTimer.swift",
        "Transport.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling Realtime SocketError.swift
[4/14] Compiling Realtime StateChangeCallbacks.swift
[5/14] Compiling Realtime RealtimeClient.swift
/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/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/14] Emitting module Realtime
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:32:21: warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |   /// Default reconnect algorithm for the socket
 32 |   public static let reconnectSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'reconnectSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     tries > 9 ? 5.0 : [0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.5, 1.0, 2.0][tries - 1]
 34 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:37:21: warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 |   /** Default rejoin algorithm for individual channels */
 37 |   public static let rejoinSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'rejoinSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     tries > 3 ? 10 : [1, 2, 5][tries - 1]
 39 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:42:21: warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |   /// Default encode function, utilizing JSONSerialization.data
 42 |   public static let encode: ([String: Any]) -> Data = { json in
    |                     |- warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'encode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     try! JSONSerialization
 44 |       .data(
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:50:21: warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |   /// Default decode function, utilizing JSONSerialization.jsonObject
 50 |   public static let decode: (Data) -> [String: Any]? = { data in
    |                     |- warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'decode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     guard
 52 |       let json =
/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/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:98:14: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 96 | class TimerQueue {
 97 |   // Can be overriden in tests
 98 |   static var main = TimerQueue()
    |              |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |
100 |   func queue(timeInterval: TimeInterval, execute: DispatchWorkItem) {
/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: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
/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
[7/14] Compiling Realtime Channel.swift
/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.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:32:21: warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |   /// Default reconnect algorithm for the socket
 32 |   public static let reconnectSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'reconnectSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     tries > 9 ? 5.0 : [0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.5, 1.0, 2.0][tries - 1]
 34 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:37:21: warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 |   /** Default rejoin algorithm for individual channels */
 37 |   public static let rejoinSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'rejoinSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     tries > 3 ? 10 : [1, 2, 5][tries - 1]
 39 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:42:21: warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |   /// Default encode function, utilizing JSONSerialization.data
 42 |   public static let encode: ([String: Any]) -> Data = { json in
    |                     |- warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'encode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     try! JSONSerialization
 44 |       .data(
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:50:21: warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |   /// Default decode function, utilizing JSONSerialization.jsonObject
 50 |   public static let decode: (Data) -> [String: Any]? = { data in
    |                     |- warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'decode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     guard
 52 |       let json =
[8/14] Compiling Realtime Defaults.swift
/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.
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:32:21: warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 30 |
 31 |   /// Default reconnect algorithm for the socket
 32 |   public static let reconnectSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'reconnectSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'reconnectSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 33 |     tries > 9 ? 5.0 : [0.01, 0.05, 0.1, 0.15, 0.2, 0.25, 0.5, 1.0, 2.0][tries - 1]
 34 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:37:21: warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 |   /** Default rejoin algorithm for individual channels */
 37 |   public static let rejoinSteppedBackOff: (Int) -> TimeInterval = { tries in
    |                     |- warning: static property 'rejoinSteppedBackOff' is not concurrency-safe because non-'Sendable' type '(Int) -> TimeInterval' (aka '(Int) -> Double') may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'rejoinSteppedBackOff' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 38 |     tries > 3 ? 10 : [1, 2, 5][tries - 1]
 39 |   }
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:42:21: warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
 40 |
 41 |   /// Default encode function, utilizing JSONSerialization.data
 42 |   public static let encode: ([String: Any]) -> Data = { json in
    |                     |- warning: static property 'encode' is not concurrency-safe because non-'Sendable' type '([String : Any]) -> Data' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'encode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 43 |     try! JSONSerialization
 44 |       .data(
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/Realtime/Defaults.swift:50:21: warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
 48 |
 49 |   /// Default decode function, utilizing JSONSerialization.jsonObject
 50 |   public static let decode: (Data) -> [String: Any]? = { data in
    |                     |- warning: static property 'decode' is not concurrency-safe because non-'Sendable' type '(Data) -> [String : Any]?' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: add '@MainActor' to make static property 'decode' part of global actor 'MainActor'
    |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 51 |     guard
 52 |       let json =
[9/14] Compiling Realtime Delegated.swift
/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
[10/14] Compiling Realtime HeartbeatTimer.swift
/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
[11/14] Compiling Realtime Message.swift
/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/Push.swift:239:20: error: cannot find 'DispatchWorkItem' in scope
237 |
238 |     /// Setup and start the Timeout timer.
239 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
240 |       self.trigger("timeout", payload: [:])
241 |     }
/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.
[12/14] Compiling Realtime Push.swift
/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/Push.swift:239:20: error: cannot find 'DispatchWorkItem' in scope
237 |
238 |     /// Setup and start the Timeout timer.
239 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
240 |       self.trigger("timeout", payload: [:])
241 |     }
/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.
[13/14] Compiling Realtime TimeoutTimer.swift
/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:98:14: warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 96 | class TimerQueue {
 97 |   // Can be overriden in tests
 98 |   static var main = TimerQueue()
    |              |- warning: static property 'main' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'main' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
    |              `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 99 |
100 |   func queue(timeInterval: TimeInterval, execute: DispatchWorkItem) {
/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/TimeoutTimer.swift:78:20: error: cannot find 'DispatchWorkItem' in scope
 76 |     guard let timeInterval = timerCalculation.call(tries + 1) else { return }
 77 |
 78 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
 79 |       self.tries += 1
 80 |       self.callback.call()
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:105:24: error: cannot find 'DispatchTime' in scope
103 |     let dispatchInterval = Int(round(timeInterval * 1000))
104 |
105 |     let dispatchTime = DispatchTime.now() + .milliseconds(dispatchInterval)
    |                        `- error: cannot find 'DispatchTime' in scope
106 |     DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: execute)
107 |   }
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:106:5: error: cannot find 'DispatchQueue' in scope
104 |
105 |     let dispatchTime = DispatchTime.now() + .milliseconds(dispatchInterval)
106 |     DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: execute)
    |     `- error: cannot find 'DispatchQueue' in scope
107 |   }
108 | }
[14/14] Compiling Realtime Transport.swift
/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
/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:177:82: error: cannot find 'OperationQueue' in scope
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                  `- error: cannot find 'OperationQueue' in scope
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:177:15: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:177:42: error: cannot infer contextual base in reference to member 'default'
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                          `- error: cannot infer contextual base in reference to member 'default'
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:178:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
178 |     task = session?.webSocketTask(with: url)
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
179 |
180 |     // Start the task
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:191:27: error: cannot find 'URLSessionWebSocketTask' in scope
189 |          3. Provide default .normalClosure function
190 |          */
191 |     guard let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) else {
    |                           `- error: cannot find 'URLSessionWebSocketTask' in scope
192 |       fatalError("Could not create a CloseCode with invalid code: [\(code)].")
193 |     }
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:200:17: error: cannot infer contextual base in reference to member 'data'
198 |
199 |   public func send(data: Data) {
200 |     task?.send(.data(data)) { _ in
    |                 `- error: cannot infer contextual base in reference to member 'data'
201 |       // TODO: What is the behavior when an error occurs?
202 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling Realtime TimeoutTimer.swift
/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/TimeoutTimer.swift:78:20: error: cannot find 'DispatchWorkItem' in scope
 76 |     guard let timeInterval = timerCalculation.call(tries + 1) else { return }
 77 |
 78 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
 79 |       self.tries += 1
 80 |       self.callback.call()
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:105:24: error: cannot find 'DispatchTime' in scope
103 |     let dispatchInterval = Int(round(timeInterval * 1000))
104 |
105 |     let dispatchTime = DispatchTime.now() + .milliseconds(dispatchInterval)
    |                        `- error: cannot find 'DispatchTime' in scope
106 |     DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: execute)
107 |   }
/host/spi-builder-workspace/Sources/Realtime/TimeoutTimer.swift:106:5: error: cannot find 'DispatchQueue' in scope
104 |
105 |     let dispatchTime = DispatchTime.now() + .milliseconds(dispatchInterval)
106 |     DispatchQueue.main.asyncAfter(deadline: dispatchTime, execute: execute)
    |     `- error: cannot find 'DispatchQueue' in scope
107 |   }
108 | }
[3/12] Compiling Realtime Delegated.swift
/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
[4/12] Compiling Realtime HeartbeatTimer.swift
/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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/12] Emitting module Realtime
/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/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: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
/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
[6/13] Compiling Realtime Message.swift
/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/Push.swift:239:20: error: cannot find 'DispatchWorkItem' in scope
237 |
238 |     /// Setup and start the Timeout timer.
239 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
240 |       self.trigger("timeout", payload: [:])
241 |     }
/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.
[7/13] Compiling Realtime Push.swift
/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/Push.swift:239:20: error: cannot find 'DispatchWorkItem' in scope
237 |
238 |     /// Setup and start the Timeout timer.
239 |     let workItem = DispatchWorkItem {
    |                    `- error: cannot find 'DispatchWorkItem' in scope
240 |       self.trigger("timeout", payload: [:])
241 |     }
/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.
[8/13] Compiling Realtime SocketError.swift
[9/13] Compiling Realtime StateChangeCallbacks.swift
[10/13] Compiling Realtime RealtimeClient.swift
/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/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
[11/13] Compiling Realtime Transport.swift
/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
/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:177:82: error: cannot find 'OperationQueue' in scope
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                                                                  `- error: cannot find 'OperationQueue' in scope
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:177:15: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |               `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:177:42: error: cannot infer contextual base in reference to member 'default'
175 |
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
    |                                          `- error: cannot infer contextual base in reference to member 'default'
178 |     task = session?.webSocketTask(with: url)
179 |
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:178:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
176 |     // Create the session and websocket task
177 |     session = URLSession(configuration: .default, delegate: self, delegateQueue: OperationQueue())
178 |     task = session?.webSocketTask(with: url)
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
179 |
180 |     // Start the task
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:191:27: error: cannot find 'URLSessionWebSocketTask' in scope
189 |          3. Provide default .normalClosure function
190 |          */
191 |     guard let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) else {
    |                           `- error: cannot find 'URLSessionWebSocketTask' in scope
192 |       fatalError("Could not create a CloseCode with invalid code: [\(code)].")
193 |     }
/host/spi-builder-workspace/Sources/Realtime/Transport.swift:200:17: error: cannot infer contextual base in reference to member 'data'
198 |
199 |   public func send(data: Data) {
200 |     task?.send(.data(data)) { _ in
    |                 `- error: cannot infer contextual base in reference to member 'data'
201 |       // TODO: What is the behavior when an error occurs?
202 |     }
[12/13] Compiling Realtime Channel.swift
/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/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.
[13/13] Compiling Realtime Defaults.swift
/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/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.
BUILD FAILURE 6.1 wasm