This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build FalClient with Swift 6.0 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fal-ai/fal-swift.git
Reference: main
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/fal-ai/fal-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4a589b9 chore: update realtime example to use turbo
Cloned https://github.com/fal-ai/fal-swift.git
Revision (git rev-parse @):
4a589b99b4b029250652c8a6d3f73188e9a10184
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/fal-ai/fal-swift.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/fal-ai/fal-swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/nnabeyang/swift-msgpack.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Quick.git
[1/439] Fetching cwlcatchexception
[440/986] Fetching cwlcatchexception, swift-msgpack
[987/2233] Fetching cwlcatchexception, swift-msgpack, cwlpreconditiontesting
[2234/16782] Fetching cwlcatchexception, swift-msgpack, cwlpreconditiontesting, quick
Fetched https://github.com/Quick/Quick.git from cache (1.03s)
[1/18640] Fetching nimble
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (2.23s)
Fetched https://github.com/nnabeyang/swift-msgpack.git from cache (2.24s)
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (2.24s)
Fetched https://github.com/Quick/Nimble.git from cache (2.26s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 13.2.0 (0.64s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 7.3.1 (0.58s)
Computing version for https://github.com/nnabeyang/swift-msgpack.git
Computed https://github.com/nnabeyang/swift-msgpack.git at 0.3.3 (0.56s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.2.0 (0.57s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.2 (0.53s)
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 7.3.1
Creating working copy for https://github.com/nnabeyang/swift-msgpack.git
Working copy of https://github.com/nnabeyang/swift-msgpack.git resolved at 0.3.3
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.2
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.2.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 13.2.0
warning: 'nimble': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/PrivacyInfo.xcprivacy
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/9] Compiling SwiftMsgpack MsgPackTimestamp.swift
[5/9] Emitting module SwiftMsgpack
[6/9] Compiling SwiftMsgpack AnyCodable.swift
[7/9] Compiling SwiftMsgpack MsgPackDecoder.swift
[8/9] Compiling SwiftMsgpack MsgPackEncoder.swift
[9/9] Compiling SwiftMsgpack MsgPackScanner.swift
[11/25] Compiling FalClient Realtime.swift
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: error: cannot find type 'URLSessionWebSocketTask' in scope
 42 | }
 43 |
 44 | typealias SendFunction = (URLSessionWebSocketTask.Message) throws -> Void
    |                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 45 | typealias CloseFunction = () -> Void
 46 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: error: @escaping attribute only applies to function types
 74 |     var closeReference: CloseFunction
 75 |
 76 |     init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
    |                  `- error: @escaping attribute only applies to function types
 77 |         sendReference = send
 78 |         closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:150:30: error: cannot find type 'URLSessionWebSocketTask' in scope
148 | private let TokenExpirationInterval: DispatchTimeInterval = .minutes(1)
149 |
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:152:38: error: cannot find type 'URLSessionWebSocketDelegate' in scope
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |                                      `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
153 |     let app: String
154 |     let client: Client
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:54: error: cannot infer contextual base in reference to member 'default'
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:161:23: error: cannot find type 'URLSessionWebSocketTask' in scope
159 |     private let session = URLSession(configuration: .default)
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
    |                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
162 |     private var token: String?
163 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:279:26: error: cannot find type 'URLSessionWebSocketTask' in scope
277 |     }
278 |
279 |     func send(_ message: URLSessionWebSocketTask.Message) throws {
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
280 |         if let task {
281 |             task.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:303:26: error: cannot find type 'URLSessionWebSocketTask' in scope
301 |     func urlSession(
302 |         _: URLSession,
303 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
304 |         didOpenWithProtocol _: String?
305 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:302:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 |     func urlSession(
302 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |         webSocketTask _: URLSessionWebSocketTask,
304 |         didOpenWithProtocol _: 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/FalClient/Realtime.swift:318:26: error: cannot find type 'URLSessionWebSocketTask' in scope
316 |     func urlSession(
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
320 |         reason _: Data?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:319:28: error: cannot find type 'URLSessionWebSocketTask' in scope
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
320 |         reason _: Data?
321 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:317:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |
316 |     func urlSession(
317 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: 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/FalClient/Realtime.swift:329:5: warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
327 | }
328 |
329 | var connectionPool: [String: WebSocketConnection] = [:]
    |     |- warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'connectionPool' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'connectionPool' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | /// The real-time client contract.
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:423:64: error: @escaping attribute only applies to function types
421 |         connectionKey: String = UUID().uuidString,
422 |         throttleInterval: DispatchTimeInterval = .milliseconds(128),
423 |         connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
    |                                                                `- error: @escaping attribute only applies to function types
424 |         onResult completion: @escaping (Result<ResultType, Error>) -> Void
425 |     ) -> BaseRealtimeConnection<InputType> {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:103:28: error: cannot infer contextual base in reference to member 'string'
101 |             throw FalRealtimeError.invalidInput
102 |         }
103 |         try sendReference(.string(json))
    |                            `- error: cannot infer contextual base in reference to member 'string'
104 |     }
105 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:108:28: error: cannot infer contextual base in reference to member 'data'
106 |     func sendBinary(_ data: Input) throws {
107 |         let payload = try MsgPackEncoder().encode(data)
108 |         try sendReference(.data(payload))
    |                            `- error: cannot infer contextual base in reference to member 'data'
109 |     }
110 | }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:195:29: warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |       `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
153 |     let app: String
154 |     let client: Client
    :
193 |                         let tokenExpirationDeadline: DispatchTime = .now() + TokenExpirationInterval - .seconds(20)
194 |                         DispatchQueue.main.asyncAfter(deadline: tokenExpirationDeadline) {
195 |                             self.token = nil
    |                             `- warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 |                         }
197 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:230:42: warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |       `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
153 |     let app: String
154 |     let client: Client
    :
228 |             ]
229 |             do {
230 |                 let response = try await self.client.sendRequest(
    |                                          `- warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 |                     to: url,
232 |                     input: body.json(),
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:236:21: warning: capture of 'completion' with non-sendable type '(Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                 )
235 |                 if let token = String(data: response, encoding: .utf8) {
236 |                     completion(.success(token.replacingOccurrences(of: "\"", with: "")))
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
237 |                 } else {
238 |                     completion(.failure(FalRealtimeError.unauthorized))
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:247:37: error: cannot infer type of closure parameter 'incomingMessage' without a type annotation
245 |
246 |     func receiveMessage() {
247 |         task?.receive { [weak self] incomingMessage in
    |                                     `- error: cannot infer type of closure parameter 'incomingMessage' without a type annotation
248 |             switch incomingMessage {
249 |             case let .success(message):
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:281:46: error: cannot infer type of closure parameter 'error' without a type annotation
279 |     func send(_ message: URLSessionWebSocketTask.Message) throws {
280 |         if let task {
281 |             task.send(message) { [weak self] error in
    |                                              `- error: cannot infer type of closure parameter 'error' without a type annotation
282 |                 if let error {
283 |                     self?.onError(error)
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:297:29: error: cannot infer contextual base in reference to member 'normalClosure'
295 |
296 |     func close() {
297 |         task?.cancel(with: .normalClosure, reason: "Programmatically closed".data(using: .utf8))
    |                             `- error: cannot infer contextual base in reference to member 'normalClosure'
298 |         task = nil
299 |     }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:298:16: error: 'nil' requires a contextual type
296 |     func close() {
297 |         task?.cancel(with: .normalClosure, reason: "Programmatically closed".data(using: .utf8))
298 |         task = nil
    |                `- error: 'nil' requires a contextual type
299 |     }
300 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:313:27: error: 'nil' requires a contextual type
311 |             }
312 |         }
313 |         enqueuedMessage = nil
    |                           `- error: 'nil' requires a contextual type
314 |     }
315 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:322:21: error: cannot infer contextual base in reference to member 'normalClosure'
320 |         reason _: Data?
321 |     ) {
322 |         if code != .normalClosure {
    |                     `- error: cannot infer contextual base in reference to member 'normalClosure'
323 |             onError(FalRealtimeError.connectionError(code: code.rawValue))
324 |         }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:325:16: error: 'nil' requires a contextual type
323 |             onError(FalRealtimeError.connectionError(code: code.rawValue))
324 |         }
325 |         task = nil
    |                `- error: 'nil' requires a contextual type
326 |     }
327 | }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:411:17: error: 'RealtimeConnection' cannot be constructed because it has no accessible initializers
409 |             throttleInterval: throttleInterval,
410 |             connectionFactory: { send, close in
411 |                 RealtimeConnection(send, close)
    |                 `- error: 'RealtimeConnection' cannot be constructed because it has no accessible initializers
412 |             },
413 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Storage.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         // Here we use URLSession directly instead of the client to avoid going
111 |         // through the proxy, we need to hit the blob url directly.
112 |         var request = URLRequest(url: URL(string: uploadUrl.uploadUrl)!)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "PUT"
114 |         request.httpBody = data
/host/spi-builder-workspace/Sources/FalClient/Storage.swift:118:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
116 |         request.setValue(String(data.count), forHTTPHeaderField: "Content-Length")
117 |
118 |         let (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
119 |         try client.checkResponseStatus(for: response, withData: data)
120 |
[12/25] Compiling FalClient Storage.swift
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: error: cannot find type 'URLSessionWebSocketTask' in scope
 42 | }
 43 |
 44 | typealias SendFunction = (URLSessionWebSocketTask.Message) throws -> Void
    |                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 45 | typealias CloseFunction = () -> Void
 46 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: error: @escaping attribute only applies to function types
 74 |     var closeReference: CloseFunction
 75 |
 76 |     init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
    |                  `- error: @escaping attribute only applies to function types
 77 |         sendReference = send
 78 |         closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:150:30: error: cannot find type 'URLSessionWebSocketTask' in scope
148 | private let TokenExpirationInterval: DispatchTimeInterval = .minutes(1)
149 |
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:152:38: error: cannot find type 'URLSessionWebSocketDelegate' in scope
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |                                      `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
153 |     let app: String
154 |     let client: Client
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:54: error: cannot infer contextual base in reference to member 'default'
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:161:23: error: cannot find type 'URLSessionWebSocketTask' in scope
159 |     private let session = URLSession(configuration: .default)
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
    |                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
162 |     private var token: String?
163 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:279:26: error: cannot find type 'URLSessionWebSocketTask' in scope
277 |     }
278 |
279 |     func send(_ message: URLSessionWebSocketTask.Message) throws {
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
280 |         if let task {
281 |             task.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:303:26: error: cannot find type 'URLSessionWebSocketTask' in scope
301 |     func urlSession(
302 |         _: URLSession,
303 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
304 |         didOpenWithProtocol _: String?
305 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:302:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 |     func urlSession(
302 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |         webSocketTask _: URLSessionWebSocketTask,
304 |         didOpenWithProtocol _: 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/FalClient/Realtime.swift:318:26: error: cannot find type 'URLSessionWebSocketTask' in scope
316 |     func urlSession(
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
320 |         reason _: Data?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:319:28: error: cannot find type 'URLSessionWebSocketTask' in scope
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
320 |         reason _: Data?
321 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:317:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |
316 |     func urlSession(
317 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: 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/FalClient/Realtime.swift:329:5: warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
327 | }
328 |
329 | var connectionPool: [String: WebSocketConnection] = [:]
    |     |- warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'connectionPool' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'connectionPool' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | /// The real-time client contract.
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:423:64: error: @escaping attribute only applies to function types
421 |         connectionKey: String = UUID().uuidString,
422 |         throttleInterval: DispatchTimeInterval = .milliseconds(128),
423 |         connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
    |                                                                `- error: @escaping attribute only applies to function types
424 |         onResult completion: @escaping (Result<ResultType, Error>) -> Void
425 |     ) -> BaseRealtimeConnection<InputType> {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:103:28: error: cannot infer contextual base in reference to member 'string'
101 |             throw FalRealtimeError.invalidInput
102 |         }
103 |         try sendReference(.string(json))
    |                            `- error: cannot infer contextual base in reference to member 'string'
104 |     }
105 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:108:28: error: cannot infer contextual base in reference to member 'data'
106 |     func sendBinary(_ data: Input) throws {
107 |         let payload = try MsgPackEncoder().encode(data)
108 |         try sendReference(.data(payload))
    |                            `- error: cannot infer contextual base in reference to member 'data'
109 |     }
110 | }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:195:29: warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |       `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
153 |     let app: String
154 |     let client: Client
    :
193 |                         let tokenExpirationDeadline: DispatchTime = .now() + TokenExpirationInterval - .seconds(20)
194 |                         DispatchQueue.main.asyncAfter(deadline: tokenExpirationDeadline) {
195 |                             self.token = nil
    |                             `- warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
196 |                         }
197 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:230:42: warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |       `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
153 |     let app: String
154 |     let client: Client
    :
228 |             ]
229 |             do {
230 |                 let response = try await self.client.sendRequest(
    |                                          `- warning: capture of 'self' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
231 |                     to: url,
232 |                     input: body.json(),
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:236:21: warning: capture of 'completion' with non-sendable type '(Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
234 |                 )
235 |                 if let token = String(data: response, encoding: .utf8) {
236 |                     completion(.success(token.replacingOccurrences(of: "\"", with: "")))
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<String, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
237 |                 } else {
238 |                     completion(.failure(FalRealtimeError.unauthorized))
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:247:37: error: cannot infer type of closure parameter 'incomingMessage' without a type annotation
245 |
246 |     func receiveMessage() {
247 |         task?.receive { [weak self] incomingMessage in
    |                                     `- error: cannot infer type of closure parameter 'incomingMessage' without a type annotation
248 |             switch incomingMessage {
249 |             case let .success(message):
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:281:46: error: cannot infer type of closure parameter 'error' without a type annotation
279 |     func send(_ message: URLSessionWebSocketTask.Message) throws {
280 |         if let task {
281 |             task.send(message) { [weak self] error in
    |                                              `- error: cannot infer type of closure parameter 'error' without a type annotation
282 |                 if let error {
283 |                     self?.onError(error)
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:297:29: error: cannot infer contextual base in reference to member 'normalClosure'
295 |
296 |     func close() {
297 |         task?.cancel(with: .normalClosure, reason: "Programmatically closed".data(using: .utf8))
    |                             `- error: cannot infer contextual base in reference to member 'normalClosure'
298 |         task = nil
299 |     }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:298:16: error: 'nil' requires a contextual type
296 |     func close() {
297 |         task?.cancel(with: .normalClosure, reason: "Programmatically closed".data(using: .utf8))
298 |         task = nil
    |                `- error: 'nil' requires a contextual type
299 |     }
300 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:313:27: error: 'nil' requires a contextual type
311 |             }
312 |         }
313 |         enqueuedMessage = nil
    |                           `- error: 'nil' requires a contextual type
314 |     }
315 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:322:21: error: cannot infer contextual base in reference to member 'normalClosure'
320 |         reason _: Data?
321 |     ) {
322 |         if code != .normalClosure {
    |                     `- error: cannot infer contextual base in reference to member 'normalClosure'
323 |             onError(FalRealtimeError.connectionError(code: code.rawValue))
324 |         }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:325:16: error: 'nil' requires a contextual type
323 |             onError(FalRealtimeError.connectionError(code: code.rawValue))
324 |         }
325 |         task = nil
    |                `- error: 'nil' requires a contextual type
326 |     }
327 | }
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:411:17: error: 'RealtimeConnection' cannot be constructed because it has no accessible initializers
409 |             throttleInterval: throttleInterval,
410 |             connectionFactory: { send, close in
411 |                 RealtimeConnection(send, close)
    |                 `- error: 'RealtimeConnection' cannot be constructed because it has no accessible initializers
412 |             },
413 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Storage.swift:112:23: error: cannot find 'URLRequest' in scope
110 |         // Here we use URLSession directly instead of the client to avoid going
111 |         // through the proxy, we need to hit the blob url directly.
112 |         var request = URLRequest(url: URL(string: uploadUrl.uploadUrl)!)
    |                       `- error: cannot find 'URLRequest' in scope
113 |         request.httpMethod = "PUT"
114 |         request.httpBody = data
/host/spi-builder-workspace/Sources/FalClient/Storage.swift:118:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
116 |         request.setValue(String(data.count), forHTTPHeaderField: "Content-Length")
117 |
118 |         let (data, response) = try await URLSession.shared.data(for: request)
    |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
119 |         try client.checkResponseStatus(for: response, withData: data)
120 |
[13/27] Compiling FalClient Queue+Codable.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Codable.swift:5:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public struct EmptyInput: Encodable {
   |               `- note: consider making struct 'EmptyInput' conform to the 'Sendable' protocol
 5 |     public static let empty = EmptyInput()
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 | }
 7 |
[14/27] Compiling FalClient Queue.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Codable.swift:5:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public struct EmptyInput: Encodable {
   |               `- note: consider making struct 'EmptyInput' conform to the 'Sendable' protocol
 5 |     public static let empty = EmptyInput()
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 | }
 7 |
[15/27] Compiling FalClient QueueStatus.swift
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: error: cannot find type 'URLSessionWebSocketTask' in scope
 42 | }
 43 |
 44 | typealias SendFunction = (URLSessionWebSocketTask.Message) throws -> Void
    |                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 45 | typealias CloseFunction = () -> Void
 46 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:423:64: error: @escaping attribute only applies to function types
421 |         connectionKey: String = UUID().uuidString,
422 |         throttleInterval: DispatchTimeInterval = .milliseconds(128),
423 |         connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
    |                                                                `- error: @escaping attribute only applies to function types
424 |         onResult completion: @escaping (Result<ResultType, Error>) -> Void
425 |     ) -> BaseRealtimeConnection<InputType> {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: error: @escaping attribute only applies to function types
 74 |     var closeReference: CloseFunction
 75 |
 76 |     init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
    |                  `- error: @escaping attribute only applies to function types
 77 |         sendReference = send
 78 |         closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime+Codable.swift:16:17: error: 'TypedRealtimeConnection<Input>' cannot be constructed because it has no accessible initializers
14 |             throttleInterval: throttleInterval,
15 |             connectionFactory: { send, close in
16 |                 TypedRealtimeConnection(send, close)
   |                 `- error: 'TypedRealtimeConnection<Input>' cannot be constructed because it has no accessible initializers
17 |             },
18 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Realtime+Codable.swift:16:17: error: generic parameter 'Input' could not be inferred
14 |             throttleInterval: throttleInterval,
15 |             connectionFactory: { send, close in
16 |                 TypedRealtimeConnection(send, close)
   |                 |- error: generic parameter 'Input' could not be inferred
   |                 `- note: explicitly specify the generic arguments to fix this issue
17 |             },
18 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:116:38: note: 'Input' declared as parameter to type 'TypedRealtimeConnection'
114 |
115 | /// Connection implementation that can be used to send messages using a custom `Encodable` type.
116 | public class TypedRealtimeConnection<Input: Encodable>: BaseRealtimeConnection<Input> {}
    |                                      `- note: 'Input' declared as parameter to type 'TypedRealtimeConnection'
117 |
118 | /// This is a list of apps deployed before formal realtime support. Their URLs follow
[16/27] Compiling FalClient Realtime+Codable.swift
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: error: cannot find type 'URLSessionWebSocketTask' in scope
 42 | }
 43 |
 44 | typealias SendFunction = (URLSessionWebSocketTask.Message) throws -> Void
    |                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 45 | typealias CloseFunction = () -> Void
 46 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:423:64: error: @escaping attribute only applies to function types
421 |         connectionKey: String = UUID().uuidString,
422 |         throttleInterval: DispatchTimeInterval = .milliseconds(128),
423 |         connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
    |                                                                `- error: @escaping attribute only applies to function types
424 |         onResult completion: @escaping (Result<ResultType, Error>) -> Void
425 |     ) -> BaseRealtimeConnection<InputType> {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: error: @escaping attribute only applies to function types
 74 |     var closeReference: CloseFunction
 75 |
 76 |     init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
    |                  `- error: @escaping attribute only applies to function types
 77 |         sendReference = send
 78 |         closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime+Codable.swift:16:17: error: 'TypedRealtimeConnection<Input>' cannot be constructed because it has no accessible initializers
14 |             throttleInterval: throttleInterval,
15 |             connectionFactory: { send, close in
16 |                 TypedRealtimeConnection(send, close)
   |                 `- error: 'TypedRealtimeConnection<Input>' cannot be constructed because it has no accessible initializers
17 |             },
18 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Realtime+Codable.swift:16:17: error: generic parameter 'Input' could not be inferred
14 |             throttleInterval: throttleInterval,
15 |             connectionFactory: { send, close in
16 |                 TypedRealtimeConnection(send, close)
   |                 |- error: generic parameter 'Input' could not be inferred
   |                 `- note: explicitly specify the generic arguments to fix this issue
17 |             },
18 |             onResult: completion
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:116:38: note: 'Input' declared as parameter to type 'TypedRealtimeConnection'
114 |
115 | /// Connection implementation that can be used to send messages using a custom `Encodable` type.
116 | public class TypedRealtimeConnection<Input: Encodable>: BaseRealtimeConnection<Input> {}
    |                                      `- note: 'Input' declared as parameter to type 'TypedRealtimeConnection'
117 |
118 | /// This is a list of apps deployed before formal realtime support. Their URLs follow
[17/27] Compiling FalClient Client+Codable.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Codable.swift:5:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public struct EmptyInput: Encodable {
   |               `- note: consider making struct 'EmptyInput' conform to the 'Sendable' protocol
 5 |     public static let empty = EmptyInput()
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 | }
 7 |
/host/spi-builder-workspace/Sources/FalClient/Client.swift:29:12: warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | }
 15 |
 16 | public struct RunOptions: RequestOptions {
    |               `- note: consider making struct 'RunOptions' conform to the 'Sendable' protocol
 17 |     public let path: String
 18 |     public let httpMethod: HttpMethod
    :
 27 | }
 28 |
 29 | public let DefaultRunOptions: RunOptions = .withMethod(.post)
    |            |- warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'DefaultRunOptions' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 | public typealias OnQueueUpdate = (QueueStatus) -> Void
[18/27] Compiling FalClient Client+Config.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Codable.swift:5:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public struct EmptyInput: Encodable {
   |               `- note: consider making struct 'EmptyInput' conform to the 'Sendable' protocol
 5 |     public static let empty = EmptyInput()
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 | }
 7 |
/host/spi-builder-workspace/Sources/FalClient/Client.swift:29:12: warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | }
 15 |
 16 | public struct RunOptions: RequestOptions {
    |               `- note: consider making struct 'RunOptions' conform to the 'Sendable' protocol
 17 |     public let path: String
 18 |     public let httpMethod: HttpMethod
    :
 27 | }
 28 |
 29 | public let DefaultRunOptions: RunOptions = .withMethod(.post)
    |            |- warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'DefaultRunOptions' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 | public typealias OnQueueUpdate = (QueueStatus) -> Void
[19/27] Compiling FalClient TimeInterval+Extensions.swift
[20/27] Compiling FalClient Utility.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/27] Compiling FalClient FalClient.swift
/host/spi-builder-workspace/Sources/FalClient/FalError.swift:3:10: warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 1 |
 2 | enum FalError: Error {
 3 |     case httpError(status: Int, message: String, payload: Payload?)
   |          `- warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 4 |     case invalidResultFormat
 5 |     case invalidUrl(url: String)
/host/spi-builder-workspace/Sources/FalClient/Payload.swift:10:13: note: consider making enum 'Payload' conform to the 'Sendable' protocol
  8 | /// It supports binary data as well, so it can be kept and transformed if needed
  9 | /// before it's encoded to JSON or any other supported format (e.g. msgpack).
 10 | public enum Payload: Codable {
    |             `- note: consider making enum 'Payload' conform to the 'Sendable' protocol
 11 |     case string(String)
 12 |     case int(Int)
[22/27] Compiling FalClient FalError.swift
/host/spi-builder-workspace/Sources/FalClient/FalError.swift:3:10: warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 1 |
 2 | enum FalError: Error {
 3 |     case httpError(status: Int, message: String, payload: Payload?)
   |          `- warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 4 |     case invalidResultFormat
 5 |     case invalidUrl(url: String)
/host/spi-builder-workspace/Sources/FalClient/Payload.swift:10:13: note: consider making enum 'Payload' conform to the 'Sendable' protocol
  8 | /// It supports binary data as well, so it can be kept and transformed if needed
  9 | /// before it's encoded to JSON or any other supported format (e.g. msgpack).
 10 | public enum Payload: Codable {
    |             `- note: consider making enum 'Payload' conform to the 'Sendable' protocol
 11 |     case string(String)
 12 |     case int(Int)
[23/27] Compiling FalClient FalImage.swift
[24/27] Compiling FalClient Payload.swift
[25/27] Emitting module FalClient
/host/spi-builder-workspace/Sources/FalClient/Client+Codable.swift:5:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public struct EmptyInput: Encodable {
   |               `- note: consider making struct 'EmptyInput' conform to the 'Sendable' protocol
 5 |     public static let empty = EmptyInput()
   |                       |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'EmptyInput' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'empty' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 | }
 7 |
/host/spi-builder-workspace/Sources/FalClient/Client.swift:29:12: warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | }
 15 |
 16 | public struct RunOptions: RequestOptions {
    |               `- note: consider making struct 'RunOptions' conform to the 'Sendable' protocol
 17 |     public let path: String
 18 |     public let httpMethod: HttpMethod
    :
 27 | }
 28 |
 29 | public let DefaultRunOptions: RunOptions = .withMethod(.post)
    |            |- warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'DefaultRunOptions' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 | public typealias OnQueueUpdate = (QueueStatus) -> Void
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:3:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 1 | import Foundation
 2 |
 3 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 4 |     /// Returns `true` if `statusCode` is in range 200...299.
 5 |     /// Otherwise `false`.
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:60:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
   |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard response is HTTPURLResponse else {
62 |             throw FalError.invalidResultFormat
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/FalClient/FalError.swift:3:10: warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 1 |
 2 | enum FalError: Error {
 3 |     case httpError(status: Int, message: String, payload: Payload?)
   |          `- warning: associated value 'httpError(status:message:payload:)' of 'Sendable'-conforming enum 'FalError' has non-sendable type 'Payload'; this is an error in the Swift 6 language mode
 4 |     case invalidResultFormat
 5 |     case invalidUrl(url: String)
/host/spi-builder-workspace/Sources/FalClient/Payload.swift:10:13: note: consider making enum 'Payload' conform to the 'Sendable' protocol
  8 | /// It supports binary data as well, so it can be kept and transformed if needed
  9 | /// before it's encoded to JSON or any other supported format (e.g. msgpack).
 10 | public enum Payload: Codable {
    |             `- note: consider making enum 'Payload' conform to the 'Sendable' protocol
 11 |     case string(String)
 12 |     case int(Int)
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:44:27: error: cannot find type 'URLSessionWebSocketTask' in scope
 42 | }
 43 |
 44 | typealias SendFunction = (URLSessionWebSocketTask.Message) throws -> Void
    |                           `- error: cannot find type 'URLSessionWebSocketTask' in scope
 45 | typealias CloseFunction = () -> Void
 46 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:76:18: error: @escaping attribute only applies to function types
 74 |     var closeReference: CloseFunction
 75 |
 76 |     init(_ send: @escaping SendFunction, _ close: @escaping CloseFunction) {
    |                  `- error: @escaping attribute only applies to function types
 77 |         sendReference = send
 78 |         closeReference = close
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:150:30: error: cannot find type 'URLSessionWebSocketTask' in scope
148 | private let TokenExpirationInterval: DispatchTimeInterval = .minutes(1)
149 |
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
    |                              `- error: cannot find type 'URLSessionWebSocketTask' in scope
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:152:38: error: cannot find type 'URLSessionWebSocketDelegate' in scope
150 | typealias WebSocketMessage = URLSessionWebSocketTask.Message
151 |
152 | class WebSocketConnection: NSObject, URLSessionWebSocketDelegate {
    |                                      `- error: cannot find type 'URLSessionWebSocketDelegate' in scope
153 |     let app: String
154 |     let client: Client
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                           `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:159:54: error: cannot infer contextual base in reference to member 'default'
157 |
158 |     private let queue = DispatchQueue(label: "ai.fal.WebSocketConnection.\(UUID().uuidString)")
159 |     private let session = URLSession(configuration: .default)
    |                                                      `- error: cannot infer contextual base in reference to member 'default'
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:161:23: error: cannot find type 'URLSessionWebSocketTask' in scope
159 |     private let session = URLSession(configuration: .default)
160 |     private var enqueuedMessage: WebSocketMessage? = nil
161 |     private var task: URLSessionWebSocketTask?
    |                       `- error: cannot find type 'URLSessionWebSocketTask' in scope
162 |     private var token: String?
163 |
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:279:26: error: cannot find type 'URLSessionWebSocketTask' in scope
277 |     }
278 |
279 |     func send(_ message: URLSessionWebSocketTask.Message) throws {
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
280 |         if let task {
281 |             task.send(message) { [weak self] error in
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:303:26: error: cannot find type 'URLSessionWebSocketTask' in scope
301 |     func urlSession(
302 |         _: URLSession,
303 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
304 |         didOpenWithProtocol _: String?
305 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:302:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
300 |
301 |     func urlSession(
302 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
303 |         webSocketTask _: URLSessionWebSocketTask,
304 |         didOpenWithProtocol _: 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/FalClient/Realtime.swift:318:26: error: cannot find type 'URLSessionWebSocketTask' in scope
316 |     func urlSession(
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
    |                          `- error: cannot find type 'URLSessionWebSocketTask' in scope
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
320 |         reason _: Data?
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:319:28: error: cannot find type 'URLSessionWebSocketTask' in scope
317 |         _: URLSession,
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: URLSessionWebSocketTask.CloseCode,
    |                            `- error: cannot find type 'URLSessionWebSocketTask' in scope
320 |         reason _: Data?
321 |     ) {
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:317:12: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
315 |
316 |     func urlSession(
317 |         _: URLSession,
    |            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
318 |         webSocketTask _: URLSessionWebSocketTask,
319 |         didCloseWith code: 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/FalClient/Realtime.swift:329:5: warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
327 | }
328 |
329 | var connectionPool: [String: WebSocketConnection] = [:]
    |     |- warning: var 'connectionPool' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |     |- note: convert 'connectionPool' to a 'let' constant to make 'Sendable' shared state immutable
    |     |- note: annotate 'connectionPool' with '@MainActor' if property should only be accessed from the main actor
    |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
330 |
331 | /// The real-time client contract.
/host/spi-builder-workspace/Sources/FalClient/Realtime.swift:423:64: error: @escaping attribute only applies to function types
421 |         connectionKey: String = UUID().uuidString,
422 |         throttleInterval: DispatchTimeInterval = .milliseconds(128),
423 |         connectionFactory createRealtimeConnection: @escaping (@escaping SendFunction, @escaping CloseFunction) -> BaseRealtimeConnection<InputType>,
    |                                                                `- error: @escaping attribute only applies to function types
424 |         onResult completion: @escaping (Result<ResultType, Error>) -> Void
425 |     ) -> BaseRealtimeConnection<InputType> {
[26/27] Compiling FalClient Client+Request.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:3:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 1 | import Foundation
 2 |
 3 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 4 |     /// Returns `true` if `statusCode` is in range 200...299.
 5 |     /// Otherwise `false`.
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:60:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
   |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard response is HTTPURLResponse else {
62 |             throw FalError.invalidResultFormat
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/FalClient/Client+Request.swift:35:23: error: cannot find 'URLRequest' in scope
33 |         }
34 |
35 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = options.httpMethod.rawValue.uppercased()
37 |         request.setValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:55:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 |             request.httpBody = input
54 |         }
55 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 |         try checkResponseStatus(for: response, withData: data)
57 |         return data
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:61:24: warning: 'is' test is always true
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
61 |         guard response is HTTPURLResponse else {
   |                        `- warning: 'is' test is always true
62 |             throw FalError.invalidResultFormat
63 |         }
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:61:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
61 |         guard response is HTTPURLResponse else {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |             throw FalError.invalidResultFormat
63 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccessful'
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccessful'
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:66:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
   |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 |             let message = errorPayload?["detail"].stringValue
68 |                 ?? errorPayload?.stringValue
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:69:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
67 |             let message = errorPayload?["detail"].stringValue
68 |                 ?? errorPayload?.stringValue
69 |                 ?? HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
70 |             throw FalError.httpError(
71 |                 status: statusCode,
/host/spi-builder-workspace/Sources/FalClient/Client.swift:29:12: warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | }
 15 |
 16 | public struct RunOptions: RequestOptions {
    |               `- note: consider making struct 'RunOptions' conform to the 'Sendable' protocol
 17 |     public let path: String
 18 |     public let httpMethod: HttpMethod
    :
 27 | }
 28 |
 29 | public let DefaultRunOptions: RunOptions = .withMethod(.post)
    |            |- warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'DefaultRunOptions' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 | public typealias OnQueueUpdate = (QueueStatus) -> Void
[27/27] Compiling FalClient Client.swift
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:3:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 1 | import Foundation
 2 |
 3 | extension HTTPURLResponse {
   | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
 4 |     /// Returns `true` if `statusCode` is in range 200...299.
 5 |     /// Otherwise `false`.
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:60:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 |     }
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
   |                                            `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 |         guard response is HTTPURLResponse else {
62 |             throw FalError.invalidResultFormat
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/FalClient/Client+Request.swift:35:23: error: cannot find 'URLRequest' in scope
33 |         }
34 |
35 |         var request = URLRequest(url: url)
   |                       `- error: cannot find 'URLRequest' in scope
36 |         request.httpMethod = options.httpMethod.rawValue.uppercased()
37 |         request.setValue("application/json", forHTTPHeaderField: "accept")
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:55:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
53 |             request.httpBody = input
54 |         }
55 |         let (data, response) = try await URLSession.shared.data(for: request)
   |                                                     `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
56 |         try checkResponseStatus(for: response, withData: data)
57 |         return data
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:61:24: warning: 'is' test is always true
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
61 |         guard response is HTTPURLResponse else {
   |                        `- warning: 'is' test is always true
62 |             throw FalError.invalidResultFormat
63 |         }
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:61:27: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
59 |
60 |     func checkResponseStatus(for response: URLResponse, withData data: Data) throws {
61 |         guard response is HTTPURLResponse else {
   |                           `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |             throw FalError.invalidResultFormat
63 |         }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:40: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                        `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                            `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' 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 HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:64:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccessful'
62 |             throw FalError.invalidResultFormat
63 |         }
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
   |                                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'isSuccessful'
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:66:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
64 |         if let httpResponse = response as? HTTPURLResponse, !httpResponse.isSuccessful {
65 |             let errorPayload = try? Payload.create(fromJSON: data)
66 |             let statusCode = httpResponse.statusCode
   |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
67 |             let message = errorPayload?["detail"].stringValue
68 |                 ?? errorPayload?.stringValue
/host/spi-builder-workspace/Sources/FalClient/Client+Request.swift:69:36: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
67 |             let message = errorPayload?["detail"].stringValue
68 |                 ?? errorPayload?.stringValue
69 |                 ?? HTTPURLResponse.localizedString(forStatusCode: statusCode)
   |                                    `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
70 |             throw FalError.httpError(
71 |                 status: statusCode,
/host/spi-builder-workspace/Sources/FalClient/Client.swift:29:12: warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 14 | }
 15 |
 16 | public struct RunOptions: RequestOptions {
    |               `- note: consider making struct 'RunOptions' conform to the 'Sendable' protocol
 17 |     public let path: String
 18 |     public let httpMethod: HttpMethod
    :
 27 | }
 28 |
 29 | public let DefaultRunOptions: RunOptions = .withMethod(.post)
    |            |- warning: let 'DefaultRunOptions' is not concurrency-safe because non-'Sendable' type 'RunOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'DefaultRunOptions' with '@MainActor' if property should only be accessed from the main actor
    |            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 30 |
 31 | public typealias OnQueueUpdate = (QueueStatus) -> Void
BUILD FAILURE 6.0 linux
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.