The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPhoenixClient, reference master (25a4d8), with Swift 6.4 for Wasm on 21 Sep 2026 17:58:09 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/davidstump/SwiftPhoenixClient.git
Reference: master
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/davidstump/SwiftPhoenixClient
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 25a4d8a Prepare version 5.3.5
Cloned https://github.com/davidstump/SwiftPhoenixClient.git
Revision (git rev-parse @):
25a4d8a3fa754ef3fb587a34addd08c7e568abc4
SUCCESS checkout https://github.com/davidstump/SwiftPhoenixClient.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/davidstump/SwiftPhoenixClient.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]
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

[27 / 35] SwiftPhoenixClient
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Defaults.swift:33:38: error: cannot find type 'DispatchTimeInterval' in scope
31 |
32 |   /// Default maximum amount of time which the system may delay heartbeat events in order to minimize power usage
33 |   public static let heartbeatLeeway: DispatchTimeInterval = .milliseconds(10)
   |                                      `- error: cannot find type 'DispatchTimeInterval' in scope
34 |
35 |   /// Default reconnect algorithm for the socket
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Defaults.swift:64:37: error: cannot find type 'DispatchQueue' in scope
62 |   }
63 |
64 |   public static let heartbeatQueue: DispatchQueue
   |                                     `- error: cannot find type 'DispatchQueue' in scope
65 |     = DispatchQueue(label: "com.phoenix.socket.heartbeat")
66 | }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Defaults.swift:65:7: error: cannot find 'DispatchQueue' in scope
63 |
64 |   public static let heartbeatQueue: DispatchQueue
65 |     = DispatchQueue(label: "com.phoenix.socket.heartbeat")
   |       `- error: cannot find 'DispatchQueue' in scope
66 | }
67 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift:41:15: error: cannot find type 'DispatchTimeInterval' in scope
 39 |
 40 |   /// The maximum amount of time which the system may delay the delivery of the timer events
 41 |   let leeway: DispatchTimeInterval
    |               `- error: cannot find type 'DispatchTimeInterval' in scope
 42 |
 43 |   // The DispatchQueue to schedule the timers on
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift:44:14: error: cannot find type 'DispatchQueue' in scope
 42 |
 43 |   // The DispatchQueue to schedule the timers on
 44 |   let queue: DispatchQueue
    |              `- error: cannot find type 'DispatchQueue' in scope
 45 |
 46 |   // UUID which specifies the Timer instance. Verifies that timers are different
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift:53:31: error: cannot find type 'DispatchSourceTimer' in scope
 51 |   //----------------------------------------------------------------------
 52 |   // The underlying, cancelable, resettable, timer.
 53 |   private var temporaryTimer: DispatchSourceTimer? = nil
    |                               `- error: cannot find type 'DispatchSourceTimer' in scope
 54 |   // The event handler that is called by the timer when it fires.
 55 |   private var temporaryEventHandler: (() -> Void)? = nil
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift:65:43: error: cannot find type 'DispatchQueue' in scope
 63 |      - leeway: The maximum amount of time which the system may delay the delivery of the timer events
 64 |    */
 65 |   init(timeInterval: TimeInterval, queue: DispatchQueue = Defaults.heartbeatQueue, leeway: DispatchTimeInterval = Defaults.heartbeatLeeway) {
    |                                           `- error: cannot find type 'DispatchQueue' in scope
 66 |     self.timeInterval = timeInterval
 67 |     self.queue = queue
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift:65:92: error: cannot find type 'DispatchTimeInterval' in scope
 63 |      - leeway: The maximum amount of time which the system may delay the delivery of the timer events
 64 |    */
 65 |   init(timeInterval: TimeInterval, queue: DispatchQueue = Defaults.heartbeatQueue, leeway: DispatchTimeInterval = Defaults.heartbeatLeeway) {
    |                                                                                            `- error: cannot find type 'DispatchTimeInterval' in scope
 66 |     self.timeInterval = timeInterval
 67 |     self.queue = queue
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:78:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 76 |    - Parameter response: Response from the server indicating that the WebSocket handshake was successful and the connection has been upgraded to webSockets
 77 |    */
 78 |   func onOpen(response: URLResponse?)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |
 80 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:87:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |    */
 87 |   func onError(error: Error, response: URLResponse?)
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
138 |  */
139 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
140 | open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
    |                                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
141 |
142 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:147:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |
146 |   /// The URLSession configuration
147 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:150:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
150 |   private var session: URLSession? = nil
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |
152 |   /// 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/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 |   /// The ongoing task. Assigned during `connect()`
153 |   private var task: URLSessionWebSocketTask? = nil
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
154 |
155 |   /// Holds the current receive task
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: value of type '_' expected to be instance of class or class-constrained type
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
255 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
256 |                        didOpenWithProtocol protocol: String?) {
257 |     // The Websocket is connected. Set Transport state to open and inform delegate
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:254:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |                        webSocketTask: URLSessionWebSocketTask,
256 |                        didOpenWithProtocol protocol: 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/SwiftPhoenixClient/PhoenixTransport.swift:266:39: error: cannot find type 'URLSessionWebSocketTask' in scope
264 |
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
268 |                        reason: Data?) {
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:267:48: error: cannot find type 'URLSessionWebSocketTask' in scope
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
268 |                        reason: Data?) {
269 |     // A close frame was received from the server.
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:265:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |   }
264 |
265 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        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/SwiftPhoenixClient/PhoenixTransport.swift:274:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |   }
273 |
274 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |                        task: URLSessionTask,
276 |                        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/SwiftPhoenixClient/PhoenixTransport.swift:275:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 |   open func urlSession(_ session: URLSession,
275 |                        task: URLSessionTask,
    |                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |                        didCompleteWithError error: Error?) {
277 |     // The task has terminated. Inform the delegate that the transport has closed abnormally
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/SwiftPhoenixClient/PhoenixTransport.swift:311:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |   }
310 |
311 |   private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
    |                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |     // Set the state of the Transport to closed
313 |     self.readyState = .closed
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Push.swift:47:24: error: cannot find type 'DispatchWorkItem' in scope
 45 |
 46 |   /// WorkItem to be performed when the timeout timer fires
 47 |   var timeoutWorkItem: DispatchWorkItem?
    |                        `- error: cannot find type 'DispatchWorkItem' in scope
 48 |
 49 |   /// Hooks into a Push. Where .receive("ok", callback(Payload)) are stored
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:39:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 | /// Struct that gathers callbacks assigned to the Socket
 38 | struct StateChangeCallbacks {
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
    |                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:41:76: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
    |                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     let message: SynchronizedArray<(ref: String, callback: Delegated<Message, Void>)> = .init()
 43 | }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:108:31: error: cannot find type 'DispatchTimeInterval' in scope
106 |
107 |   /// The maximum amount of time which the system may delay heartbeats in order to optimize power usage
108 |   public var heartbeatLeeway: DispatchTimeInterval = Defaults.heartbeatLeeway
    |                               `- error: cannot find type 'DispatchTimeInterval' in scope
109 |
110 |   /// Interval between socket reconnect attempts, in seconds
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:135:39: error: cannot find type 'SSLCipherSuite' in scope
133 |   /// allowed cipher suites supported by your server. This must be
134 |   /// set before calling `socket.connect()` in order to apply.
135 |   public var enabledSSLCipherSuites: [SSLCipherSuite]?
    |                                       `- error: cannot find type 'SSLCipherSuite' in scope
136 |   #endif
137 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:341:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |   /// - parameter callback: Called when the Socket is opened
340 |   @discardableResult
341 |   public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     var delegated = Delegated<URLResponse?, Void>()
343 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:378:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |   @discardableResult
377 |   public func delegateOnOpen<T: AnyObject>(to owner: T,
378 |                                            callback: @escaping ((T, URLResponse?) -> Void)) -> String {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |     var delegated = Delegated<URLResponse?, Void>()
380 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:466:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |   /// - parameter callback: Called when the Socket errors
465 |   @discardableResult
466 |   public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
467 |     var delegated = Delegated<(Error, URLResponse?), Void>()
468 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:486:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
484 |   @discardableResult
485 |   public func delegateOnError<T: AnyObject>(to owner: T,
486 |                                             callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
    |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
487 |     var delegated = Delegated<(Error, URLResponse?), Void>()
488 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:652:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
650 |   //----------------------------------------------------------------------
651 |   /// Called when the underlying Websocket connects to it's host
652 |   internal func onConnectionOpen(response: URLResponse?) {
    |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
653 |     self.logItems("transport", "Connected to \(endPoint)")
654 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:689:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
687 |   }
688 |
689 |   internal func onConnectionError(_ error: Error, response: URLResponse?) {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 |     self.logItems("transport", error, response ?? "")
691 |
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:812:4: error: Objective-C interoperability is disabled
810 |
811 |   /// Sends a heartbeat payload to the phoenix servers
812 |   @objc func sendHeartbeat() {
    |    `- error: Objective-C interoperability is disabled
813 |     // Do not send if the connection is closed
814 |     guard isConnected else { return }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:858:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
856 |   // MARK: - TransportDelegate
857 |   //----------------------------------------------------------------------
858 |   public func onOpen(response: URLResponse?) {
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
859 |     self.onConnectionOpen(response: response)
860 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:862:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
860 |   }
861 |
862 |   public func onError(error: Error, response: URLResponse?) {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
863 |     self.onConnectionError(error, response: response)
864 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' 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 URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/SynchronizedArray.swift:13:29: error: cannot find 'DispatchQueue' in scope
11 | /// A thread-safe array.
12 | public class SynchronizedArray<Element> {
13 |     fileprivate let queue = DispatchQueue(label: "spc_sync_array", attributes: .concurrent)
   |                             `- error: cannot find 'DispatchQueue' in scope
14 |     fileprivate var array: [Element]
15 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/TimeoutTimer.swift:55:17: error: cannot find type 'DispatchWorkItem' in scope
 53 |
 54 |   /// The work to be done when the queue fires
 55 |   var workItem: DispatchWorkItem? = nil
    |                 `- error: cannot find type 'DispatchWorkItem' in scope
 56 |
 57 |   /// The number of times the underlyingTimer hass been set off.
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/TimeoutTimer.swift:106:51: error: cannot find type 'DispatchWorkItem' in scope
104 |   static var main = TimerQueue()
105 |
106 |   func queue(timeInterval: TimeInterval, execute: DispatchWorkItem) {
    |                                                   `- error: cannot find type 'DispatchWorkItem' in scope
107 |     // TimeInterval is always in seconds. Multiply it by 1000 to convert
108 |     // to milliseconds and round to the nearest millisecond.
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Channel.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Defaults.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Delegated.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/HeartbeatTimer.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Message.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Presence.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Push.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/SynchronizedArray.swift /host/spi-builder-workspace/Sources/SwiftPhoenixClient/TimeoutTimer.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/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftPhoenixClient -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/SwiftPhoenixClient_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/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/Modules/SwiftPhoenixClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/Modules/SwiftPhoenixClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/SwiftPhoenixClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/SwiftPhoenixClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/SwiftPhoenixClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftPhoenixClient.build/Debug-webassembly-wasm32/SwiftPhoenixClient-t.build/Objects-normal/wasm32/Modules/SwiftPhoenixClient.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm