The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftPhoenixClient, reference master (25a4d8), with Swift 6.3 for Linux on 15 Apr 2026 14:59:18 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/davidstump/SwiftPhoenixClient.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/davidstump/SwiftPhoenixClient
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 25a4d8a Prepare version 5.3.5
Cloned https://github.com/davidstump/SwiftPhoenixClient.git
Revision (git rev-parse @):
25a4d8a3fa754ef3fb587a34addd08c7e568abc4
SUCCESS checkout https://github.com/davidstump/SwiftPhoenixClient.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.3
Building package at path:  $PWD
https://github.com/davidstump/SwiftPhoenixClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/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:basic-6.3-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:5a7d791d2ead8a924b1292cb31bf3288eabcfe8880e0b005b00b45b71a5bc36a
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:basic-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling SwiftPhoenixClient SynchronizedArray.swift
[4/14] 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.
 37 | /// Struct that gathers callbacks assigned to the Socket
 38 | struct StateChangeCallbacks {
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
    |                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:41:76: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
    |                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     let message: SynchronizedArray<(ref: String, callback: Delegated<Message, Void>)> = .init()
 43 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:341:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |   /// - parameter callback: Called when the Socket is opened
340 |   @discardableResult
341 |   public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     var delegated = Delegated<URLResponse?, Void>()
343 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:378:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |   @discardableResult
377 |   public func delegateOnOpen<T: AnyObject>(to owner: T,
378 |                                            callback: @escaping ((T, URLResponse?) -> Void)) -> String {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |     var delegated = Delegated<URLResponse?, Void>()
380 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:466:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |   /// - parameter callback: Called when the Socket errors
465 |   @discardableResult
466 |   public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
467 |     var delegated = Delegated<(Error, URLResponse?), Void>()
468 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:486:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
484 |   @discardableResult
485 |   public func delegateOnError<T: AnyObject>(to owner: T,
486 |                                             callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
    |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
487 |     var delegated = Delegated<(Error, URLResponse?), Void>()
488 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:652:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
650 |   //----------------------------------------------------------------------
651 |   /// Called when the underlying Websocket connects to it's host
652 |   internal func onConnectionOpen(response: URLResponse?) {
    |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
653 |     self.logItems("transport", "Connected to \(endPoint)")
654 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:689:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
687 |   }
688 |
689 |   internal func onConnectionError(_ error: Error, response: URLResponse?) {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 |     self.logItems("transport", error, response ?? "")
691 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:812:4: error: Objective-C interoperability is disabled
810 |
811 |   /// Sends a heartbeat payload to the phoenix servers
812 |   @objc func sendHeartbeat() {
    |    `- error: Objective-C interoperability is disabled
813 |     // Do not send if the connection is closed
814 |     guard isConnected else { return }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:858:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
856 |   // MARK: - TransportDelegate
857 |   //----------------------------------------------------------------------
858 |   public func onOpen(response: URLResponse?) {
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
859 |     self.onConnectionOpen(response: response)
860 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:862:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
860 |   }
861 |
862 |   public func onError(error: Error, response: URLResponse?) {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
863 |     self.onConnectionError(error, response: response)
864 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: value of type '_' expected to be instance of class or class-constrained type
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:342:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
340 |   @discardableResult
341 |   public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
342 |     var delegated = Delegated<URLResponse?, Void>()
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
343 |     delegated.manuallyDelegate(with: callback)
344 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:379:31: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
377 |   public func delegateOnOpen<T: AnyObject>(to owner: T,
378 |                                            callback: @escaping ((T, URLResponse?) -> Void)) -> String {
379 |     var delegated = Delegated<URLResponse?, Void>()
    |                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
380 |     delegated.delegate(to: owner, with: callback)
381 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:467:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
465 |   @discardableResult
466 |   public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
467 |     var delegated = Delegated<(Error, URLResponse?), Void>()
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
468 |     delegated.manuallyDelegate(with: callback)
469 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:487:39: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
485 |   public func delegateOnError<T: AnyObject>(to owner: T,
486 |                                             callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
487 |     var delegated = Delegated<(Error, URLResponse?), Void>()
    |                                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
488 |     delegated.delegate(to: owner, with: callback)
489 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[5/14] Compiling SwiftPhoenixClient TimeoutTimer.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/14] Compiling SwiftPhoenixClient Presence.swift
[7/14] Compiling SwiftPhoenixClient Delegated.swift
[8/14] Compiling SwiftPhoenixClient HeartbeatTimer.swift
[9/14] Compiling SwiftPhoenixClient Channel.swift
[10/14] Compiling SwiftPhoenixClient Defaults.swift
[11/14] Compiling SwiftPhoenixClient Push.swift
[12/14] 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.
 76 |    - Parameter response: Response from the server indicating that the WebSocket handshake was successful and the connection has been upgraded to webSockets
 77 |    */
 78 |   func onOpen(response: URLResponse?)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |
 80 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:87:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |    */
 87 |   func onError(error: Error, response: URLResponse?)
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
138 |  */
139 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
140 | open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
    |                                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
141 |
142 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:147:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |
146 |   /// The URLSession configuration
147 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:150:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
150 |   private var session: URLSession? = nil
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |
152 |   /// The ongoing task. Assigned during `connect()`
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 |   /// The ongoing task. Assigned during `connect()`
153 |   private var task: URLSessionWebSocketTask? = nil
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
154 |
155 |   /// Holds the current receive task
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: value of type '_' expected to be instance of class or class-constrained type
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
255 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
256 |                        didOpenWithProtocol protocol: String?) {
257 |     // The Websocket is connected. Set Transport state to open and inform delegate
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:254:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |                        webSocketTask: URLSessionWebSocketTask,
256 |                        didOpenWithProtocol protocol: String?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:266:39: error: cannot find type 'URLSessionWebSocketTask' in scope
264 |
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
268 |                        reason: Data?) {
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:267:48: error: cannot find type 'URLSessionWebSocketTask' in scope
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
268 |                        reason: Data?) {
269 |     // A close frame was received from the server.
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:265:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |   }
264 |
265 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:274:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |   }
273 |
274 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |                        task: URLSessionTask,
276 |                        didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:275:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 |   open func urlSession(_ session: URLSession,
275 |                        task: URLSessionTask,
    |                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |                        didCompleteWithError error: Error?) {
277 |     // The task has terminated. Inform the delegate that the transport has closed abnormally
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:311:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |   }
310 |
311 |   private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
    |                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |     // Set the state of the Transport to closed
313 |     self.readyState = .closed
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:39:67: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 37 | /// Struct that gathers callbacks assigned to the Socket
 38 | struct StateChangeCallbacks {
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
    |                                                                   `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:41:76: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 39 |     let open: SynchronizedArray<(ref: String, callback: Delegated<URLResponse?, Void>)> = .init()
 40 |     let close: SynchronizedArray<(ref: String, callback: Delegated<(Int, String?), Void>)> = .init()
 41 |     let error: SynchronizedArray<(ref: String, callback: Delegated<(Error, URLResponse?), Void>)> = .init()
    |                                                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 42 |     let message: SynchronizedArray<(ref: String, callback: Delegated<Message, Void>)> = .init()
 43 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:341:43: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
339 |   /// - parameter callback: Called when the Socket is opened
340 |   @discardableResult
341 |   public func onOpen(callback: @escaping (URLResponse?) -> Void) -> String {
    |                                           `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
342 |     var delegated = Delegated<URLResponse?, Void>()
343 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:378:69: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
376 |   @discardableResult
377 |   public func delegateOnOpen<T: AnyObject>(to owner: T,
378 |                                            callback: @escaping ((T, URLResponse?) -> Void)) -> String {
    |                                                                     `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
379 |     var delegated = Delegated<URLResponse?, Void>()
380 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:466:52: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
464 |   /// - parameter callback: Called when the Socket errors
465 |   @discardableResult
466 |   public func onError(callback: @escaping ((Error, URLResponse?)) -> Void) -> String {
    |                                                    `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
467 |     var delegated = Delegated<(Error, URLResponse?), Void>()
468 |     delegated.manuallyDelegate(with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:486:78: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
484 |   @discardableResult
485 |   public func delegateOnError<T: AnyObject>(to owner: T,
486 |                                             callback: @escaping ((T, (Error, URLResponse?)) -> Void)) -> String {
    |                                                                              `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
487 |     var delegated = Delegated<(Error, URLResponse?), Void>()
488 |     delegated.delegate(to: owner, with: callback)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:652:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
650 |   //----------------------------------------------------------------------
651 |   /// Called when the underlying Websocket connects to it's host
652 |   internal func onConnectionOpen(response: URLResponse?) {
    |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
653 |     self.logItems("transport", "Connected to \(endPoint)")
654 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:689:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
687 |   }
688 |
689 |   internal func onConnectionError(_ error: Error, response: URLResponse?) {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
690 |     self.logItems("transport", error, response ?? "")
691 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:812:4: error: Objective-C interoperability is disabled
810 |
811 |   /// Sends a heartbeat payload to the phoenix servers
812 |   @objc func sendHeartbeat() {
    |    `- error: Objective-C interoperability is disabled
813 |     // Do not send if the connection is closed
814 |     guard isConnected else { return }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:858:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
856 |   // MARK: - TransportDelegate
857 |   //----------------------------------------------------------------------
858 |   public func onOpen(response: URLResponse?) {
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
859 |     self.onConnectionOpen(response: response)
860 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/Socket.swift:862:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
860 |   }
861 |
862 |   public func onError(error: Error, response: URLResponse?) {
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
863 |     self.onConnectionError(error, response: response)
864 |   }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
[13/14] 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.
 76 |    - Parameter response: Response from the server indicating that the WebSocket handshake was successful and the connection has been upgraded to webSockets
 77 |    */
 78 |   func onOpen(response: URLResponse?)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |
 80 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:87:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |    */
 87 |   func onError(error: Error, response: URLResponse?)
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
138 |  */
139 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
140 | open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
    |                                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
141 |
142 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:147:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |
146 |   /// The URLSession configuration
147 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:150:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
150 |   private var session: URLSession? = nil
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |
152 |   /// The ongoing task. Assigned during `connect()`
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 |   /// The ongoing task. Assigned during `connect()`
153 |   private var task: URLSessionWebSocketTask? = nil
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
154 |
155 |   /// Holds the current receive task
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: value of type '_' expected to be instance of class or class-constrained type
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
255 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
256 |                        didOpenWithProtocol protocol: String?) {
257 |     // The Websocket is connected. Set Transport state to open and inform delegate
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:254:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |                        webSocketTask: URLSessionWebSocketTask,
256 |                        didOpenWithProtocol protocol: String?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:266:39: error: cannot find type 'URLSessionWebSocketTask' in scope
264 |
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
268 |                        reason: Data?) {
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:267:48: error: cannot find type 'URLSessionWebSocketTask' in scope
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
268 |                        reason: Data?) {
269 |     // A close frame was received from the server.
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:265:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |   }
264 |
265 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:274:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |   }
273 |
274 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |                        task: URLSessionTask,
276 |                        didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:275:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 |   open func urlSession(_ session: URLSession,
275 |                        task: URLSessionTask,
    |                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |                        didCompleteWithError error: Error?) {
277 |     // The task has terminated. Inform the delegate that the transport has closed abnormally
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:311:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |   }
310 |
311 |   private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
    |                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |     // Set the state of the Transport to closed
313 |     self.readyState = .closed
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:214:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
212 |
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
215 |     var request = URLRequest(url: url)
216 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:214:97: error: 'nil' requires a contextual type
212 |
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
    |                                                                                                 `- error: 'nil' requires a contextual type
215 |     var request = URLRequest(url: url)
216 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:215:19: error: cannot find 'URLRequest' in scope
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
215 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
216 |
217 |     headers.forEach { (key: String, value: Any) in
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:222:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
220 |     }
221 |
222 |     self.task = self.session?.webSocketTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
223 |
224 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:236:27: error: cannot find 'URLSessionWebSocketTask' in scope
234 |      3. Provide default .normalClosure function
235 |      */
236 |     guard let closeCode = URLSessionWebSocketTask.CloseCode.init(rawValue: code) else {
    |                           `- error: cannot find 'URLSessionWebSocketTask' in scope
237 |       fatalError("Could not create a CloseCode with invalid code: [\(code)].")
238 |     }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:242:19: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
240 |     self.readyState = .closing
241 |     self.task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
242 |     self.session?.finishTasksAndInvalidate()
    |                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
243 |     receiveMessageTask?.cancel()
244 |   }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:247:22: error: cannot infer contextual base in reference to member 'string'
245 |
246 |   open func send(data: Data) {
247 |     self.task?.send(.string(String(data: data, encoding: .utf8)!)) { (error) in
    |                      `- error: cannot infer contextual base in reference to member 'string'
248 |       // TODO: What is the behavior when an error occurs?
249 |     }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:281:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
279 |     guard let err = error else { return }
280 |
281 |     self.abnormalErrorReceived(err, response: task.response)
    |                                                    `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
282 |   }
283 |
[14/14] 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.
 76 |    - Parameter response: Response from the server indicating that the WebSocket handshake was successful and the connection has been upgraded to webSockets
 77 |    */
 78 |   func onOpen(response: URLResponse?)
    |                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 79 |
 80 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:87:40: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 85 |
 86 |    */
 87 |   func onError(error: Error, response: URLResponse?)
    |                                        `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 88 |
 89 |   /**
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:140:61: error: cannot find type 'URLSessionWebSocketDelegate' in scope
138 |  */
139 | @available(macOS 10.15, iOS 13, watchOS 6, tvOS 13, *)
140 | open class URLSessionTransport: NSObject, PhoenixTransport, URLSessionWebSocketDelegate {
    |                                                             `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
141 |
142 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:147:31: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |
146 |   /// The URLSession configuration
147 |   internal let configuration: URLSessionConfiguration
    |                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:150:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |
149 |   /// The underling URLSession. Assigned during `connect()`
150 |   private var session: URLSession? = nil
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
151 |
152 |   /// The ongoing task. Assigned during `connect()`
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:153:21: error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 |   /// The ongoing task. Assigned during `connect()`
153 |   private var task: URLSessionWebSocketTask? = nil
    |                     `- error: cannot find type 'URLSessionWebSocketTask' in scope
154 |
155 |   /// Holds the current receive task
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:40: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:183:67: error: value of type '_' expected to be instance of class or class-constrained type
181 |    - parameter configuration: Provide your own URLSessionConfiguration. Uses `.default` if none provided
182 |    */
183 |   public init(url: URL, configuration: URLSessionConfiguration = .default) {
    |                                                                   `- error: value of type '_' expected to be instance of class or class-constrained type
184 |
185 |     // URLSession requires that the endpoint be "wss" instead of "https".
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:255:39: error: cannot find type 'URLSessionWebSocketTask' in scope
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
255 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
256 |                        didOpenWithProtocol protocol: String?) {
257 |     // The Websocket is connected. Set Transport state to open and inform delegate
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:254:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 |
253 |   // MARK: - URLSessionWebSocketDelegate
254 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
255 |                        webSocketTask: URLSessionWebSocketTask,
256 |                        didOpenWithProtocol protocol: String?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:266:39: error: cannot find type 'URLSessionWebSocketTask' in scope
264 |
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
    |                                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
268 |                        reason: Data?) {
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:267:48: error: cannot find type 'URLSessionWebSocketTask' in scope
265 |   open func urlSession(_ session: URLSession,
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                                `- error: cannot find type 'URLSessionWebSocketTask' in scope
268 |                        reason: Data?) {
269 |     // A close frame was received from the server.
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:265:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
263 |   }
264 |
265 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
266 |                        webSocketTask: URLSessionWebSocketTask,
267 |                        didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:274:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |   }
273 |
274 |   open func urlSession(_ session: URLSession,
    |                                   `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 |                        task: URLSessionTask,
276 |                        didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:275:30: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
273 |
274 |   open func urlSession(_ session: URLSession,
275 |                        task: URLSessionTask,
    |                              `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
276 |                        didCompleteWithError error: Error?) {
277 |     // The task has terminated. Inform the delegate that the transport has closed abnormally
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:311:64: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |   }
310 |
311 |   private func abnormalErrorReceived(_ error: Error, response: URLResponse?) {
    |                                                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |     // Set the state of the Transport to closed
313 |     self.readyState = .closed
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:214:20: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
212 |
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
    |                    `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
215 |     var request = URLRequest(url: url)
216 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:214:97: error: 'nil' requires a contextual type
212 |
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
    |                                                                                                 `- error: 'nil' requires a contextual type
215 |     var request = URLRequest(url: url)
216 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:215:19: error: cannot find 'URLRequest' in scope
213 |     // Create the session and websocket task
214 |     self.session = URLSession(configuration: self.configuration, delegate: self, delegateQueue: nil)
215 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
216 |
217 |     headers.forEach { (key: String, value: Any) in
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:222:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
220 |     }
221 |
222 |     self.task = self.session?.webSocketTask(with: request)
    |                               `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'
223 |
224 |
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:236:27: error: cannot find 'URLSessionWebSocketTask' in scope
234 |      3. Provide default .normalClosure function
235 |      */
236 |     guard let closeCode = URLSessionWebSocketTask.CloseCode.init(rawValue: code) else {
    |                           `- error: cannot find 'URLSessionWebSocketTask' in scope
237 |       fatalError("Could not create a CloseCode with invalid code: [\(code)].")
238 |     }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:242:19: error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
240 |     self.readyState = .closing
241 |     self.task?.cancel(with: closeCode, reason: reason?.data(using: .utf8))
242 |     self.session?.finishTasksAndInvalidate()
    |                   `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'
243 |     receiveMessageTask?.cancel()
244 |   }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:247:22: error: cannot infer contextual base in reference to member 'string'
245 |
246 |   open func send(data: Data) {
247 |     self.task?.send(.string(String(data: data, encoding: .utf8)!)) { (error) in
    |                      `- error: cannot infer contextual base in reference to member 'string'
248 |       // TODO: What is the behavior when an error occurs?
249 |     }
/host/spi-builder-workspace/Sources/SwiftPhoenixClient/PhoenixTransport.swift:281:52: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
279 |     guard let err = error else { return }
280 |
281 |     self.abnormalErrorReceived(err, response: task.response)
    |                                                    `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
282 |   }
283 |
BUILD FAILURE 6.3 linux