The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WalletConnectSwift, reference 1.7.0 (e0bbfd), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 17:00:06 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/WalletConnect/WalletConnectSwift.git
Reference: 1.7.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/WalletConnect/WalletConnectSwift
 * tag               1.7.0      -> FETCH_HEAD
HEAD is now at e0bbfd1 Merge pull request #128 from WalletConnect/bump-lib-version
Cloned https://github.com/WalletConnect/WalletConnectSwift.git
Revision (git rev-parse @):
e0bbfd16d5c54a7aa7e316956d765399c6332fa2
SUCCESS checkout https://github.com/WalletConnect/WalletConnectSwift.git at 1.7.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/WalletConnect/WalletConnectSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-1EA4D86E10B52AF.txt
[4/95] Compiling CryptoSwift OFB.swift
[5/95] Compiling CryptoSwift PCBC.swift
[6/95] Compiling CryptoSwift Blowfish.swift
[7/95] Compiling CryptoSwift CBCMAC.swift
[8/95] Compiling CryptoSwift CMAC.swift
[9/95] Compiling CryptoSwift Addition.swift
[10/95] Compiling CryptoSwift BigInt.swift
[11/95] Compiling CryptoSwift BigUInt.swift
[12/95] Compiling CryptoSwift Bitwise Ops.swift
[13/95] Compiling CryptoSwift CS.swift
[14/105] Emitting module CryptoSwift
[15/105] Compiling CryptoSwift ISO78164Padding.swift
[16/105] Compiling CryptoSwift Int+Extension.swift
[17/105] Compiling CryptoSwift MD5.swift
[18/105] Compiling CryptoSwift NoPadding.swift
[19/105] Compiling CryptoSwift Operators.swift
[20/105] Compiling CryptoSwift PBKDF1.swift
[21/105] Compiling CryptoSwift PBKDF2.swift
[22/105] Compiling CryptoSwift PKCS5.swift
[23/105] Compiling CryptoSwift PKCS7.swift
[24/105] Compiling CryptoSwift PKCS7Padding.swift
[25/105] Compiling CryptoSwift ChaCha20+Foundation.swift
[26/105] Compiling CryptoSwift Data+Extension.swift
[27/105] Compiling CryptoSwift HMAC+Foundation.swift
[28/105] Compiling CryptoSwift Rabbit+Foundation.swift
[29/105] Compiling CryptoSwift String+FoundationExtension.swift
[30/105] Compiling CryptoSwift Utils+Foundation.swift
[31/105] Compiling CryptoSwift Generics.swift
[32/105] Compiling CryptoSwift HKDF.swift
[33/105] Compiling CryptoSwift HMAC.swift
[34/105] Compiling CryptoSwift ISO10126Padding.swift
[35/105] Compiling CryptoSwift Codable.swift
[36/105] Compiling CryptoSwift Comparable.swift
[37/105] Compiling CryptoSwift Data Conversion.swift
[38/105] Compiling CryptoSwift Division.swift
[39/105] Compiling CryptoSwift Exponentiation.swift
[40/105] Compiling CryptoSwift Floating Point Conversion.swift
[41/105] Compiling CryptoSwift GCD.swift
[42/105] Compiling CryptoSwift Hashable.swift
[43/105] Compiling CryptoSwift Integer Conversion.swift
[44/105] Compiling CryptoSwift Multiplication.swift
[45/105] Compiling CryptoSwift Prime Test.swift
[46/105] Compiling CryptoSwift Random.swift
[47/105] Compiling CryptoSwift Shifts.swift
[48/105] Compiling CryptoSwift Square Root.swift
[49/105] Compiling CryptoSwift Strideable.swift
[50/105] Compiling CryptoSwift String Conversion.swift
[51/105] Compiling CryptoSwift Subtraction.swift
[52/105] Compiling CryptoSwift Words and Bits.swift
[53/105] Compiling CryptoSwift ChaCha20.swift
[54/105] Compiling CryptoSwift Checksum.swift
[55/105] Compiling CryptoSwift AEAD.swift
[56/105] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[57/105] Compiling CryptoSwift AES.Cryptors.swift
[58/105] Compiling CryptoSwift AES.swift
[59/105] Compiling CryptoSwift Array+Extension.swift
[60/105] Compiling CryptoSwift Authenticator.swift
[61/105] Compiling CryptoSwift BatchedCollection.swift
[62/105] Compiling CryptoSwift Bit.swift
[63/105] Compiling CryptoSwift BlockCipher.swift
[64/105] Compiling CryptoSwift BlockDecryptor.swift
[65/105] Compiling CryptoSwift BlockEncryptor.swift
[66/105] Compiling CryptoSwift StreamEncryptor.swift
[67/105] Compiling CryptoSwift String+Extension.swift
[68/105] Compiling CryptoSwift UInt128.swift
[69/105] Compiling CryptoSwift UInt16+Extension.swift
[70/105] Compiling CryptoSwift UInt32+Extension.swift
[71/105] Compiling CryptoSwift UInt64+Extension.swift
[72/105] Compiling CryptoSwift UInt8+Extension.swift
[73/105] Compiling CryptoSwift Updatable.swift
[74/105] Compiling CryptoSwift Utils.swift
[75/105] Compiling CryptoSwift ZeroPadding.swift
[76/105] Compiling CryptoSwift BlockMode.swift
[77/105] Compiling CryptoSwift BlockModeOptions.swift
[78/105] Compiling CryptoSwift CBC.swift
[79/105] Compiling CryptoSwift CCM.swift
[80/105] Compiling CryptoSwift CFB.swift
[81/105] Compiling CryptoSwift CTR.swift
[82/105] Compiling CryptoSwift CipherModeWorker.swift
[83/105] Compiling CryptoSwift ECB.swift
[84/105] Compiling CryptoSwift GCM.swift
[85/105] Compiling CryptoSwift OCB.swift
[86/105] Compiling CryptoSwift Cipher.swift
[87/105] Compiling CryptoSwift Collection+Extension.swift
[88/105] Compiling CryptoSwift CompactMap.swift
[89/105] Compiling CryptoSwift Cryptor.swift
[90/105] Compiling CryptoSwift Cryptors.swift
[91/105] Compiling CryptoSwift Digest.swift
[92/105] Compiling CryptoSwift DigestType.swift
[93/105] Compiling CryptoSwift AES+Foundation.swift
[94/105] Compiling CryptoSwift Array+Foundation.swift
[95/105] Compiling CryptoSwift Blowfish+Foundation.swift
[96/105] Compiling CryptoSwift Padding.swift
[97/105] Compiling CryptoSwift Poly1305.swift
[98/105] Compiling CryptoSwift RSA.swift
[99/105] Compiling CryptoSwift Rabbit.swift
[100/105] Compiling CryptoSwift SHA1.swift
[101/105] Compiling CryptoSwift SHA2.swift
[102/105] Compiling CryptoSwift SHA3.swift
[103/105] Compiling CryptoSwift Scrypt.swift
[104/105] Compiling CryptoSwift SecureBytes.swift
[105/105] Compiling CryptoSwift StreamDecryptor.swift
[106/122] Compiling WalletConnectSwift WCURL.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[107/122] Compiling WalletConnectSwift Response.swift
[108/122] Compiling WalletConnectSwift Server.swift
[109/122] Compiling WalletConnectSwift Serializer.swift
[110/122] Compiling WalletConnectSwift UpdateSessionHandler.swift
[111/122] Compiling WalletConnectSwift Session.swift
[112/122] Compiling WalletConnectSwift Logger.swift
[113/122] Compiling WalletConnectSwift Request.swift
[114/122] Compiling WalletConnectSwift Communicator.swift
[115/122] Compiling WalletConnectSwift HandshakeHandler.swift
[116/122] Emitting module WalletConnectSwift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:21:23: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
 21 |     private var task: URLSessionWebSocketTask?
    |                       `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 22 |     private lazy var session: URLSession = {
 23 |         let delegate = WebSocketConnectionDelegate(eventHandler: { [weak self] event in
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:122:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
120 |     }
121 |
122 |     func close(closeCode: URLSessionWebSocketTask.CloseCode = .normalClosure) {
    |          |                `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
123 |         pingTimer?.invalidate()
124 |         task?.cancel(with: closeCode, reason: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:144:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
140 | private extension WebSocketConnection {
141 |
142 |     enum WebSocketEvent {
    |          `- note: add @available attribute to enclosing enum
143 |         case connected
144 |         case disconnected(URLSessionWebSocketTask.CloseCode)
    |                           `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
145 |         case messageReceived(String)
146 |         case messageSent(String)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:240:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
236 |         }
237 |
238 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
239 |             _ session: URLSession,
240 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
241 |             didOpenWithProtocol protocol: String?
242 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:249:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
251 |             reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:250:37: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                     `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
251 |             reason: Data?
252 |         ) {
[117/122] Compiling WalletConnectSwift JSONRPC_2_0.swift
[118/122] Compiling WalletConnectSwift PubSubMessage.swift
[119/122] Compiling WalletConnectSwift AES_256_CBC_HMAC_SHA256_Codec.swift
[120/122] Compiling WalletConnectSwift BridgeTransport.swift
[121/122] Compiling WalletConnectSwift WebSocketConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:21:23: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
 21 |     private var task: URLSessionWebSocketTask?
    |                       `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 22 |     private lazy var session: URLSession = {
 23 |         let delegate = WebSocketConnectionDelegate(eventHandler: { [weak self] event in
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:122:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
120 |     }
121 |
122 |     func close(closeCode: URLSessionWebSocketTask.CloseCode = .normalClosure) {
    |          |                `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
123 |         pingTimer?.invalidate()
124 |         task?.cancel(with: closeCode, reason: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:144:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
140 | private extension WebSocketConnection {
141 |
142 |     enum WebSocketEvent {
    |          `- note: add @available attribute to enclosing enum
143 |         case connected
144 |         case disconnected(URLSessionWebSocketTask.CloseCode)
    |                           `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
145 |         case messageReceived(String)
146 |         case messageSent(String)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:240:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
236 |         }
237 |
238 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
239 |             _ session: URLSession,
240 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
241 |             didOpenWithProtocol protocol: String?
242 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:249:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
251 |             reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:250:37: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                     `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
251 |             reason: Data?
252 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:117:24: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
109 |     }
110 |
111 |     func open() {
    |          `- note: add @available attribute to enclosing instance method
112 |         if task != nil {
113 |             close()
    :
115 |
116 |         let request = URLRequest(url: url.bridgeURL, timeoutInterval: timeoutInterval)
117 |         task = session.webSocketTask(with: request)
    |                        |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
118 |         task?.resume()
119 |         receive()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:130:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
126 |     }
127 |
128 |     func send(_ text: String) {
    |          `- note: add @available attribute to enclosing instance method
129 |         guard isConnected else { return }
130 |         task?.send(.string(text)) { [weak self] error in
    |               |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
131 |             if let error = error {
132 |                 self?.handleEvent(.connnectionError(error))
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:154:14: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
138 | }
139 |
140 | private extension WebSocketConnection {
    |         `- note: add @available attribute to enclosing extension
141 |
142 |     enum WebSocketEvent {
    :
150 |     }
151 |
152 |     func receive() {
    |          `- note: add @available attribute to enclosing instance method
153 |         guard let task = task else { return }
154 |         task.receive { [weak self] result in
    |              |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
155 |             switch result {
156 |             case .success(let message):
[122/122] Compiling WalletConnectSwift Client.swift
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:21:23: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
 21 |     private var task: URLSessionWebSocketTask?
    |                       `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 22 |     private lazy var session: URLSession = {
 23 |         let delegate = WebSocketConnectionDelegate(eventHandler: { [weak self] event in
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:122:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
120 |     }
121 |
122 |     func close(closeCode: URLSessionWebSocketTask.CloseCode = .normalClosure) {
    |          |                `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
    |          `- note: add @available attribute to enclosing instance method
123 |         pingTimer?.invalidate()
124 |         task?.cancel(with: closeCode, reason: nil)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:144:27: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
140 | private extension WebSocketConnection {
141 |
142 |     enum WebSocketEvent {
    |          `- note: add @available attribute to enclosing enum
143 |         case connected
144 |         case disconnected(URLSessionWebSocketTask.CloseCode)
    |                           `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
145 |         case messageReceived(String)
146 |         case messageSent(String)
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:240:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
236 |         }
237 |
238 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
239 |             _ session: URLSession,
240 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
241 |             didOpenWithProtocol protocol: String?
242 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:249:28: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
    |                            `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
251 |             reason: Data?
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:250:37: error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
228 |     }
229 |
230 |     class WebSocketConnectionDelegate: NSObject, URLSessionWebSocketDelegate, URLSessionTaskDelegate {
    |           `- note: add @available attribute to enclosing class
231 |         private let eventHandler: (WebSocketEvent) -> Void
232 |         private var connectivityCheckTimer: Timer?
    :
245 |         }
246 |
247 |         func urlSession(
    |              `- note: add @available attribute to enclosing instance method
248 |             _ session: URLSession,
249 |             webSocketTask: URLSessionWebSocketTask,
250 |             didCloseWith closeCode: URLSessionWebSocketTask.CloseCode,
    |                                     `- error: 'URLSessionWebSocketTask' is only available in macOS 10.15 or newer
251 |             reason: Data?
252 |         ) {
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:117:24: error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
109 |     }
110 |
111 |     func open() {
    |          `- note: add @available attribute to enclosing instance method
112 |         if task != nil {
113 |             close()
    :
115 |
116 |         let request = URLRequest(url: url.bridgeURL, timeoutInterval: timeoutInterval)
117 |         task = session.webSocketTask(with: request)
    |                        |- error: 'webSocketTask(with:)' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
118 |         task?.resume()
119 |         receive()
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:130:15: error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
 16 |
 17 |
 18 | class WebSocketConnection {
    |       `- note: add @available attribute to enclosing class
 19 |     let url: WCURL
 20 |     private var isConnected: Bool = false
    :
126 |     }
127 |
128 |     func send(_ text: String) {
    |          `- note: add @available attribute to enclosing instance method
129 |         guard isConnected else { return }
130 |         task?.send(.string(text)) { [weak self] error in
    |               |- error: 'send(_:completionHandler:)' is only available in macOS 10.15 or newer
    |               `- note: add 'if #available' version check
131 |             if let error = error {
132 |                 self?.handleEvent(.connnectionError(error))
/Users/admin/builder/spi-builder-workspace/Sources/Internal/WebSocketConnection.swift:154:14: error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
138 | }
139 |
140 | private extension WebSocketConnection {
    |         `- note: add @available attribute to enclosing extension
141 |
142 |     enum WebSocketEvent {
    :
150 |     }
151 |
152 |     func receive() {
    |          `- note: add @available attribute to enclosing instance method
153 |         guard let task = task else { return }
154 |         task.receive { [weak self] result in
    |              |- error: 'receive(completionHandler:)' is only available in macOS 10.15 or newer
    |              `- note: add 'if #available' version check
155 |             switch result {
156 |             case .success(let message):
[123/123] Compiling WalletConnectSwift WalletConnect.swift
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/12941] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.74s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.5.1 (2.29s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.5.1
BUILD FAILURE 6.2 macosSpm