The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPhoenixClient with Swift 5.9 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.28.7
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davidstump/SwiftPhoenixClient.git
Reference: 5.3.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/davidstump/SwiftPhoenixClient
 * tag               5.3.2      -> FETCH_HEAD
HEAD is now at 588bf6b Prepare version 5.3.2
Cloned https://github.com/davidstump/SwiftPhoenixClient.git
Revision (git rev-parse @):
588bf6baab5d049752748e19a4bff32421ea40ec
SUCCESS checkout https://github.com/davidstump/SwiftPhoenixClient.git at 5.3.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  $PWD/checkout
https://github.com/davidstump/SwiftPhoenixClient.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$PWD/checkout" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/11] Compiling SwiftPhoenixClient Channel.swift
[2/11] Compiling SwiftPhoenixClient Defaults.swift
[3/11] Emitting module SwiftPhoenixClient
/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.
  func onOpen(response: URLResponse?)
                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  func onError(error: Error, response: URLResponse?)
                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  internal let configuration: URLSessionConfiguration
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
  private var session: URLSession? = nil
                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
  private var task: URLSessionWebSocketTask? = nil
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                                                 ~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:244:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:243:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:256:48: error: cannot find type 'URLSessionWebSocketTask' in scope
                       didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/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.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:263:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:264:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                       task: URLSessionTask,
                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:299:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
                                                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/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.
    let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
                                                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
                                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:336:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
                                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:373:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                           callback: @escaping ((T, URLResponse?) -> Void)) -> String {
                                                                    ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:461:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:481:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                            callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:647:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionOpen(response: URLResponse?) {
                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:684:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionError(_ error: Error, response: URLResponse?) {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:805:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:851:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(response: URLResponse?) {
                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:855:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(error: Error, response: URLResponse?) {
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[4/11] Compiling SwiftPhoenixClient Delegated.swift
[5/11] Compiling SwiftPhoenixClient HeartbeatTimer.swift
[6/11] Compiling SwiftPhoenixClient Message.swift
/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.
  func onOpen(response: URLResponse?)
                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  func onError(error: Error, response: URLResponse?)
                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  internal let configuration: URLSessionConfiguration
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
  private var session: URLSession? = nil
                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
  private var task: URLSessionWebSocketTask? = nil
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                                                 ~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:244:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:243:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:256:48: error: cannot find type 'URLSessionWebSocketTask' in scope
                       didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/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.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:263:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:264:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                       task: URLSessionTask,
                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:299:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
                                                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:97: error: 'nil' requires a contextual type
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                                                                                                ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:205:19: error: cannot find 'URLRequest' in scope
    var request = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:212:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
    self.task = self.session?.webSocketTask(with: request)
                ~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:226:27: error: cannot find 'URLSessionWebSocketTask' in scope
    guard let closeCode = URLSessionWebSocketTask.CloseCode.init(rawValue: code) else {
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:232:19: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
    self.session?.finishTasksAndInvalidate()
    ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:236:22: error: cannot infer contextual base in reference to member 'string'
    self.task?.send(.string(String(data: data, encoding: .utf8)!)) { (error) in
                    ~^~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:270:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
    self.abnormalErrorReceived(err, response: task.response)
                                              ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:276:38: error: cannot infer type of closure parameter 'result' without a type annotation
    self.task?.receive { [weak self] result in
                                     ^
[7/11] Compiling SwiftPhoenixClient PhoenixTransport.swift
/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.
  func onOpen(response: URLResponse?)
                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  func onError(error: Error, response: URLResponse?)
                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  internal let configuration: URLSessionConfiguration
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
  private var session: URLSession? = nil
                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
  private var task: URLSessionWebSocketTask? = nil
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                                                 ~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:244:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:243:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:256:48: error: cannot find type 'URLSessionWebSocketTask' in scope
                       didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/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.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:263:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:264:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                       task: URLSessionTask,
                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:299:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
                                                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:97: error: 'nil' requires a contextual type
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                                                                                                ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:205:19: error: cannot find 'URLRequest' in scope
    var request = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:212:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
    self.task = self.session?.webSocketTask(with: request)
                ~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:226:27: error: cannot find 'URLSessionWebSocketTask' in scope
    guard let closeCode = URLSessionWebSocketTask.CloseCode.init(rawValue: code) else {
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:232:19: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
    self.session?.finishTasksAndInvalidate()
    ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:236:22: error: cannot infer contextual base in reference to member 'string'
    self.task?.send(.string(String(data: data, encoding: .utf8)!)) { (error) in
                    ~^~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:270:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
    self.abnormalErrorReceived(err, response: task.response)
                                              ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:276:38: error: cannot infer type of closure parameter 'result' without a type annotation
    self.task?.receive { [weak self] result in
                                     ^
[8/12] Compiling SwiftPhoenixClient SynchronizedArray.swift
[9/12] Compiling SwiftPhoenixClient Socket.swift
/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.
    let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
                                                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
                                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:336:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
                                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:373:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                           callback: @escaping ((T, URLResponse?) -> Void)) -> String {
                                                                    ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:461:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:481:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                            callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:647:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionOpen(response: URLResponse?) {
                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:684:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionError(_ error: Error, response: URLResponse?) {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:805:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:851:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(response: URLResponse?) {
                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:855:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(error: Error, response: URLResponse?) {
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:337:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<URLResponse?, Void>()
                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:374:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<URLResponse?, Void>()
                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:462:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<(Error, URLResponse?), Void>()
                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:482:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<(Error, URLResponse?), Void>()
                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[10/12] Compiling SwiftPhoenixClient Push.swift
[11/12] Compiling SwiftPhoenixClient Presence.swift
[12/12] Compiling SwiftPhoenixClient TimeoutTimer.swift
error: fatalError
[0/1] Planning build
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/4] Compiling SwiftPhoenixClient Message.swift
[2/4] Emitting module SwiftPhoenixClient
/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.
  func onOpen(response: URLResponse?)
                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  func onError(error: Error, response: URLResponse?)
                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  internal let configuration: URLSessionConfiguration
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
  private var session: URLSession? = nil
                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
  private var task: URLSessionWebSocketTask? = nil
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                                                 ~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:244:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:243:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:256:48: error: cannot find type 'URLSessionWebSocketTask' in scope
                       didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/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.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:263:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:264:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                       task: URLSessionTask,
                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:299:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
                                                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/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.
    let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
                                                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
                                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:336:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
                                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:373:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                           callback: @escaping ((T, URLResponse?) -> Void)) -> String {
                                                                    ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:461:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:481:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                            callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:647:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionOpen(response: URLResponse?) {
                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:684:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionError(_ error: Error, response: URLResponse?) {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:805:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:851:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(response: URLResponse?) {
                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:855:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(error: Error, response: URLResponse?) {
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[3/4] Compiling SwiftPhoenixClient PhoenixTransport.swift
/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.
  func onOpen(response: URLResponse?)
                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  func onError(error: Error, response: URLResponse?)
                                       ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
  internal let configuration: URLSessionConfiguration
                              ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/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.
  private var session: URLSession? = nil
                       ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
  private var task: URLSessionWebSocketTask? = nil
                    ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:177:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
  public init(url: URL, configuration: URLSessionConfiguration = .default) {
                                                                 ~^~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:244:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:243:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
                       webSocketTask: URLSessionWebSocketTask,
                                      ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:256:48: error: cannot find type 'URLSessionWebSocketTask' in scope
                       didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
                                               ^~~~~~~~~~~~~~~~~~~~~~~
/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.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:263:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  open func urlSession(_ session: URLSession,
                                  ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:264:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                       task: URLSessionTask,
                             ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:299:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
                                                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                   ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:204:97: error: 'nil' requires a contextual type
    self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
                                                                                                ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:205:19: error: cannot find 'URLRequest' in scope
    var request = URLRequest(url: url)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:212:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
    self.task = self.session?.webSocketTask(with: request)
                ~~~~~~~~~~~~~ ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:226:27: error: cannot find 'URLSessionWebSocketTask' in scope
    guard let closeCode = URLSessionWebSocketTask.CloseCode.init(rawValue: code) else {
                          ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:232:19: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
    self.session?.finishTasksAndInvalidate()
    ~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:236:22: error: cannot infer contextual base in reference to member 'string'
    self.task?.send(.string(String(data: data, encoding: .utf8)!)) { (error) in
                    ~^~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:270:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
    self.abnormalErrorReceived(err, response: task.response)
                                              ~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:276:38: error: cannot infer type of closure parameter 'result' without a type annotation
    self.task?.receive { [weak self] result in
                                     ^
[4/4] Compiling SwiftPhoenixClient Socket.swift
/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.
    let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
                                                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/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.
    let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
                                                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:336:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
                                          ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:373:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                           callback: @escaping ((T, URLResponse?) -> Void)) -> String {
                                                                    ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:461:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
                                                   ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:481:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                                            callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
                                                                             ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:647:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionOpen(response: URLResponse?) {
                                           ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:684:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  internal func onConnectionError(_ error: Error, response: URLResponse?) {
                                                            ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:805:4: error: Objective-C interoperability is disabled
  @objc func sendHeartbeat() {
  ~^~~~~

/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:851:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onOpen(response: URLResponse?) {
                               ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:855:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  public func onError(error: Error, response: URLResponse?) {
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:337:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<URLResponse?, Void>()
                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:374:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<URLResponse?, Void>()
                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:462:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<(Error, URLResponse?), Void>()
                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:482:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    var delegated = Delegated<(Error, URLResponse?), Void>()
                                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[5/7] Compiling SwiftPhoenixClient Presence.swift
[6/7] Compiling SwiftPhoenixClient Push.swift
[7/7] Compiling SwiftPhoenixClient Channel.swift
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2