Build Information
Failed to build GetStream, reference master (0785e6
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 20:17:31 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
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
Fetching https://github.com/sendyhalim/Swime
Fetching https://github.com/daltoniam/Starscream.git
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/Quick/Quick
Fetching https://github.com/Moya/ReactiveSwift.git
Fetching https://github.com/Quick/Nimble
Fetching https://github.com/Moya/Moya.git
[1/422] Fetching swime
[2/46285] Fetching swime, reactiveswift
[100/51187] Fetching swime, reactiveswift, starscream
[1351/65927] Fetching swime, reactiveswift, starscream, quick
[1699/91169] Fetching swime, reactiveswift, starscream, quick, moya
[6960/121186] Fetching swime, reactiveswift, starscream, quick, moya, alamofire
[50607/140461] Fetching swime, reactiveswift, starscream, quick, moya, alamofire, nimble
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.39s)
Fetched https://github.com/sendyhalim/Swime from cache (3.39s)
Fetching https://github.com/ReactiveX/RxSwift.git
[98650/110022] Fetching reactiveswift, starscream, quick, moya, nimble
[102313/162415] Fetching reactiveswift, starscream, quick, moya, nimble, rxswift
Fetched https://github.com/daltoniam/Starscream.git from cache (12.84s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (12.84s)
Fetched https://github.com/Quick/Quick from cache (12.84s)
Fetched https://github.com/Quick/Nimble from cache (12.84s)
Fetched https://github.com/Moya/Moya.git from cache (12.84s)
Computing version for https://github.com/sendyhalim/Swime
[17814/52393] Fetching rxswift
Computed https://github.com/sendyhalim/Swime at 3.0.6 (2.39s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.4 (0.55s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.0 (0.58s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (51.67s)
Computing version for https://github.com/Quick/Nimble
Computed https://github.com/Quick/Nimble at 7.3.4 (2.71s)
Computing version for https://github.com/Quick/Quick
Computed https://github.com/Quick/Quick at 1.3.4 (0.57s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.0 (0.57s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.58s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.0.4 (0.54s)
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/ReactiveX/RxSwift.git
Working copy of https://github.com/ReactiveX/RxSwift.git resolved at 5.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/Quick/Nimble
Working copy of https://github.com/Quick/Nimble resolved at 7.3.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/Quick/Quick
Working copy of https://github.com/Quick/Quick resolved at 1.3.4
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/Moya/ReactiveSwift.git
Working copy of https://github.com/Moya/ReactiveSwift.git resolved at 6.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
Fetching https://github.com/GetStream/stream-swift.git
[1/4861] Fetching stream-swift
Fetched https://github.com/GetStream/stream-swift.git from cache (1.33s)
Fetching https://github.com/sendyhalim/Swime from cache
Fetching https://github.com/daltoniam/Starscream.git from cache
Fetching https://github.com/Moya/Moya.git from cache
Fetched https://github.com/sendyhalim/Swime from cache (0.74s)
Fetched https://github.com/Moya/Moya.git from cache (0.74s)
Fetched https://github.com/daltoniam/Starscream.git from cache (0.74s)
Computing version for https://github.com/Moya/Moya.git
Computed https://github.com/Moya/Moya.git at 14.0.1 (0.53s)
Fetching https://github.com/Moya/ReactiveSwift.git from cache
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetching https://github.com/ReactiveX/RxSwift.git from cache
Fetching https://github.com/shibapm/Rocket
Fetching https://github.com/AliSoftware/OHHTTPStubs.git
Fetching https://github.com/Quick/Nimble.git from cache
Fetching https://github.com/Quick/Quick.git from cache
[1/1386] Fetching rocket
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.75s)
Fetched https://github.com/ReactiveX/RxSwift.git from cache (0.75s)
[112/9277] Fetching rocket, ohhttpstubs
Fetched https://github.com/AliSoftware/OHHTTPStubs.git from cache (2.34s)
Fetched https://github.com/shibapm/Rocket from cache (2.34s)
Fetched https://github.com/Quick/Quick.git from cache (2.34s)
Fetched https://github.com/Quick/Nimble.git from cache (2.35s)
Fetched https://github.com/Moya/ReactiveSwift.git from cache (2.35s)
Computing version for https://github.com/Moya/ReactiveSwift.git
Computed https://github.com/Moya/ReactiveSwift.git at 6.1.0 (0.02s)
Computing version for https://github.com/AliSoftware/OHHTTPStubs.git
Computed https://github.com/AliSoftware/OHHTTPStubs.git at 9.1.0 (0.58s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.2.1 (0.56s)
Computing version for https://github.com/shibapm/Rocket
Computed https://github.com/shibapm/Rocket at 1.3.0 (0.56s)
Fetching https://github.com/kareman/SwiftShell
Fetching https://github.com/jpsim/Yams
Fetching https://github.com/shibapm/PackageConfig.git
Fetching https://github.com/shibapm/Logger
[1/116] Fetching logger
[24/696] Fetching logger, packageconfig
[284/5559] Fetching logger, packageconfig, swiftshell
[1281/15495] Fetching logger, packageconfig, swiftshell, yams
Fetched https://github.com/kareman/SwiftShell from cache (1.28s)
[1491/10632] Fetching logger, packageconfig, yams
Fetched https://github.com/shibapm/Logger from cache (1.95s)
Fetched https://github.com/shibapm/PackageConfig.git from cache (1.95s)
Fetched https://github.com/jpsim/Yams from cache (1.95s)
Computing version for https://github.com/kareman/SwiftShell
Computed https://github.com/kareman/SwiftShell at 5.1.0 (0.54s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (0.54s)
Computing version for https://github.com/ReactiveX/RxSwift.git
Computed https://github.com/ReactiveX/RxSwift.git at 5.1.3 (0.03s)
Computing version for https://github.com/shibapm/PackageConfig.git
Computed https://github.com/shibapm/PackageConfig.git at 1.1.3 (0.52s)
Computing version for https://github.com/daltoniam/Starscream.git
Computed https://github.com/daltoniam/Starscream.git at 4.0.8 (0.55s)
Computing version for https://github.com/sendyhalim/Swime
error: package 'package.swift' is using Swift tools version 3.1.0 which is no longer supported; consider using '// swift-tools-version: 6.0' to specify the current tools version
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/GetStream/stream-swift.git
{
"dependencies" : [
{
"identity" : "moya",
"requirement" : {
"range" : [
{
"lower_bound" : "14.0.0",
"upper_bound" : "15.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Moya/Moya.git"
},
{
"identity" : "starscream",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/daltoniam/Starscream.git"
},
{
"identity" : "swime",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/sendyhalim/Swime"
}
],
"manifest_display_name" : "GetStream",
"name" : "GetStream",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "11.0"
}
],
"products" : [
{
"name" : "GetStream",
"targets" : [
"GetStream"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Faye",
"targets" : [
"Faye"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "GetStreamTests",
"module_type" : "SwiftTarget",
"name" : "GetStreamTests",
"path" : "Tests",
"sources" : [
"Core/AggregatedFeedTests.swift",
"Core/ClientParsingTests.swift",
"Core/ClientTests.swift",
"Core/CollectionTests.swift",
"Core/ExtensionsTests.swift",
"Core/FeedTests.swift",
"Core/FilesTests.swift",
"Core/NotificationFeedTests.swift",
"Core/OGTests.swift",
"Core/ReactionTests.swift",
"Core/UserTests.swift",
"Extensions/String+Extensions.swift",
"Extensions/TestCase.swift",
"Faye/FayeTests.swift"
],
"target_dependencies" : [
"GetStream"
],
"type" : "test"
},
{
"c99name" : "GetStream",
"module_type" : "SwiftTarget",
"name" : "GetStream",
"path" : "Sources",
"product_dependencies" : [
"Moya",
"Swime"
],
"product_memberships" : [
"GetStream"
],
"sources" : [
"Core/Activity/Activity.swift",
"Core/Activity/ActivityEndpoint.swift",
"Core/Activity/ActivityProtocol.swift",
"Core/Activity/Client+Activity.swift",
"Core/Activity/EnrichedActivity.swift",
"Core/Activity/OriginalRepresentable.swift",
"Core/Client/BaseURL.swift",
"Core/Client/Client+Setup.swift",
"Core/Client/Client.swift",
"Core/Client/ClientError.swift",
"Core/Client/ClientLogger.swift",
"Core/Client/Enrichable.swift",
"Core/Client/MissingReference.swift",
"Core/Client/Pagination.swift",
"Core/Client/Response.swift",
"Core/Client/Result+ParseResponse.swift",
"Core/Client/StreamTargetType.swift",
"Core/Client/Token.swift",
"Core/Collection/Client+Collection.swift",
"Core/Collection/CollectionEndpoint.swift",
"Core/Collection/CollectionObject.swift",
"Core/Collection/CollectionObjectProtocol.swift",
"Core/Extensions/Bundle+Extensions.swift",
"Core/Extensions/Codable+Extensions.swift",
"Core/Extensions/Dictionary+Extensions.swift",
"Core/Extensions/Result+Extensions.swift",
"Core/Feed/Aggregated Feed/AggregatedFeed.swift",
"Core/Feed/Aggregated Feed/Group.swift",
"Core/Feed/Aggregated Feed/Result+ParseGroup.swift",
"Core/Feed/Feed.swift",
"Core/Feed/FeedEndpoint.swift",
"Core/Feed/FeedId.swift",
"Core/Feed/FlatFeed.swift",
"Core/Feed/Following/Feed+Following.swift",
"Core/Feed/Following/Follower.swift",
"Core/Feed/Notification Feed/NotificationFeed.swift",
"Core/Feed/Notification Feed/NotificationGroup.swift",
"Core/Feed/Result+ParseFeed.swift",
"Core/Files and Images/Client+Files.swift",
"Core/Files and Images/File.swift",
"Core/Files and Images/FilesEndpoint.swift",
"Core/Files and Images/ImageProcess.swift",
"Core/Files and Images/Result+ParseUpload.swift",
"Core/Files and Images/Swime+Extensions.swift",
"Core/GetStream.swift",
"Core/Moya/AuthorizationMoyaPlugin.swift",
"Core/Moya/MoyaError+ClientError.swift",
"Core/Open Graph/Client+OpenGraph.swift",
"Core/Open Graph/OpenGraphEndpoint.swift",
"Core/Reactions/Client+Reaction.swift",
"Core/Reactions/Reaction.swift",
"Core/Reactions/ReactionEndpoint.swift",
"Core/Reactions/ReactionExtraDataProtocol.swift",
"Core/Reactions/ReactionKind.swift",
"Core/Reactions/ReactionProtocol.swift",
"Core/Reactions/Reactionable.swift",
"Core/Reactions/Reactions.swift",
"Core/Reactions/Result+ParseReaction.swift",
"Core/User/Client+User.swift",
"Core/User/User.swift",
"Core/User/UserEndpoint.swift",
"Core/User/UserProtocol.swift",
"Faye/Client+Faye.swift",
"Faye/Feed+Faye.swift",
"Faye/SubscriptionResponse.swift"
],
"target_dependencies" : [
"Faye"
],
"type" : "library"
},
{
"c99name" : "Faye",
"module_type" : "SwiftTarget",
"name" : "Faye",
"path" : "Faye",
"product_dependencies" : [
"Starscream"
],
"product_memberships" : [
"GetStream",
"Faye"
],
"sources" : [
"Channel.swift",
"ChannelName.swift",
"Client.swift",
"Message.swift",
"RepeatingTimer.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version--7754E27361AE5C74.txt
[8/59] Compiling Alamofire ParameterEncoding.swift
[9/59] Compiling Alamofire Protector.swift
[10/59] Compiling Alamofire RedirectHandler.swift
[11/62] Emitting module Alamofire
[12/62] Emitting module Swime
[13/62] Compiling Swime Swime.swift
[14/62] Compiling Swime MimeType.swift
[15/62] Compiling Alamofire MultipartFormData.swift
[16/62] Compiling Alamofire MultipartUpload.swift
[17/62] Compiling Alamofire NetworkReachabilityManager.swift
[18/62] Compiling Alamofire Notifications.swift
[19/62] Compiling Alamofire OperationQueue+Alamofire.swift
[20/62] Compiling Alamofire ParameterEncoder.swift
[28/62] Compiling Alamofire Request.swift
[29/62] Compiling Alamofire AlamofireExtended.swift
[30/62] Compiling Alamofire CachedResponseHandler.swift
[31/62] Compiling Alamofire AFError.swift
[32/62] Compiling Alamofire Alamofire.swift
[33/62] Compiling Alamofire HTTPHeaders.swift
[34/62] Compiling Alamofire HTTPMethod.swift
[35/62] Compiling Alamofire DispatchQueue+Alamofire.swift
[36/62] Compiling Alamofire EventMonitor.swift
[37/62] Emitting module Starscream
[40/64] Compiling Alamofire RetryPolicy.swift
[41/64] Compiling Alamofire ServerTrustEvaluation.swift
[42/64] Compiling Alamofire Session.swift
[43/64] Compiling Alamofire URLRequest+Alamofire.swift
[44/64] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[45/64] Compiling Alamofire Validation.swift
[46/64] Compiling Alamofire SessionDelegate.swift
[47/64] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[48/64] Compiling Alamofire URLEncodedFormEncoder.swift
[50/64] Compiling Starscream TCPTransport.swift
[51/64] Compiling Starscream Transport.swift
[52/64] Compiling Alamofire Response.swift
[53/64] Compiling Alamofire ResponseSerialization.swift
[54/64] Compiling Alamofire Result+Alamofire.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[65/92] Compiling Faye RepeatingTimer.swift
[66/92] Compiling Faye ChannelName.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 nonisolated 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 nonisolated 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 Channel.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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 nonisolated 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 |
BUILD FAILURE 6.0 macosSpm