The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PhoenixNectar, reference 0.1.0 (5f9eea), with Swift 6.1 for Wasm on 18 Mar 2026 00:18:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jvdvleuten/PhoenixNectar.git
Reference: 0.1.0
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/jvdvleuten/PhoenixNectar
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at 5f9eea6 Initial commit
Cloned https://github.com/jvdvleuten/PhoenixNectar.git
Revision (git rev-parse @):
5f9eea6b8c3f24379491784f5c79078b061ed682
SUCCESS checkout https://github.com/jvdvleuten/PhoenixNectar.git at 0.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/jvdvleuten/PhoenixNectar.git
https://github.com/jvdvleuten/PhoenixNectar.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "PhoenixNectar",
  "name" : "PhoenixNectar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "18.0"
    },
    {
      "name" : "watchos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "PhoenixNectar",
      "targets" : [
        "PhoenixNectar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "PhoenixNectarTests",
      "module_type" : "SwiftTarget",
      "name" : "PhoenixNectarTests",
      "path" : "Tests/PhoenixNectarTests",
      "sources" : [
        "ClientActorTests.swift",
        "ModernAPITests.swift",
        "PhoenixE2ETests.swift",
        "PhoenixValueTests.swift",
        "Support/TestScheduler.swift",
        "Support/TestTransport.swift"
      ],
      "target_dependencies" : [
        "PhoenixNectar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PhoenixNectar",
      "module_type" : "SwiftTarget",
      "name" : "PhoenixNectar",
      "path" : "Sources/PhoenixNectar",
      "product_memberships" : [
        "PhoenixNectar"
      ],
      "sources" : [
        "ChannelHandle.swift",
        "ClockScheduler.swift",
        "Defaults.swift",
        "PhoenixAPI.swift",
        "PhoenixErrors.swift",
        "PhoenixEvents.swift",
        "PhoenixMessage.swift",
        "PhoenixNectar.swift",
        "PhoenixTransport.swift",
        "PhoenixValue.swift",
        "SocketClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling PhoenixNectar PhoenixNectar.swift
[4/14] Compiling PhoenixNectar PhoenixErrors.swift
[5/14] Compiling PhoenixNectar PhoenixEvents.swift
[6/14] Compiling PhoenixNectar Defaults.swift
[7/14] Compiling PhoenixNectar PhoenixAPI.swift
[8/14] Compiling PhoenixNectar PhoenixMessage.swift
[9/14] Compiling PhoenixNectar PhoenixValue.swift
[10/14] Compiling PhoenixNectar PhoenixTransport.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:52:65: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 50 |
 51 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
 52 | private final class URLSessionWebSocketDelegateProxy: NSObject, URLSessionWebSocketDelegate {
    |                                                                 `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 53 |   private let onOpen: @Sendable () async -> Void
 54 |   private let onClose: @Sendable (Int, String?) async -> Void
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |     Task { await onOpen() }
 69 |   }
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     Task { await onOpen() }
 69 |   }
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/PhoenixNectar/PhoenixTransport.swift:71:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:106: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
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/PhoenixNectar/PhoenixTransport.swift:77:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(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/PhoenixNectar/PhoenixTransport.swift:77:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(error) }
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/PhoenixNectar/PhoenixTransport.swift:86:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 | actor URLSessionTransport: PhoenixTransport {
 85 |   internal let url: URL
 86 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |
 88 |   private let broadcaster = TransportEventBroadcaster()
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/PhoenixNectar/PhoenixTransport.swift:90:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |   private let broadcaster = TransportEventBroadcaster()
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |   private var task: URLSessionWebSocketTask?
 92 |   private var receiveTask: Task<Void, Never>?
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/PhoenixNectar/PhoenixTransport.swift:91:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
 91 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private var receiveTask: Task<Void, Never>?
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
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/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:124:25: error: cannot infer contextual base in reference to member 'normalClosure'
122 |     receiveTask?.cancel()
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
    |                         `- error: cannot infer contextual base in reference to member 'normalClosure'
125 |     session?.finishTasksAndInvalidate()
126 |     task = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:124:48: error: 'nil' requires a contextual type
122 |     receiveTask?.cancel()
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
    |                                                `- error: 'nil' requires a contextual type
125 |     session?.finishTasksAndInvalidate()
126 |     task = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:125:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
125 |     session?.finishTasksAndInvalidate()
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
126 |     task = nil
127 |     session = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:139:19: error: cannot find 'URLRequest' in scope
137 |     delegateProxy = proxy
138 |
139 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:142:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
142 |     let session = URLSession(configuration: configuration, delegate: proxy, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |     let webSocketTask = session.webSocketTask(with: request)
144 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:142:92: error: 'nil' requires a contextual type
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
142 |     let session = URLSession(configuration: configuration, delegate: proxy, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
143 |     let webSocketTask = session.webSocketTask(with: request)
144 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:153:21: error: cannot find 'URLSessionWebSocketTask' in scope
151 |     ready = .closing
152 |
153 |     let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) ?? .normalClosure
    |                     `- error: cannot find 'URLSessionWebSocketTask' in scope
154 |     task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
155 |     session?.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:155:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
153 |     let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) ?? .normalClosure
154 |     task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
155 |     session?.finishTasksAndInvalidate()
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
156 |
157 |     receiveTask?.cancel()
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:175:28: error: cannot infer contextual base in reference to member 'string'
173 |
174 |     do {
175 |       try await task.send(.string(text))
    |                            `- error: cannot infer contextual base in reference to member 'string'
176 |     } catch {
177 |       await abnormal(error)
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:184:28: error: cannot infer contextual base in reference to member 'data'
182 |     guard let task else { return }
183 |     do {
184 |       try await task.send(.data(data))
    |                            `- error: cannot infer contextual base in reference to member 'data'
185 |     } catch {
186 |       await abnormal(error)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/14] Compiling PhoenixNectar ChannelHandle.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
[12/14] Compiling PhoenixNectar ClockScheduler.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
[13/14] Emitting module PhoenixNectar
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:52:65: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 50 |
 51 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
 52 | private final class URLSessionWebSocketDelegateProxy: NSObject, URLSessionWebSocketDelegate {
    |                                                                 `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 53 |   private let onOpen: @Sendable () async -> Void
 54 |   private let onClose: @Sendable (Int, String?) async -> Void
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |     Task { await onOpen() }
 69 |   }
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     Task { await onOpen() }
 69 |   }
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/PhoenixNectar/PhoenixTransport.swift:71:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:106: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
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/PhoenixNectar/PhoenixTransport.swift:77:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(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/PhoenixNectar/PhoenixTransport.swift:77:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(error) }
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/PhoenixNectar/PhoenixTransport.swift:86:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 | actor URLSessionTransport: PhoenixTransport {
 85 |   internal let url: URL
 86 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |
 88 |   private let broadcaster = TransportEventBroadcaster()
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/PhoenixNectar/PhoenixTransport.swift:90:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |   private let broadcaster = TransportEventBroadcaster()
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |   private var task: URLSessionWebSocketTask?
 92 |   private var receiveTask: Task<Void, Never>?
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/PhoenixNectar/PhoenixTransport.swift:91:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
 91 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private var receiveTask: Task<Void, Never>?
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
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/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
[14/14] Compiling PhoenixNectar SocketClient.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling PhoenixNectar PhoenixNectar.swift
[3/13] Compiling PhoenixNectar PhoenixValue.swift
[4/13] Compiling PhoenixNectar PhoenixTransport.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:52:65: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 50 |
 51 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
 52 | private final class URLSessionWebSocketDelegateProxy: NSObject, URLSessionWebSocketDelegate {
    |                                                                 `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 53 |   private let onOpen: @Sendable () async -> Void
 54 |   private let onClose: @Sendable (Int, String?) async -> Void
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |     Task { await onOpen() }
 69 |   }
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     Task { await onOpen() }
 69 |   }
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/PhoenixNectar/PhoenixTransport.swift:71:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:106: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
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/PhoenixNectar/PhoenixTransport.swift:77:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(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/PhoenixNectar/PhoenixTransport.swift:77:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(error) }
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/PhoenixNectar/PhoenixTransport.swift:86:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 | actor URLSessionTransport: PhoenixTransport {
 85 |   internal let url: URL
 86 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |
 88 |   private let broadcaster = TransportEventBroadcaster()
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/PhoenixNectar/PhoenixTransport.swift:90:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |   private let broadcaster = TransportEventBroadcaster()
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |   private var task: URLSessionWebSocketTask?
 92 |   private var receiveTask: Task<Void, Never>?
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/PhoenixNectar/PhoenixTransport.swift:91:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
 91 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private var receiveTask: Task<Void, Never>?
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
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/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:124:25: error: cannot infer contextual base in reference to member 'normalClosure'
122 |     receiveTask?.cancel()
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
    |                         `- error: cannot infer contextual base in reference to member 'normalClosure'
125 |     session?.finishTasksAndInvalidate()
126 |     task = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:124:48: error: 'nil' requires a contextual type
122 |     receiveTask?.cancel()
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
    |                                                `- error: 'nil' requires a contextual type
125 |     session?.finishTasksAndInvalidate()
126 |     task = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:125:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
123 |     receiveTask = nil
124 |     task?.cancel(with: .normalClosure, reason: nil)
125 |     session?.finishTasksAndInvalidate()
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
126 |     task = nil
127 |     session = nil
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:139:19: error: cannot find 'URLRequest' in scope
137 |     delegateProxy = proxy
138 |
139 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:142:19: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
142 |     let session = URLSession(configuration: configuration, delegate: proxy, delegateQueue: nil)
    |                   `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
143 |     let webSocketTask = session.webSocketTask(with: request)
144 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:142:92: error: 'nil' requires a contextual type
140 |     headers.forEach { request.addValue($0.value, forHTTPHeaderField: $0.key) }
141 |
142 |     let session = URLSession(configuration: configuration, delegate: proxy, delegateQueue: nil)
    |                                                                                            `- error: 'nil' requires a contextual type
143 |     let webSocketTask = session.webSocketTask(with: request)
144 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:153:21: error: cannot find 'URLSessionWebSocketTask' in scope
151 |     ready = .closing
152 |
153 |     let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) ?? .normalClosure
    |                     `- error: cannot find 'URLSessionWebSocketTask' in scope
154 |     task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
155 |     session?.finishTasksAndInvalidate()
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:155:14: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
153 |     let closeCode = URLSessionWebSocketTask.CloseCode(rawValue: code) ?? .normalClosure
154 |     task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
155 |     session?.finishTasksAndInvalidate()
    |              `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
156 |
157 |     receiveTask?.cancel()
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:175:28: error: cannot infer contextual base in reference to member 'string'
173 |
174 |     do {
175 |       try await task.send(.string(text))
    |                            `- error: cannot infer contextual base in reference to member 'string'
176 |     } catch {
177 |       await abnormal(error)
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:184:28: error: cannot infer contextual base in reference to member 'data'
182 |     guard let task else { return }
183 |     do {
184 |       try await task.send(.data(data))
    |                            `- error: cannot infer contextual base in reference to member 'data'
185 |     } catch {
186 |       await abnormal(error)
[5/13] Compiling PhoenixNectar PhoenixMessage.swift
[6/13] Compiling PhoenixNectar Defaults.swift
[7/13] Compiling PhoenixNectar PhoenixAPI.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/13] Compiling PhoenixNectar ChannelHandle.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
[9/13] Compiling PhoenixNectar ClockScheduler.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
[10/13] Emitting module PhoenixNectar
/host/spi-builder-workspace/Sources/PhoenixNectar/ChannelHandle.swift:29:11: warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 27 |   }
 28 |   #else
 29 |   private nonisolated(unsafe) let lock = NSLock()
    |           `- warning: 'nonisolated(unsafe)' is unnecessary for a constant with 'Sendable' type 'NSLock', consider removing it
 30 |   private nonisolated(unsafe) var _task: Task<Void, Never>?
 31 |
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:52:65: error: cannot find type 'URLSessionWebSocketDelegate' in scope
 50 |
 51 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
 52 | private final class URLSessionWebSocketDelegateProxy: NSObject, URLSessionWebSocketDelegate {
    |                                                                 `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
 53 |   private let onOpen: @Sendable () async -> Void
 54 |   private let onClose: @Sendable (Int, String?) async -> Void
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 68 |     Task { await onOpen() }
 69 |   }
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:67:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 65 |   }
 66 |
 67 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didOpenWithProtocol protocol: String?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     Task { await onOpen() }
 69 |   }
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/PhoenixNectar/PhoenixTransport.swift:71:57: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                         `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:106: error: cannot find type 'URLSessionWebSocketTask' in scope
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                                                                                                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:71:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 69 |   }
 70 |
 71 |   func urlSession(_ session: URLSession, webSocketTask: URLSessionWebSocketTask, didCloseWith closeCode: URLSessionWebSocketTask.CloseCode, reason: Data?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 72 |     Task {
 73 |       await onClose(closeCode.rawValue, reason.flatMap { String(data: $0, encoding: .utf8) })
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/PhoenixNectar/PhoenixTransport.swift:77:30: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(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/PhoenixNectar/PhoenixTransport.swift:77:48: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 75 |   }
 76 |
 77 |   func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
    |                                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 78 |     guard let error else { return }
 79 |     Task { await onComplete(error) }
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/PhoenixNectar/PhoenixTransport.swift:86:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 84 | actor URLSessionTransport: PhoenixTransport {
 85 |   internal let url: URL
 86 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 87 |
 88 |   private let broadcaster = TransportEventBroadcaster()
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/PhoenixNectar/PhoenixTransport.swift:90:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |   private let broadcaster = TransportEventBroadcaster()
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 91 |   private var task: URLSessionWebSocketTask?
 92 |   private var receiveTask: Task<Void, Never>?
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/PhoenixNectar/PhoenixTransport.swift:91:21: error: cannot find type 'URLSessionWebSocketTask' in scope
 89 |   private var ready: PhoenixTransportReadyState = .closed
 90 |   private var session: URLSession?
 91 |   private var task: URLSessionWebSocketTask?
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
 92 |   private var receiveTask: Task<Void, Never>?
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:33: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                 `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
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/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
[11/13] Compiling PhoenixNectar PhoenixErrors.swift
[12/13] Compiling PhoenixNectar PhoenixEvents.swift
[13/13] Compiling PhoenixNectar SocketClient.swift
/host/spi-builder-workspace/Sources/PhoenixNectar/PhoenixTransport.swift:95:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 93 |   private var delegateProxy: URLSessionWebSocketDelegateProxy?
 94 |
 95 |   init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 96 |     let endpoint = url.absoluteString
 97 |     let wsEndpoint = endpoint
BUILD FAILURE 6.1 wasm