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 GetStream with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/GetStream/stream-swift.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/GetStream/stream-swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0785e68 Fix broken and uncompilable GetStream with starscream 4.0.x (#48)
Cloned https://github.com/GetStream/stream-swift.git
Revision (git rev-parse @):
0785e68cbb3dda1092f65e2fc53d6eb91ba990a1
SUCCESS checkout https://github.com/GetStream/stream-swift.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/GetStream/stream-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-6F35C1178C84523A.txt
[8/59] Compiling Alamofire OperationQueue+Alamofire.swift
[9/59] Compiling Alamofire ParameterEncoder.swift
[10/61] Compiling Alamofire Notifications.swift
[13/61] Emitting module Starscream
[14/64] Compiling Alamofire MultipartFormData.swift
[15/64] Compiling Alamofire MultipartUpload.swift
[16/64] Compiling Alamofire NetworkReachabilityManager.swift
[17/64] Compiling Alamofire RedirectHandler.swift
[18/64] Compiling Alamofire RetryPolicy.swift
[21/64] Compiling Alamofire ParameterEncoding.swift
[22/64] Compiling Alamofire Protector.swift
[23/64] Compiling Swime Swime.swift
[24/64] Emitting module Swime
[25/64] Compiling Swime MimeType.swift
[26/64] Compiling Alamofire SessionDelegate.swift
[27/64] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[28/64] Compiling Alamofire URLEncodedFormEncoder.swift
[31/64] Compiling Alamofire HTTPHeaders.swift
[32/64] Compiling Alamofire HTTPMethod.swift
[33/64] Compiling Alamofire AlamofireExtended.swift
[34/64] Compiling Alamofire CachedResponseHandler.swift
[35/64] Compiling Alamofire DispatchQueue+Alamofire.swift
[36/64] Compiling Alamofire EventMonitor.swift
[37/64] Compiling Alamofire AFError.swift
[38/64] Compiling Alamofire Alamofire.swift
[40/64] Compiling Starscream TCPTransport.swift
[41/64] Compiling Starscream Transport.swift
[42/64] Compiling Alamofire Response.swift
[43/64] Compiling Alamofire ResponseSerialization.swift
[44/64] Compiling Alamofire Result+Alamofire.swift
[45/64] Compiling Alamofire Request.swift
[46/64] Compiling Alamofire RequestInterceptor.swift
[47/64] Compiling Alamofire RequestTaskMap.swift
[53/67] Compiling Alamofire URLRequest+Alamofire.swift
[54/67] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[55/67] Compiling Alamofire Validation.swift
[56/70] Emitting module Alamofire
error: emit-module command failed with exit code 1 (use -v to see invocation)
[65/92] Compiling Faye Channel.swift
[66/92] Compiling Faye RepeatingTimer.swift
[67/92] Compiling Faye Message.swift
/Users/admin/builder/spi-builder-workspace/Faye/Message.swift:49:28: warning: static property 'id' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
47 | extension Message {
48 |     struct Counter {
49 |         private static var id = 0
   |                            |- warning: static property 'id' 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 'id' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'id' 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
50 |
51 |         static var value: String {
[68/92] Compiling Faye ChannelName.swift
[69/92] Emitting module Faye
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:16:23: warning: static property 'logsEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | public final class Client {
 16 |     public static var logsEnabled = false
    |                       |- warning: static property 'logsEnabled' 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 'logsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logsEnabled' 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
 17 |
 18 |     private static let maxAttemptsToReconnect = 5
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:37:23: warning: static property 'config' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 |     /// A configuration to initialize the shared Client.
 37 |     public static var config = Config(url: URL(fileURLWithPath: "/"))
    |                       |- warning: static property 'config' 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 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'config' 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
 38 |
 39 |     /// A shared client.
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:41:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | public typealias ClientWriteDataCompletion = () -> Void
 14 |
 15 | public final class Client {
    |                    `- note: class 'Client' does not conform to the 'Sendable' protocol
 16 |     public static var logsEnabled = false
 17 |
    :
 39 |     /// A shared client.
 40 |     /// - Note: Setup `Client.config` before using a shared client.
 41 |     public static let shared = Client(url: Client.config.url, headers: Client.config.headers)
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 42 |
 43 |     /// Create a Faye client with a given `URL`.
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:143:1: error: type 'Client' does not conform to protocol 'WebSocketDelegate'
141 | // MARK: - Connection
142 |
143 | extension Client: WebSocketDelegate {
    | `- error: type 'Client' does not conform to protocol 'WebSocketDelegate'
144 |     public func didReceive(event: WebSocketEvent, client: WebSocketClient) {
    |                 `- note: candidate has non-matching type '(WebSocketEvent, any WebSocketClient) -> ()'
145 |         switch event {
146 |         case .connected(let headers):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/WebSocket.swift:91:10: note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, WebSocket) -> ()'
 89 |
 90 | public protocol WebSocketDelegate: class {
 91 |     func didReceive(event: WebSocketEvent, client: WebSocket)
    |          `- note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, WebSocket) -> ()'
 92 | }
 93 |
/Users/admin/builder/spi-builder-workspace/Faye/Message.swift:49:28: warning: static property 'id' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
47 | extension Message {
48 |     struct Counter {
49 |         private static var id = 0
   |                            |- warning: static property 'id' 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 'id' to a 'let' constant to make 'Sendable' shared state immutable
   |                            |- note: annotate 'id' 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
50 |
51 |         static var value: String {
[70/92] Compiling Faye Client.swift
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:16:23: warning: static property 'logsEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | public final class Client {
 16 |     public static var logsEnabled = false
    |                       |- warning: static property 'logsEnabled' 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 'logsEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'logsEnabled' 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
 17 |
 18 |     private static let maxAttemptsToReconnect = 5
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:37:23: warning: static property 'config' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 35 |
 36 |     /// A configuration to initialize the shared Client.
 37 |     public static var config = Config(url: URL(fileURLWithPath: "/"))
    |                       |- warning: static property 'config' 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 'config' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'config' 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
 38 |
 39 |     /// A shared client.
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:41:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
 13 | public typealias ClientWriteDataCompletion = () -> Void
 14 |
 15 | public final class Client {
    |                    `- note: class 'Client' does not conform to the 'Sendable' protocol
 16 |     public static var logsEnabled = false
 17 |
    :
 39 |     /// A shared client.
 40 |     /// - Note: Setup `Client.config` before using a shared client.
 41 |     public static let shared = Client(url: Client.config.url, headers: Client.config.headers)
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'Client' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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
 42 |
 43 |     /// Create a Faye client with a given `URL`.
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:143:1: error: type 'Client' does not conform to protocol 'WebSocketDelegate'
141 | // MARK: - Connection
142 |
143 | extension Client: WebSocketDelegate {
    | `- error: type 'Client' does not conform to protocol 'WebSocketDelegate'
144 |     public func didReceive(event: WebSocketEvent, client: WebSocketClient) {
    |                 `- note: candidate has non-matching type '(WebSocketEvent, any WebSocketClient) -> ()'
145 |         switch event {
146 |         case .connected(let headers):
/Users/admin/builder/spi-builder-workspace/.build/checkouts/Starscream/Sources/Starscream/WebSocket.swift:91:10: note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, WebSocket) -> ()'
 89 |
 90 | public protocol WebSocketDelegate: class {
 91 |     func didReceive(event: WebSocketEvent, client: WebSocket)
    |          `- note: protocol requires function 'didReceive(event:client:)' with type '(WebSocketEvent, WebSocket) -> ()'
 92 | }
 93 |
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:190:15: error: type 'WebSocketEvent' has no member 'peerClosed'
188 |             log("❌ WS Disconnect with error: \(error)")
189 |             //handleError(error)
190 |         case .peerClosed:
    |               `- error: type 'WebSocketEvent' has no member 'peerClosed'
191 |             isWebSocketConnected = false
192 |             log("❌ WS Disconnect: Connection closed")
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:188:50: warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
186 |         case .error(let error):
187 |             isWebSocketConnected = false
188 |             log("❌ WS Disconnect with error: \(error)")
    |                                                |- warning: string interpolation produces a debug description for an optional value; did you mean to make this explicit?
    |                                                |- note: use 'String(describing:)' to silence this warning
    |                                                `- note: provide a default value to avoid this warning
189 |             //handleError(error)
190 |         case .peerClosed:
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:146:29: warning: immutable value 'headers' was never used; consider replacing with '_' or removing it
144 |     public func didReceive(event: WebSocketEvent, client: WebSocketClient) {
145 |         switch event {
146 |         case .connected(let headers):
    |                             `- warning: immutable value 'headers' was never used; consider replacing with '_' or removing it
147 |             isWebSocketConnected = true
148 |             do {
/Users/admin/builder/spi-builder-workspace/Faye/Client.swift:324:94: warning: capture of 'self' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 13 | public typealias ClientWriteDataCompletion = () -> Void
 14 |
 15 | public final class Client {
    |                    `- note: class 'Client' does not conform to the 'Sendable' protocol
 16 |     public static var logsEnabled = false
 17 |
    :
322 |
323 |         log()
324 |         webSocket.callbackQueue.asyncAfter(deadline: .now() + timeInterval) { [weak self] in self?.connect() }
    |                                                                                              `- warning: capture of 'self' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
325 |     }
326 |
Fetching https://github.com/ReactiveX/RxSwift.git
Fetching https://github.com/sendyhalim/Swime
Fetching https://github.com/Quick/Nimble
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/Quick/Quick
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/Moya/ReactiveSwift.git
[1/45863] Fetching reactiveswift
[2/46285] Fetching reactiveswift, swime
[95/51153] Fetching reactiveswift, swime, starscream
[2214/79933] Fetching reactiveswift, swime, starscream, alamofire
[3789/94482] Fetching reactiveswift, swime, starscream, alamofire, quick
[12260/145898] Fetching reactiveswift, swime, starscream, alamofire, quick, rxswift
[29540/164538] Fetching reactiveswift, swime, starscream, alamofire, quick, rxswift, nimble
Fetched https://github.com/Quick/Quick from cache (1.79s)
[72416/149989] Fetching reactiveswift, swime, starscream, alamofire, rxswift, nimble
Fetching https://github.com/Moya/Moya.git
[149702/175190] Fetching reactiveswift, swime, starscream, alamofire, rxswift, nimble, moya
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.83s)
Fetched https://github.com/sendyhalim/Swime from cache (2.83s)
Fetched https://github.com/daltoniam/Starscream.git from cache (2.83s)
[115892/141120] Fetching reactiveswift, rxswift, nimble, moya
Fetched https://github.com/Moya/Moya.git from cache (2.47s)
Computing version for https://github.com/sendyhalim/Swime
Fetched https://github.com/Moya/ReactiveSwift.git from cache (4.55s)
Fetched https://github.com/Quick/Nimble from cache (4.55s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (4.55s)
Computed https://github.com/sendyhalim/Swime at 3.0.6 (2.76s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.4 (0.65s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.0 (0.66s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 7.3.4 (2.34s)
Computing version for https://github.com/Quick/Quick
Computed https://github.com/Quick/Quick at 1.3.4 (0.69s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.0 (0.72s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.77s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.0.4 (0.68s)
Creating working copy for https://github.com/Moya/ReactiveSwift.git
Working copy of https://github.com/Moya/ReactiveSwift.git resolved at 6.1.0
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.0.4
Creating working copy for https://github.com/daltoniam/Starscream.git
Working copy of https://github.com/daltoniam/Starscream.git resolved at 4.0.4
Creating working copy for https://github.com/sendyhalim/Swime
Working copy of https://github.com/sendyhalim/Swime resolved at 3.0.6
Creating working copy for https://github.com/Moya/Moya.git
Working copy of https://github.com/Moya/Moya.git resolved at 14.0.0
Creating working copy for https://github.com/Quick/Quick
Working copy of https://github.com/Quick/Quick resolved at 1.3.4
Creating working copy for https://github.com/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.1.0
Creating working copy for https://github.com/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 7.3.4
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.