Build Information
Failed to build ReactiveSwift with Swift 6.0 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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/Moya/ReactiveSwift.git
Reference: master
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/Moya/ReactiveSwift
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at abcdc22 SignalProducer: avoid recursive start of a sequence of producers (#734)
Submodule path 'Carthage/Checkouts/Nimble': checked out 'f8657642dfdec9973efc79cc68bcef43a653a2bc'
Submodule path 'Carthage/Checkouts/Quick': checked out '0b4ed6c706dd0cce923b5019a605a9bcc6b1b600'
Submodule path 'Carthage/Checkouts/Quick/Externals/Nimble': checked out 'a27c5186ce2d65f60d1237660b2509df3eb29023'
Submodule path 'Carthage/Checkouts/xcconfigs': checked out 'bb795558a76e5daf3688500055bbcfe243bffa8d'
Submodule 'Carthage/Checkouts/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Nimble'
Submodule 'Carthage/Checkouts/Quick' (https://github.com/Quick/Quick.git) registered for path 'Carthage/Checkouts/Quick'
Submodule 'Carthage/Checkouts/xcconfigs' (https://github.com/jspahrsummers/xcconfigs.git) registered for path 'Carthage/Checkouts/xcconfigs'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Nimble'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick'...
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/xcconfigs'...
Submodule 'Externals/Nimble' (https://github.com/Quick/Nimble.git) registered for path 'Carthage/Checkouts/Quick/Externals/Nimble'
Cloning into '/host/spi-builder-workspace/Carthage/Checkouts/Quick/Externals/Nimble'...
Cloned https://github.com/Moya/ReactiveSwift.git
Revision (git rev-parse @):
abcdc22fecdef777eaf4dda5cd4b410e24aceae7
SUCCESS checkout https://github.com/Moya/ReactiveSwift.git at master
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $workDir
https://github.com/Moya/ReactiveSwift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-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/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/14549] Fetching quick
[14550/33189] Fetching quick, nimble
Fetched https://github.com/Quick/Quick.git from cache (1.95s)
Fetched https://github.com/Quick/Nimble.git from cache (1.97s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.0.0 (1.12s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 2.0.0 (0.48s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.0.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 2.0.0
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/22] Emitting module ReactiveSwift
/host/spi-builder-workspace/Sources/Disposable.swift:11:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/EventLogger.swift:16:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// A namespace for logging event types.
12 | public enum LoggingEvent {
13 | public enum Signal: String {
| `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
14 | case value, completed, failed, terminated, disposed, interrupted
15 |
16 | public static let allEvents: Set<Signal> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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 | .value, .completed, .failed, .terminated, .disposed, .interrupted,
18 | ]
/host/spi-builder-workspace/Sources/EventLogger.swift:24:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public enum SignalProducer: String {
| `- note: consider making enum 'SignalProducer' conform to the 'Sendable' protocol
22 | case starting, started, value, completed, failed, terminated, disposed, interrupted
23 |
24 | public static let allEvents: Set<SignalProducer> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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
25 | .starting, .started, .value, .completed, .failed, .terminated, .disposed, .interrupted,
26 | ]
/host/spi-builder-workspace/Sources/Flatten.swift:34:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
32 | /// Any failure from the inner streams is propagated immediately to the flattened
33 | /// stream of values.
34 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' 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
35 |
36 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:50:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
48 | /// Any failure from the inner streams is propagated immediately to the flattened
49 | /// stream of values.
50 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' 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
51 |
52 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:84:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
82 | /// Any failure from the inner streams is propagated immediately to the flattened
83 | /// stream of values.
84 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' 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
85 |
86 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:98:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
96 | /// Any failure from the inner streams is propagated immediately to the flattened
97 | /// stream of values.
98 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' 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
99 | }
100 |
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:47:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
45 | userInfo: nil)
46 |
47 | extension URLSession: ReactiveExtensionsProvider {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
48 |
49 | extension Reactive where Base: URLSession {
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: cannot find type 'URLRequest' in scope
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
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/FoundationExtensions.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | extension URLSession: ReactiveExtensionsProvider {}
48 |
49 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// Returns a SignalProducer which performs the work associated with an
51 | /// `NSURLSession`
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/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
/host/spi-builder-workspace/Sources/Property.swift:15:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | /// Only classes can conform to this protocol, because having a signal
14 | /// for changes over time implies the origin must have a unique identity.
15 | public protocol PropertyProtocol: class, BindingSource {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | /// The current value of the property.
17 | var value: Value { get }
/host/spi-builder-workspace/Sources/Scheduler.swift:17:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// Represents a serial queue of work items.
17 | public protocol Scheduler: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 | /// Enqueues an action on the scheduler.
19 | ///
/host/spi-builder-workspace/Sources/Scheduler.swift:93:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' 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
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:95:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
| |- warning: static property '__once' 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 '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' 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
96 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
97 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:215:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
206 |
207 | /// A scheduler backed by a serial GCD queue.
208 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
209 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
210 | /// queue.
:
213 | /// future date, and will always schedule asynchronously (even if
214 | /// already running on the main thread).
215 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
216 |
217 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Signal.swift:418:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
416 | }
417 |
418 | public protocol SignalProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
419 | /// The type of values being sent by `self`.
420 | associatedtype Value
/host/spi-builder-workspace/Sources/Signal.swift:1637:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1635 | }
1636 |
1637 | private protocol SignalAggregateStrategy: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1638 | /// Update the latest value of the signal at `position` to be `value`.
1639 | ///
/host/spi-builder-workspace/Sources/SignalProducer.swift:2781:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2777 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2778 | /// values before attempting to observe again.
2779 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2780 | /// The values that should be replayed by the observer.
2781 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2782 | }
2783 |
[4/24] Compiling ReactiveSwift UninhabitedTypeGuards.swift
[5/24] Compiling ReactiveSwift ValidatingProperty.swift
[6/24] Compiling ReactiveSwift EventLogger.swift
/host/spi-builder-workspace/Sources/EventLogger.swift:16:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// A namespace for logging event types.
12 | public enum LoggingEvent {
13 | public enum Signal: String {
| `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
14 | case value, completed, failed, terminated, disposed, interrupted
15 |
16 | public static let allEvents: Set<Signal> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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 | .value, .completed, .failed, .terminated, .disposed, .interrupted,
18 | ]
/host/spi-builder-workspace/Sources/EventLogger.swift:24:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public enum SignalProducer: String {
| `- note: consider making enum 'SignalProducer' conform to the 'Sendable' protocol
22 | case starting, started, value, completed, failed, terminated, disposed, interrupted
23 |
24 | public static let allEvents: Set<SignalProducer> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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
25 | .starting, .started, .value, .completed, .failed, .terminated, .disposed, .interrupted,
26 | ]
/host/spi-builder-workspace/Sources/Flatten.swift:34:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
32 | /// Any failure from the inner streams is propagated immediately to the flattened
33 | /// stream of values.
34 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' 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
35 |
36 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:50:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
48 | /// Any failure from the inner streams is propagated immediately to the flattened
49 | /// stream of values.
50 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' 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
51 |
52 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:84:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
82 | /// Any failure from the inner streams is propagated immediately to the flattened
83 | /// stream of values.
84 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' 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
85 |
86 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:98:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
96 | /// Any failure from the inner streams is propagated immediately to the flattened
97 | /// stream of values.
98 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' 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
99 | }
100 |
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:47:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
45 | userInfo: nil)
46 |
47 | extension URLSession: ReactiveExtensionsProvider {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
48 |
49 | extension Reactive where Base: URLSession {
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: cannot find type 'URLRequest' in scope
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
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/FoundationExtensions.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | extension URLSession: ReactiveExtensionsProvider {}
48 |
49 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// Returns a SignalProducer which performs the work associated with an
51 | /// `NSURLSession`
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/FoundationExtensions.swift:65:20: error: value of type 'Base' has no member 'dataTask'
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
| `- error: value of type 'Base' has no member 'dataTask'
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:67:34: error: value of type '_' expected to be instance of class or class-constrained type
65 | let task = base.dataTask(with: request) { data, response, error in
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | observer.sendCompleted()
69 | } else {
[7/24] Compiling ReactiveSwift Flatten.swift
/host/spi-builder-workspace/Sources/EventLogger.swift:16:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// A namespace for logging event types.
12 | public enum LoggingEvent {
13 | public enum Signal: String {
| `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
14 | case value, completed, failed, terminated, disposed, interrupted
15 |
16 | public static let allEvents: Set<Signal> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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 | .value, .completed, .failed, .terminated, .disposed, .interrupted,
18 | ]
/host/spi-builder-workspace/Sources/EventLogger.swift:24:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public enum SignalProducer: String {
| `- note: consider making enum 'SignalProducer' conform to the 'Sendable' protocol
22 | case starting, started, value, completed, failed, terminated, disposed, interrupted
23 |
24 | public static let allEvents: Set<SignalProducer> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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
25 | .starting, .started, .value, .completed, .failed, .terminated, .disposed, .interrupted,
26 | ]
/host/spi-builder-workspace/Sources/Flatten.swift:34:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
32 | /// Any failure from the inner streams is propagated immediately to the flattened
33 | /// stream of values.
34 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' 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
35 |
36 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:50:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
48 | /// Any failure from the inner streams is propagated immediately to the flattened
49 | /// stream of values.
50 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' 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
51 |
52 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:84:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
82 | /// Any failure from the inner streams is propagated immediately to the flattened
83 | /// stream of values.
84 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' 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
85 |
86 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:98:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
96 | /// Any failure from the inner streams is propagated immediately to the flattened
97 | /// stream of values.
98 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' 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
99 | }
100 |
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:47:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
45 | userInfo: nil)
46 |
47 | extension URLSession: ReactiveExtensionsProvider {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
48 |
49 | extension Reactive where Base: URLSession {
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: cannot find type 'URLRequest' in scope
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
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/FoundationExtensions.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | extension URLSession: ReactiveExtensionsProvider {}
48 |
49 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// Returns a SignalProducer which performs the work associated with an
51 | /// `NSURLSession`
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/FoundationExtensions.swift:65:20: error: value of type 'Base' has no member 'dataTask'
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
| `- error: value of type 'Base' has no member 'dataTask'
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:67:34: error: value of type '_' expected to be instance of class or class-constrained type
65 | let task = base.dataTask(with: request) { data, response, error in
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | observer.sendCompleted()
69 | } else {
[8/24] Compiling ReactiveSwift FoundationExtensions.swift
/host/spi-builder-workspace/Sources/EventLogger.swift:16:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
11 | /// A namespace for logging event types.
12 | public enum LoggingEvent {
13 | public enum Signal: String {
| `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
14 | case value, completed, failed, terminated, disposed, interrupted
15 |
16 | public static let allEvents: Set<Signal> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.Signal>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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 | .value, .completed, .failed, .terminated, .disposed, .interrupted,
18 | ]
/host/spi-builder-workspace/Sources/EventLogger.swift:24:21: warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
19 | }
20 |
21 | public enum SignalProducer: String {
| `- note: consider making enum 'SignalProducer' conform to the 'Sendable' protocol
22 | case starting, started, value, completed, failed, terminated, disposed, interrupted
23 |
24 | public static let allEvents: Set<SignalProducer> = [
| |- warning: static property 'allEvents' is not concurrency-safe because non-'Sendable' type 'Set<LoggingEvent.SignalProducer>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'allEvents' 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
25 | .starting, .started, .value, .completed, .failed, .terminated, .disposed, .interrupted,
26 | ]
/host/spi-builder-workspace/Sources/Flatten.swift:34:20: warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
32 | /// Any failure from the inner streams is propagated immediately to the flattened
33 | /// stream of values.
34 | public static let merge = FlattenStrategy(kind: .concurrent(limit: .max))
| |- warning: static property 'merge' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'merge' 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
35 |
36 | /// The stream of streams is concatenated, so that only values from one inner stream
/host/spi-builder-workspace/Sources/Flatten.swift:50:20: warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
48 | /// Any failure from the inner streams is propagated immediately to the flattened
49 | /// stream of values.
50 | public static let concat = FlattenStrategy(kind: .concurrent(limit: 1))
| |- warning: static property 'concat' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'concat' 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
51 |
52 | /// The stream of streams is merged with the given concurrency cap, so that any value
/host/spi-builder-workspace/Sources/Flatten.swift:84:20: warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
82 | /// Any failure from the inner streams is propagated immediately to the flattened
83 | /// stream of values.
84 | public static let latest = FlattenStrategy(kind: .latest)
| |- warning: static property 'latest' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'latest' 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
85 |
86 | /// Forward only events from the first inner stream that sends an event. Any other
/host/spi-builder-workspace/Sources/Flatten.swift:98:20: warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
8 |
9 | /// Describes how a stream of inner streams should be flattened into a stream of values.
10 | public struct FlattenStrategy {
| `- note: consider making struct 'FlattenStrategy' conform to the 'Sendable' protocol
11 | fileprivate enum Kind {
12 | case concurrent(limit: UInt)
:
96 | /// Any failure from the inner streams is propagated immediately to the flattened
97 | /// stream of values.
98 | public static let race = FlattenStrategy(kind: .race)
| |- warning: static property 'race' is not concurrency-safe because non-'Sendable' type 'FlattenStrategy' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'race' 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
99 | }
100 |
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:47:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
45 | userInfo: nil)
46 |
47 | extension URLSession: ReactiveExtensionsProvider {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
48 |
49 | extension Reactive where Base: URLSession {
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:33: error: cannot find type 'URLRequest' in scope
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: cannot find type 'URLRequest' in scope
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:63:70: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | /// side error (i.e. when a response with status code other than
62 | /// 200...299 is received).
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
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/FoundationExtensions.swift:49:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
47 | extension URLSession: ReactiveExtensionsProvider {}
48 |
49 | extension Reactive where Base: URLSession {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | /// Returns a SignalProducer which performs the work associated with an
51 | /// `NSURLSession`
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/FoundationExtensions.swift:65:20: error: value of type 'Base' has no member 'dataTask'
63 | public func data(with request: URLRequest) -> SignalProducer<(Data, URLResponse), Error> {
64 | return SignalProducer { [base = self.base] observer, lifetime in
65 | let task = base.dataTask(with: request) { data, response, error in
| `- error: value of type 'Base' has no member 'dataTask'
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
/host/spi-builder-workspace/Sources/FoundationExtensions.swift:67:34: error: value of type '_' expected to be instance of class or class-constrained type
65 | let task = base.dataTask(with: request) { data, response, error in
66 | if let data = data, let response = response {
67 | observer.send(value: (data, response))
| `- error: value of type '_' expected to be instance of class or class-constrained type
68 | observer.sendCompleted()
69 | } else {
[9/24] Compiling ReactiveSwift Deprecations+Removals.swift
/host/spi-builder-workspace/Sources/Disposable.swift:11:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
[10/24] Compiling ReactiveSwift Disposable.swift
/host/spi-builder-workspace/Sources/Disposable.swift:11:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
[11/24] Compiling ReactiveSwift Event.swift
/host/spi-builder-workspace/Sources/Disposable.swift:11:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
9 | /// Represents something that can be “disposed”, usually associated with freeing
10 | /// resources or canceling work.
11 | public protocol Disposable: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// Whether this disposable has been disposed already.
13 | var isDisposed: Bool { get }
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
[12/24] Compiling ReactiveSwift Property.swift
/host/spi-builder-workspace/Sources/Property.swift:15:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | /// Only classes can conform to this protocol, because having a signal
14 | /// for changes over time implies the origin must have a unique identity.
15 | public protocol PropertyProtocol: class, BindingSource {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | /// The current value of the property.
17 | var value: Value { get }
[13/24] Compiling ReactiveSwift Reactive.swift
/host/spi-builder-workspace/Sources/Property.swift:15:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | /// Only classes can conform to this protocol, because having a signal
14 | /// for changes over time implies the origin must have a unique identity.
15 | public protocol PropertyProtocol: class, BindingSource {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | /// The current value of the property.
17 | var value: Value { get }
[14/24] Compiling ReactiveSwift ResultExtensions.swift
/host/spi-builder-workspace/Sources/Property.swift:15:35: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
13 | /// Only classes can conform to this protocol, because having a signal
14 | /// for changes over time implies the origin must have a unique identity.
15 | public protocol PropertyProtocol: class, BindingSource {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
16 | /// The current value of the property.
17 | var value: Value { get }
[15/24] Compiling ReactiveSwift Action.swift
[16/24] Compiling ReactiveSwift Atomic.swift
[17/24] Compiling ReactiveSwift Bag.swift
[18/24] Compiling ReactiveSwift Scheduler.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:17:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// Represents a serial queue of work items.
17 | public protocol Scheduler: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 | /// Enqueues an action on the scheduler.
19 | ///
/host/spi-builder-workspace/Sources/Scheduler.swift:93:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' 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
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:95:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
| |- warning: static property '__once' 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 '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' 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
96 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
97 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:215:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
206 |
207 | /// A scheduler backed by a serial GCD queue.
208 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
209 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
210 | /// queue.
:
213 | /// future date, and will always schedule asynchronously (even if
214 | /// already running on the main thread).
215 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
216 |
217 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | /// scheduled, it may be run synchronously. However, ordering between actions
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
:
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:152:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | action()
154 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:153:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
153 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
154 | }
155 |
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
90 | /// scheduled, it may be run synchronously. However, ordering between actions
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
:
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:276:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |
275 | queue.async {
276 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | action()
278 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:277:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | queue.async {
276 | if !d.isDisposed {
277 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
278 | }
279 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:306:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |
305 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
306 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
307 | action()
308 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:307:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
306 | if !d.isDisposed {
307 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
308 | }
309 | }
/host/spi-builder-workspace/Sources/Signal.swift:418:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
416 | }
417 |
418 | public protocol SignalProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
419 | /// The type of values being sent by `self`.
420 | associatedtype Value
/host/spi-builder-workspace/Sources/Signal.swift:1637:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1635 | }
1636 |
1637 | private protocol SignalAggregateStrategy: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1638 | /// Update the latest value of the signal at `position` to be `value`.
1639 | ///
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:153:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
153 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
154 | }
155 |
/host/spi-builder-workspace/Sources/Scheduler.swift:152:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 | action()
154 | }
155 |
156 | return disposable
| `- note: access can happen concurrently
157 | }
158 | }
[19/24] Compiling ReactiveSwift Signal.swift
/host/spi-builder-workspace/Sources/Scheduler.swift:17:28: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// Represents a serial queue of work items.
17 | public protocol Scheduler: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
18 | /// Enqueues an action on the scheduler.
19 | ///
/host/spi-builder-workspace/Sources/Scheduler.swift:93:21: warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| `- warning: static property 'dispatchSpecificKey' is not concurrency-safe because non-'Sendable' type 'DispatchSpecificKey<UInt8>' may have shared mutable state; this is an error in the Swift 6 language mode
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
Dispatch.DispatchSpecificKey:1:20: note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
1 | final public class DispatchSpecificKey<T> {
| `- note: generic class 'DispatchSpecificKey' does not conform to the 'Sendable' protocol
2 | public init()
3 | deinit
/host/spi-builder-workspace/Sources/Scheduler.swift:9:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
7 | //
8 |
9 | import Dispatch
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Dispatch'
10 | import Foundation
11 |
:
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
| |- note: annotate 'dispatchSpecificKey' 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
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
/host/spi-builder-workspace/Sources/Scheduler.swift:95:21: warning: static property '__once' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
95 | private static var __once: () = {
| |- warning: static property '__once' 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 '__once' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate '__once' 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
96 | DispatchQueue.main.setSpecific(key: UIScheduler.dispatchSpecificKey,
97 | value: dispatchSpecificValue)
/host/spi-builder-workspace/Sources/Scheduler.swift:215:20: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
206 |
207 | /// A scheduler backed by a serial GCD queue.
208 | public final class QueueScheduler: DateScheduler {
| `- note: class 'QueueScheduler' does not conform to the 'Sendable' protocol
209 | /// A singleton `QueueScheduler` that always targets the main thread's GCD
210 | /// queue.
:
213 | /// future date, and will always schedule asynchronously (even if
214 | /// already running on the main thread).
215 | public static let main = QueueScheduler(internalQueue: DispatchQueue.main)
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'QueueScheduler' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'main' 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
216 |
217 | public var currentDate: Date {
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | /// scheduled, it may be run synchronously. However, ordering between actions
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
:
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:152:12: warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
| `- warning: capture of 'disposable' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 | action()
154 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:153:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
153 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
154 | }
155 |
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
90 | /// scheduled, it may be run synchronously. However, ordering between actions
91 | /// will always be preserved.
92 | public final class UIScheduler: Scheduler {
| `- note: class 'UIScheduler' does not conform to the 'Sendable' protocol
93 | private static let dispatchSpecificKey = DispatchSpecificKey<UInt8>()
94 | private static let dispatchSpecificValue = UInt8.max
:
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| `- warning: capture of 'self' with non-sendable type 'UIScheduler' in an isolated local function; this is an error in the Swift 6 language mode
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:276:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |
275 | queue.async {
276 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 | action()
278 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:277:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 | queue.async {
276 | if !d.isDisposed {
277 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
278 | }
279 | }
/host/spi-builder-workspace/Sources/Scheduler.swift:306:8: warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |
305 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
306 | if !d.isDisposed {
| `- warning: capture of 'd' with non-sendable type 'AnyDisposable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
307 | action()
308 | }
/host/spi-builder-workspace/Sources/Disposable.swift:67:20: note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
65 |
66 | /// A type-erased disposable that forwards operations to an underlying disposable.
67 | public final class AnyDisposable: Disposable {
| `- note: class 'AnyDisposable' does not conform to the 'Sendable' protocol
68 | private final class ActionDisposable: Disposable {
69 | let state: UnsafeAtomicState<DisposableState>
/host/spi-builder-workspace/Sources/Scheduler.swift:307:5: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
305 | queue.asyncAfter(wallDeadline: wallTime(with: date)) {
306 | if !d.isDisposed {
307 | action()
| |- warning: capture of 'action' with non-sendable type '() -> 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'
308 | }
309 | }
/host/spi-builder-workspace/Sources/Signal.swift:418:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
416 | }
417 |
418 | public protocol SignalProtocol: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
419 | /// The type of values being sent by `self`.
420 | associatedtype Value
/host/spi-builder-workspace/Sources/Signal.swift:1637:43: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1635 | }
1636 |
1637 | private protocol SignalAggregateStrategy: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1638 | /// Update the latest value of the signal at `position` to be `value`.
1639 | ///
/host/spi-builder-workspace/Sources/Scheduler.swift:151:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
149 |
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
152 | guard !disposable.isDisposed else { return }
153 | action()
/host/spi-builder-workspace/Sources/Scheduler.swift:153:5: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
153 | action()
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
154 | }
155 |
/host/spi-builder-workspace/Sources/Scheduler.swift:152:12: warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
150 | DispatchQueue.main.async {
151 | defer { self.dequeue() }
152 | guard !disposable.isDisposed else { return }
| |- warning: sending 'disposable' risks causing data races; this is an error in the Swift 6 language mode
| `- note: 'disposable' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
153 | action()
154 | }
155 |
156 | return disposable
| `- note: access can happen concurrently
157 | }
158 | }
[20/24] Compiling ReactiveSwift SignalProducer.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2781:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2777 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2778 | /// values before attempting to observe again.
2779 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2780 | /// The values that should be replayed by the observer.
2781 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2782 | }
2783 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[21/24] Compiling ReactiveSwift UnidirectionalBinding.swift
/host/spi-builder-workspace/Sources/SignalProducer.swift:2781:6: warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2777 | /// attachment to a `ReplayState`, and the observer should replay the supplied
2778 | /// values before attempting to observe again.
2779 | private struct ReplayError<Value>: Error {
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
2780 | /// The values that should be replayed by the observer.
2781 | let values: [Value]
| `- warning: stored property 'values' of 'Sendable'-conforming generic struct 'ReplayError' has non-sendable type '[Value]'; this is an error in the Swift 6 language mode
2782 | }
2783 |
/host/spi-builder-workspace/Sources/Disposable.swift:60:13: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' may have shared mutable state; this is an error in the Swift 6 language mode
57 |
58 | /// A disposable that has already been disposed.
59 | internal final class NopDisposable: Disposable {
| `- note: class 'NopDisposable' does not conform to the 'Sendable' protocol
60 | static let shared = NopDisposable()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'NopDisposable' 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
61 | var isDisposed = true
62 | func dispose() {}
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[22/24] Compiling ReactiveSwift Lifetime.swift
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[23/24] Compiling ReactiveSwift Observer.swift
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
[24/24] Compiling ReactiveSwift Optional.swift
/host/spi-builder-workspace/Sources/Lifetime.swift:80:20: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' may have shared mutable state; this is an error in the Swift 6 language mode
3 | /// Represents the lifetime of an object, and provides a hook to observe when
4 | /// the object deinitializes.
5 | public final class Lifetime {
| `- note: class 'Lifetime' does not conform to the 'Sendable' protocol
6 | private let disposables: CompositeDisposable
7 |
:
78 |
79 | /// A `Lifetime` that has already ended.
80 | public static let empty: Lifetime = {
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Lifetime' 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
81 | let disposables = CompositeDisposable()
82 | disposables.dispose()
BUILD FAILURE 6.0 linux