Build Information
Failed to build WalletConnectSwift, reference 1.7.0 (e0bbfd), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 08:42:24 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.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
Fetching https://github.com/krzyzanowskim/CryptoSwift.git
[1/13341] Fetching cryptoswift
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (1.98s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.5.1 (2.67s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.5.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"traits": [
"default"
],
"dependencies": [
{
"identity": "walletconnectswift",
"name": "WalletConnectSwift",
"url": "https://github.com/WalletConnect/WalletConnectSwift.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/WalletConnectSwift",
"traits": [
"default"
],
"dependencies": [
{
"identity": "cryptoswift",
"name": "CryptoSwift",
"url": "https://github.com/krzyzanowskim/CryptoSwift.git",
"version": "1.5.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CryptoSwift",
"traits": [
"default"
],
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/WalletConnect/WalletConnectSwift.git
[1/2123] Fetching walletconnectswift
Fetched https://github.com/WalletConnect/WalletConnectSwift.git from cache (1.00s)
Fetching https://github.com/krzyzanowskim/CryptoSwift.git from cache
Fetched https://github.com/krzyzanowskim/CryptoSwift.git from cache (0.49s)
Computing version for https://github.com/krzyzanowskim/CryptoSwift.git
Computed https://github.com/krzyzanowskim/CryptoSwift.git at 1.5.1 (0.55s)
Creating working copy for https://github.com/krzyzanowskim/CryptoSwift.git
Working copy of https://github.com/krzyzanowskim/CryptoSwift.git resolved at 1.5.1
Creating working copy for https://github.com/WalletConnect/WalletConnectSwift.git
Working copy of https://github.com/WalletConnect/WalletConnectSwift.git resolved at 1.7.0 (e0bbfd1)
warning: '.resolve-product-dependencies': dependency 'walletconnectswift' is not used by any target
Found 1 product dependencies
- CryptoSwift
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.3
Building package at path: $PWD
https://github.com/WalletConnect/WalletConnectSwift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--6988338F2F200930.txt
[4/95] Compiling CryptoSwift BlockMode.swift
[5/95] Compiling CryptoSwift BlockModeOptions.swift
[6/95] Compiling CryptoSwift CBC.swift
[7/95] Compiling CryptoSwift CCM.swift
[8/95] Compiling CryptoSwift CFB.swift
[9/95] Compiling CryptoSwift CTR.swift
[10/95] Compiling CryptoSwift CipherModeWorker.swift
[11/95] Compiling CryptoSwift ECB.swift
[12/95] Compiling CryptoSwift GCM.swift
[13/95] Compiling CryptoSwift OCB.swift
[14/105] Compiling CryptoSwift Prime Test.swift
[15/105] Compiling CryptoSwift Random.swift
[16/105] Compiling CryptoSwift Shifts.swift
[17/105] Compiling CryptoSwift Square Root.swift
[18/105] Compiling CryptoSwift Strideable.swift
[19/105] Compiling CryptoSwift String Conversion.swift
[20/105] Compiling CryptoSwift Subtraction.swift
[21/105] Compiling CryptoSwift Words and Bits.swift
[22/105] Compiling CryptoSwift ChaCha20.swift
[23/105] Compiling CryptoSwift Checksum.swift
[24/105] Emitting module CryptoSwift
[25/105] Compiling CryptoSwift AEAD.swift
[26/105] Compiling CryptoSwift AEADChaCha20Poly1305.swift
[27/105] Compiling CryptoSwift AES.Cryptors.swift
[28/105] Compiling CryptoSwift AES.swift
[29/105] Compiling CryptoSwift Array+Extension.swift
[30/105] Compiling CryptoSwift Authenticator.swift
[31/105] Compiling CryptoSwift BatchedCollection.swift
[32/105] Compiling CryptoSwift Bit.swift
[33/105] Compiling CryptoSwift BlockCipher.swift
[34/105] Compiling CryptoSwift BlockDecryptor.swift
[35/105] Compiling CryptoSwift BlockEncryptor.swift
[36/105] Compiling CryptoSwift Cipher.swift
[37/105] Compiling CryptoSwift Collection+Extension.swift
[38/105] Compiling CryptoSwift CompactMap.swift
[39/105] Compiling CryptoSwift Cryptor.swift
[40/105] Compiling CryptoSwift Cryptors.swift
[41/105] Compiling CryptoSwift Digest.swift
[42/105] Compiling CryptoSwift DigestType.swift
[43/105] Compiling CryptoSwift AES+Foundation.swift
[44/105] Compiling CryptoSwift Array+Foundation.swift
[45/105] Compiling CryptoSwift Blowfish+Foundation.swift
[46/105] Compiling CryptoSwift OFB.swift
[47/105] Compiling CryptoSwift PCBC.swift
[48/105] Compiling CryptoSwift Blowfish.swift
[49/105] Compiling CryptoSwift CBCMAC.swift
[50/105] Compiling CryptoSwift CMAC.swift
[51/105] Compiling CryptoSwift Addition.swift
[52/105] Compiling CryptoSwift BigInt.swift
[53/105] Compiling CryptoSwift BigUInt.swift
[54/105] Compiling CryptoSwift Bitwise Ops.swift
[55/105] Compiling CryptoSwift CS.swift
[56/105] Compiling CryptoSwift ISO78164Padding.swift
[57/105] Compiling CryptoSwift Int+Extension.swift
[58/105] Compiling CryptoSwift MD5.swift
[59/105] Compiling CryptoSwift NoPadding.swift
[60/105] Compiling CryptoSwift Operators.swift
[61/105] Compiling CryptoSwift PBKDF1.swift
[62/105] Compiling CryptoSwift PBKDF2.swift
[63/105] Compiling CryptoSwift PKCS5.swift
[64/105] Compiling CryptoSwift PKCS7.swift
[65/105] Compiling CryptoSwift PKCS7Padding.swift
[66/105] Compiling CryptoSwift ChaCha20+Foundation.swift
[67/105] Compiling CryptoSwift Data+Extension.swift
[68/105] Compiling CryptoSwift HMAC+Foundation.swift
[69/105] Compiling CryptoSwift Rabbit+Foundation.swift
[70/105] Compiling CryptoSwift String+FoundationExtension.swift
[71/105] Compiling CryptoSwift Utils+Foundation.swift
[72/105] Compiling CryptoSwift Generics.swift
[73/105] Compiling CryptoSwift HKDF.swift
[74/105] Compiling CryptoSwift HMAC.swift
[75/105] Compiling CryptoSwift ISO10126Padding.swift
[76/105] Compiling CryptoSwift Codable.swift
[77/105] Compiling CryptoSwift Comparable.swift
[78/105] Compiling CryptoSwift Data Conversion.swift
[79/105] Compiling CryptoSwift Division.swift
[80/105] Compiling CryptoSwift Exponentiation.swift
[81/105] Compiling CryptoSwift Floating Point Conversion.swift
[82/105] Compiling CryptoSwift GCD.swift
[83/105] Compiling CryptoSwift Hashable.swift
[84/105] Compiling CryptoSwift Integer Conversion.swift
[85/105] Compiling CryptoSwift Multiplication.swift
[86/105] Compiling CryptoSwift Padding.swift
[87/105] Compiling CryptoSwift Poly1305.swift
[88/105] Compiling CryptoSwift RSA.swift
[89/105] Compiling CryptoSwift Rabbit.swift
[90/105] Compiling CryptoSwift SHA1.swift
[91/105] Compiling CryptoSwift SHA2.swift
[92/105] Compiling CryptoSwift SHA3.swift
[93/105] Compiling CryptoSwift Scrypt.swift
[94/105] Compiling CryptoSwift SecureBytes.swift
[95/105] Compiling CryptoSwift StreamDecryptor.swift
[96/105] Compiling CryptoSwift StreamEncryptor.swift
[97/105] Compiling CryptoSwift String+Extension.swift
[98/105] Compiling CryptoSwift UInt128.swift
[99/105] Compiling CryptoSwift UInt16+Extension.swift
[100/105] Compiling CryptoSwift UInt32+Extension.swift
[101/105] Compiling CryptoSwift UInt64+Extension.swift
[102/105] Compiling CryptoSwift UInt8+Extension.swift
[103/105] Compiling CryptoSwift Updatable.swift
[104/105] Compiling CryptoSwift Utils.swift
[105/105] Compiling CryptoSwift ZeroPadding.swift
[106/122] Compiling WalletConnectSwift WCURL.swift
[107/122] Compiling WalletConnectSwift Response.swift
[108/122] Compiling WalletConnectSwift Server.swift
[109/122] Compiling WalletConnectSwift Session.swift
[110/122] Compiling WalletConnectSwift Logger.swift
[111/122] Compiling WalletConnectSwift Request.swift
[112/123] Compiling WalletConnectSwift WalletConnect.swift
[113/123] Compiling WalletConnectSwift JSONRPC_2_0.swift
[114/123] Compiling WalletConnectSwift PubSubMessage.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[115/123] Compiling WalletConnectSwift Serializer.swift
[116/123] Compiling WalletConnectSwift UpdateSessionHandler.swift
[117/123] Compiling WalletConnectSwift Communicator.swift
[118/123] Compiling WalletConnectSwift HandshakeHandler.swift
[119/123] Compiling WalletConnectSwift AES_256_CBC_HMAC_SHA256_Codec.swift
[120/123] Compiling WalletConnectSwift BridgeTransport.swift
[121/123] 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 | ) {
[122/123] 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):
[123/123] 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):
BUILD FAILURE 6.3 macosSpm