Build Information
Failed to build Store, reference 3.8.0 (4586ab
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 07:35:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexdrone/Store.git
Reference: 3.8.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexdrone/Store
* tag 3.8.0 -> FETCH_HEAD
HEAD is now at 4586abe Fix demo
Cloned https://github.com/alexdrone/Store.git
Revision (git rev-parse @):
4586abebae909f9ceb583e0c40aaa5d914afed17
SUCCESS checkout https://github.com/alexdrone/Store.git at 3.8.0
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/3702] Fetching swift-log
[113/11982] Fetching swift-log, opencombine
Fetched https://github.com/apple/swift-log.git from cache (1.32s)
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (1.32s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.12.0 (0.63s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.1 (0.54s)
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.12.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "store",
"name": "Store",
"url": "https://github.com/alexdrone/Store.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Store",
"dependencies": [
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "opencombine",
"name": "OpenCombine",
"url": "https://github.com/OpenCombine/OpenCombine.git",
"version": "0.14.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/OpenCombine",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/alexdrone/Store.git
[1/3485] Fetching store
Fetched https://github.com/alexdrone/Store.git from cache (2.11s)
Fetching https://github.com/OpenCombine/OpenCombine.git from cache
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.54s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.40s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.2
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Creating working copy for https://github.com/alexdrone/Store.git
Working copy of https://github.com/alexdrone/Store.git resolved at 3.8.0 (4586abe)
warning: '.resolve-product-dependencies': dependency 'store' is not used by any target
Found 2 product dependencies
- swift-log
- OpenCombine
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/alexdrone/Store.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[4/6] Write swift-version--7754E27361AE5C74.txt
[5/10] Compiling COpenCombineHelpers COpenCombineHelpers.cpp
[7/98] Emitting module OpenCombine
[8/107] Compiling Logging LogHandler.swift
[9/107] Emitting module Logging
[10/107] Compiling Logging Locks.swift
[11/107] Compiling Logging Logging.swift
[12/107] Compiling OpenCombine SubscriberTap.swift
[13/107] Compiling OpenCombine SubscriptionStatus.swift
[14/107] Compiling OpenCombine SubscriptionTap.swift
[15/107] Compiling OpenCombine Violations.swift
[16/107] Compiling OpenCombine ImmediateScheduler.swift
[17/107] Compiling OpenCombine ObservableObject.swift
[18/107] Compiling OpenCombine PassthroughSubject.swift
[19/107] Compiling OpenCombine Published.swift
[20/107] Compiling OpenCombine Publisher.swift
[21/107] Compiling OpenCombine Deferred.swift
[22/107] Compiling OpenCombine ConduitBase.swift
[23/107] Compiling OpenCombine ConduitList.swift
[24/107] Compiling OpenCombine DebugHook.swift
[25/107] Compiling OpenCombine FilterProducer.swift
[26/107] Compiling OpenCombine Locking.swift
[27/107] Compiling OpenCombine PartialCompletion.swift
[28/107] Compiling OpenCombine PublishedSubject.swift
[29/107] Compiling OpenCombine PublishedSubscriber.swift
[30/107] Compiling OpenCombine ReduceProducer.swift
[31/107] Compiling OpenCombine SubjectSubscriber.swift
[32/107] Compiling OpenCombine Publishers.MakeConnectable.swift
[33/107] Compiling OpenCombine Publishers.Map.swift
[34/107] Compiling OpenCombine Publishers.MapError.swift
[35/107] Compiling OpenCombine Publishers.MeasureInterval.swift
[36/107] Compiling OpenCombine Publishers.Multicast.swift
[37/107] Compiling OpenCombine Publishers.Output.swift
[38/107] Compiling OpenCombine Publishers.PrefixWhile.swift
[39/107] Compiling OpenCombine Publishers.Print.swift
[40/107] Compiling OpenCombine Publishers.ReceiveOn.swift
[41/107] Compiling OpenCombine Subscriber.swift
[42/107] Compiling OpenCombine Subscribers.Assign.swift
[43/107] Compiling OpenCombine Subscribers.Completion.swift
[44/107] Compiling OpenCombine Subscribers.Demand.swift
[45/107] Compiling OpenCombine Subscribers.Sink.swift
[46/107] Compiling OpenCombine Subscribers.swift
[47/107] Compiling OpenCombine Subscription.swift
[48/107] Compiling OpenCombine Subscriptions.swift
[49/107] Compiling OpenCombine _Introspection.swift
[50/107] Compiling OpenCombine Publishers.SubscribeOn.swift
[51/107] Compiling OpenCombine Publishers.SwitchToLatest.swift
[52/107] Compiling OpenCombine Publishers.Timeout.swift
[53/107] Compiling OpenCombine Publishers.swift
[54/107] Compiling OpenCombine Record.swift
[55/107] Compiling OpenCombine Result.Publisher.swift
[56/107] Compiling OpenCombine Result.swift
[57/107] Compiling OpenCombine Scheduler.swift
[58/107] Compiling OpenCombine Subject.swift
[59/107] Compiling OpenCombine Publishers.Reduce.swift
[60/107] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[61/107] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[62/107] Compiling OpenCombine Publishers.ReplaceError.swift
[63/107] Compiling OpenCombine Publishers.Retry.swift
[64/107] Compiling OpenCombine Publishers.Scan.swift
[65/107] Compiling OpenCombine Publishers.Sequence.swift
[66/107] Compiling OpenCombine Publishers.SetFailureType.swift
[67/107] Compiling OpenCombine Publishers.Share.swift
[68/107] Compiling OpenCombine Publishers.Breakpoint.swift
[69/107] Compiling OpenCombine Publishers.Buffer.swift
[70/107] Compiling OpenCombine Publishers.Collect.swift
[71/107] Compiling OpenCombine Publishers.CollectByCount.swift
[72/107] Compiling OpenCombine Publishers.CompactMap.swift
[73/107] Compiling OpenCombine Publishers.Comparison.swift
[74/107] Compiling OpenCombine Publishers.Concatenate.swift
[75/107] Compiling OpenCombine Publishers.Contains.swift
[76/107] Compiling OpenCombine Publishers.Count.swift
[77/107] Compiling OpenCombine Publishers.Debounce.swift
[78/107] Compiling OpenCombine AnyCancellable.swift
[79/107] Compiling OpenCombine AnyPublisher.swift
[80/107] Compiling OpenCombine AnySubscriber.swift
[81/107] Compiling OpenCombine Cancellable.swift
[82/107] Compiling OpenCombine Codable.swift
[83/107] Compiling OpenCombine CombineIdentifier.swift
[84/107] Compiling OpenCombine ConnectablePublisher.swift
[85/107] Compiling OpenCombine CurrentValueSubject.swift
[86/107] Compiling OpenCombine CustomCombineIdentifierConvertible.swift
[87/107] Compiling OpenCombine Future.swift
[88/107] Compiling OpenCombine Publishers.Delay.swift
[89/107] Compiling OpenCombine Publishers.Drop.swift
[90/107] Compiling OpenCombine Publishers.DropUntilOutput.swift
[91/107] Compiling OpenCombine Publishers.DropWhile.swift
[92/107] Compiling OpenCombine Publishers.Filter.swift
[93/107] Compiling OpenCombine Publishers.First.swift
[94/107] Compiling OpenCombine Publishers.FlatMap.swift
[95/107] Compiling OpenCombine Publishers.HandleEvents.swift
[96/107] Compiling OpenCombine Publishers.IgnoreOutput.swift
[97/107] Compiling OpenCombine Publishers.Last.swift
[98/107] Compiling OpenCombine Empty.swift
[99/107] Compiling OpenCombine Fail.swift
[100/107] Compiling OpenCombine GENERATED-Publishers.Catch.swift
[101/107] Compiling OpenCombine GENERATED-Publishers.Encode.swift
[102/107] Compiling OpenCombine GENERATED-Publishers.MapKeyPath.swift
[103/107] Compiling OpenCombine Just.swift
[104/107] Compiling OpenCombine Optional.Publisher.swift
[105/107] Compiling OpenCombine Publishers.AllSatisfy.swift
[106/107] Compiling OpenCombine Publishers.AssertNoFailure.swift
[107/107] Compiling OpenCombine Publishers.Autoconnect.swift
[108/109] Emitting module OpenCombineDispatch
[109/109] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[110/125] Compiling Store Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:13:27: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | /// Represents a opaque reference to a store object.
12 | /// `Store` and `CodableStore` are the concrete instances.
13 | public protocol AnyStore: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 |
15 | // MARK: Observation
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:214:57: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
212 | /// - parameter action: The action that is going to be executed on this store.
213 | /// - parameter mode: The execution strategy (*sync*/*aysnc*).
214 | @discardableResult public func transaction<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 | action: A,
216 | mode: Executor.Mode = .async(nil)
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:237:49: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
235 | /// - parameter handler: Invoked when the action has finished running.
236 | /// - returns: The transaction associated to this action execution.
237 | @discardableResult public func run<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
238 | action: A,
239 | mode: Executor.Mode = .async(nil),
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:253:49: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
251 | /// This means that `actions[1]` will run after `actions[0]` has completed its execution,
252 | /// `actions[2]` after `actions[1]` and so on.
253 | @discardableResult public func run<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
254 | actions: [A],
255 | mode: Executor.Mode = .async(nil),
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:277:54: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
275 | /// during a given window of time.
276 | /// - returns: A future that is resolved whenever the action has completed its execution.
277 | @discardableResult public func futureOf<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
278 | action: A,
279 | mode: Executor.Mode = .async(nil),
[111/126] Compiling Store Transaction.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/Transaction.swift:25:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 |
24 | /// Represents an individual execution for a given action.
25 | public protocol AnyTransaction: class, Cancellable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 |
27 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// the latter ones will sort after the former ones. We do this by using the previous random bits
19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
20 | public final class PushID {
| `- note: class 'PushID' does not conform to the 'Sendable' protocol
21 |
22 | public static let `default` = PushID()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
23 |
24 | // MARK: Static constants
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/Transaction.swift:239:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TransactionDisposeBag' may have shared mutable state; this is an error in the Swift 6 language mode
236 | // MARK: - Transaction Dispose Bag (Internal)
237 |
238 | final class TransactionDisposeBag {
| `- note: class 'TransactionDisposeBag' does not conform to the 'Sendable' protocol
239 | static let shared = TransactionDisposeBag()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TransactionDisposeBag' 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
240 |
241 | /// All of the ongoing transactions.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:20:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Logging
3 |
4 | public final class Executor {
| `- note: class 'Executor' does not conform to the 'Sendable' protocol
5 |
6 | public typealias TransactionCompletion = ((Error?) -> Void)?
:
18 | }
19 |
20 | public static let main = Executor()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' 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
21 |
22 | // Private.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[112/126] Compiling Store TransactionContext.swift
[113/126] Compiling Store PushID.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// the latter ones will sort after the former ones. We do this by using the previous random bits
19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
20 | public final class PushID {
| `- note: class 'PushID' does not conform to the 'Sendable' protocol
21 |
22 | public static let `default` = PushID()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
23 |
24 | // MARK: Static constants
error: emit-module command failed with exit code 1 (use -v to see invocation)
[114/126] Compiling Store DictionaryCodable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:34:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 | extension DictionaryEncoder {
34 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 | do {
36 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:488:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
486 |
487 | extension DictionaryDecoder {
488 | open func decode<T: Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
489 | storage.push(container: container)
490 | return try unbox(container, as: T.self)
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[115/126] Compiling Store Diffing.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:34:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 | extension DictionaryEncoder {
34 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 | do {
36 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:488:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
486 |
487 | extension DictionaryDecoder {
488 | open func decode<T: Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
489 | storage.push(container: container)
490 | return try unbox(container, as: T.self)
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[116/126] Compiling Store CodableStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/CodableStore.swift:86:30: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
79 | return
80 | }
81 | func dispatch(option: Diffing, execute: @escaping () -> Void) {
| `- note: parameter 'execute' is implicitly non-sendable
82 | switch option {
83 | case .sync:
84 | queue.sync(execute: execute)
85 | case .async:
86 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
87 | case .none:
88 | return
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[117/126] Compiling Store ModelStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/CodableStore.swift:86:30: warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
79 | return
80 | }
81 | func dispatch(option: Diffing, execute: @escaping () -> Void) {
| `- note: parameter 'execute' is implicitly non-sendable
82 | switch option {
83 | case .sync:
84 | queue.sync(execute: execute)
85 | case .async:
86 | queue.async(execute: execute)
| `- warning: passing non-sendable parameter 'execute' to function expecting a @Sendable closure
87 | case .none:
88 | return
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[118/126] Compiling Store Operations.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:3:20: warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | public final class TransactionOperation<T: AnyTransaction>: AsyncOperation {
| `- warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
4 |
5 | /// The associated transaction.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:40:12: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
38 | /// Subclasses are expected to override the 'execute' function and call
39 | /// the function 'finish' when they're done with their task.
40 | open class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
41 |
42 | /// The completion block type for this operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:14:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// *Logging*, *undo/redo* and *local/remote database synchronization* are a good examples of when
13 | /// a middleware could be necessary.
14 | public protocol Middleware: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// This function is called whenever a running transaction changes its state.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[119/126] Compiling Store Middleware.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:3:20: warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | public final class TransactionOperation<T: AnyTransaction>: AsyncOperation {
| `- warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
4 |
5 | /// The associated transaction.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:40:12: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
38 | /// Subclasses are expected to override the 'execute' function and call
39 | /// the function 'finish' when they're done with their task.
40 | open class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
41 |
42 | /// The completion block type for this operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:14:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// *Logging*, *undo/redo* and *local/remote database synchronization* are a good examples of when
13 | /// a middleware could be necessary.
14 | public protocol Middleware: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// This function is called whenever a running transaction changes its state.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[120/126] Compiling Store Executor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:20:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Logging
3 |
4 | public final class Executor {
| `- note: class 'Executor' does not conform to the 'Sendable' protocol
5 |
6 | public typealias TransactionCompletion = ((Error?) -> Void)?
:
18 | }
19 |
20 | public static let main = Executor()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' 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
21 |
22 | // Private.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:43:9: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | /// Wraps the completion handler in an operation.
42 | completionOperation = BlockOperation {
43 | completionHandler(error.error)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 | /// Set the completion handler as dependent from every operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:43:27: warning: capture of 'error' with non-sendable type 'ErrorStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | /// Wraps the completion handler in an operation.
42 | completionOperation = BlockOperation {
43 | completionHandler(error.error)
| `- warning: capture of 'error' with non-sendable type 'ErrorStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | /// Set the completion handler as dependent from every operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/TransactionContext.swift:45:20: note: class 'ErrorStorage' does not conform to the 'Sendable' protocol
43 | // MARK: - errorStorage
44 |
45 | public final class ErrorStorage {
| `- note: class 'ErrorStorage' does not conform to the 'Sendable' protocol
46 | public var error: Error?
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[121/126] Compiling Store Locking.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:20:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Logging
3 |
4 | public final class Executor {
| `- note: class 'Executor' does not conform to the 'Sendable' protocol
5 |
6 | public typealias TransactionCompletion = ((Error?) -> Void)?
:
18 | }
19 |
20 | public static let main = Executor()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' 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
21 |
22 | // Private.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:43:9: warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | /// Wraps the completion handler in an operation.
42 | completionOperation = BlockOperation {
43 | completionHandler(error.error)
| |- warning: capture of 'completionHandler' with non-sendable type '((any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
44 | }
45 | /// Set the completion handler as dependent from every operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:43:27: warning: capture of 'error' with non-sendable type 'ErrorStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | /// Wraps the completion handler in an operation.
42 | completionOperation = BlockOperation {
43 | completionHandler(error.error)
| `- warning: capture of 'error' with non-sendable type 'ErrorStorage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | }
45 | /// Set the completion handler as dependent from every operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/TransactionContext.swift:45:20: note: class 'ErrorStorage' does not conform to the 'Sendable' protocol
43 | // MARK: - errorStorage
44 |
45 | public final class ErrorStorage {
| `- note: class 'ErrorStorage' does not conform to the 'Sendable' protocol
46 | public var error: Error?
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
[122/126] Emitting module Store
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:98:60: error: cannot specialize 'Self'
96 | }
97 |
98 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Mutate' instead?
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:157:60: error: cannot specialize 'Self'
155 | }
156 |
157 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Assign' instead?
158 | }
159 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Executor.swift:20:21: warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Logging
3 |
4 | public final class Executor {
| `- note: class 'Executor' does not conform to the 'Sendable' protocol
5 |
6 | public typealias TransactionCompletion = ((Error?) -> Void)?
:
18 | }
19 |
20 | public static let main = Executor()
| |- warning: static property 'main' is not concurrency-safe because non-'Sendable' type 'Executor' 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
21 |
22 | // Private.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:3:20: warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | public final class TransactionOperation<T: AnyTransaction>: AsyncOperation {
| `- warning: class 'TransactionOperation' must restate inherited '@unchecked Sendable' conformance
4 |
5 | /// The associated transaction.
/Users/admin/builder/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:40:12: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
38 | /// Subclasses are expected to override the 'execute' function and call
39 | /// the function 'finish' when they're done with their task.
40 | open class AsyncOperation: Operation {
| `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
41 |
42 | /// The completion block type for this operation.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:14:29: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
12 | /// *Logging*, *undo/redo* and *local/remote database synchronization* are a good examples of when
13 | /// a middleware could be necessary.
14 | public protocol Middleware: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
15 |
16 | /// This function is called whenever a running transaction changes its state.
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:24:12: warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| `- warning: let 'logger' is not concurrency-safe because non-'Sendable' type 'Logger' may have shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Logging.swift:38:15: note: struct 'Logger' does not conform to the 'Sendable' protocol
36 | /// logger.info("Hello World!")
37 | ///
38 | public struct Logger {
| `- note: struct 'Logger' does not conform to the 'Sendable' protocol
39 | @usableFromInline
40 | var handler: LogHandler
/Users/admin/builder/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
1 | import Foundation
2 | import Logging
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Logging'
3 | #if canImport(Combine)
4 | import Combine
:
22 | /// The infra logger.
23 | /// The output stream can be redirected.
24 | public let logger = Logger(label: "io.store")
| |- note: annotate 'logger' 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 |
26 | public final class LoggerMiddleware: Middleware {
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:34:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
32 |
33 | extension DictionaryEncoder {
34 | open func encode<T: Encodable>(_ value: T) throws -> [String: Any] {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
35 | do {
36 | return try castOrThrow([String: Any].self, try box(value))
/Users/admin/builder/spi-builder-workspace/Sources/Store/serialization/DictionaryCodable.swift:488:3: warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
486 |
487 | extension DictionaryDecoder {
488 | open func decode<T: Decodable>(_ type: T.Type, from container: Any) throws -> T {
| `- warning: non-'@objc' instance method in extensions cannot be overridden; use 'public' instead
489 | storage.push(container: container)
490 | return try unbox(container, as: T.self)
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// the latter ones will sort after the former ones. We do this by using the previous random bits
19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
20 | public final class PushID {
| `- note: class 'PushID' does not conform to the 'Sendable' protocol
21 |
22 | public static let `default` = PushID()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
23 |
24 | // MARK: Static constants
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:13:27: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
11 | /// Represents a opaque reference to a store object.
12 | /// `Store` and `CodableStore` are the concrete instances.
13 | public protocol AnyStore: class {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
14 |
15 | // MARK: Observation
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:214:57: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
212 | /// - parameter action: The action that is going to be executed on this store.
213 | /// - parameter mode: The execution strategy (*sync*/*aysnc*).
214 | @discardableResult public func transaction<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
215 | action: A,
216 | mode: Executor.Mode = .async(nil)
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:237:49: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
235 | /// - parameter handler: Invoked when the action has finished running.
236 | /// - returns: The transaction associated to this action execution.
237 | @discardableResult public func run<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
238 | action: A,
239 | mode: Executor.Mode = .async(nil),
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:253:49: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
251 | /// This means that `actions[1]` will run after `actions[0]` has completed its execution,
252 | /// `actions[2]` after `actions[1]` and so on.
253 | @discardableResult public func run<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
254 | actions: [A],
255 | mode: Executor.Mode = .async(nil),
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/Store.swift:277:54: warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
80 | /// }
81 | /// ```
82 | open class Store<M>: MutableStore, ObservableObject, Identifiable {
| `- note: 'M' previously declared here
83 |
84 | /// A publisher that emits when the model has changed.
:
275 | /// during a given window of time.
276 | /// - returns: A future that is resolved whenever the action has completed its execution.
277 | @discardableResult public func futureOf<A: Action, M>(
| `- warning: generic parameter 'M' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
278 | action: A,
279 | mode: Executor.Mode = .async(nil),
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/Transaction.swift:25:33: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 |
24 | /// Represents an individual execution for a given action.
25 | public protocol AnyTransaction: class, Cancellable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 |
27 | // MARK: Properties
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/Transaction.swift:239:14: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TransactionDisposeBag' may have shared mutable state; this is an error in the Swift 6 language mode
236 | // MARK: - Transaction Dispose Bag (Internal)
237 |
238 | final class TransactionDisposeBag {
| `- note: class 'TransactionDisposeBag' does not conform to the 'Sendable' protocol
239 | static let shared = TransactionDisposeBag()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'TransactionDisposeBag' 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
240 |
241 | /// All of the ongoing transactions.
[123/126] Compiling Store Action.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:98:60: error: cannot specialize 'Self'
96 | }
97 |
98 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Mutate' instead?
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:157:60: error: cannot specialize 'Self'
155 | }
156 |
157 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Assign' instead?
158 | }
159 |
[124/126] Compiling Store KeyPath+Introspection.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:98:60: error: cannot specialize 'Self'
96 | }
97 |
98 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Mutate' instead?
99 | }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:157:60: error: cannot specialize 'Self'
155 | }
156 |
157 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Assign' instead?
158 | }
159 |
[125/126] Compiling Store Signpost.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// the latter ones will sort after the former ones. We do this by using the previous random bits
19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
20 | public final class PushID {
| `- note: class 'PushID' does not conform to the 'Sendable' protocol
21 |
22 | public static let `default` = PushID()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
23 |
24 | // MARK: Static constants
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:157:60: error: cannot specialize 'Self'
155 | }
156 |
157 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Assign' instead?
158 | }
159 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:32: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:32: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:31:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
31 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | )
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:43:14: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | func onUpdate(_ closure: @escaping () -> Void) -> Binding<Value> {
42 | Binding(
43 | get: { wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | set: {
45 | wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:45:9: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | get: { wrappedValue },
44 | set: {
45 | wrappedValue = $0
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | closure()
47 | })
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:46:9: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | set: {
45 | wrappedValue = $0
46 | closure()
| |- warning: capture of 'closure' 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'
47 | })
48 | }
[126/126] Compiling Store BindingProxy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Store/transactions/PushID.swift:22:21: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
18 | /// the latter ones will sort after the former ones. We do this by using the previous random bits
19 | /// but "incrementing" them by 1 (only in the case of a timestamp collision).
20 | public final class PushID {
| `- note: class 'PushID' does not conform to the 'Sendable' protocol
21 |
22 | public static let `default` = PushID()
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'PushID' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' 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
23 |
24 | // MARK: Static constants
/Users/admin/builder/spi-builder-workspace/Sources/Store/action/Action.swift:157:60: error: cannot specialize 'Self'
155 | }
156 |
157 | public func cancel(context: TransactionContext<Store<M>, Self<M, V>>) { }
| |- error: cannot specialize 'Self'
| `- note: did you mean to explicitly reference 'Assign' instead?
158 | }
159 |
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:32: warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: capture of 'rhs' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:30:32: warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
| `- warning: implicit capture of 'rhs' requires that 'T' conforms to `Sendable`; this is an error in the Swift 6 language mode
31 | set: { lhs.wrappedValue = $0 }
32 | )
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:31:12: warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
26 |
27 | /// Optional Coalescing for Bindings.
28 | public func ?? <T>(lhs: Binding<T?>, rhs: T) -> Binding<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
29 | Binding(
30 | get: { lhs.wrappedValue ?? rhs },
31 | set: { lhs.wrappedValue = $0 }
| `- warning: capture of 'lhs' with non-sendable type 'Binding<T?>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 | )
33 | }
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:43:14: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 | func onUpdate(_ closure: @escaping () -> Void) -> Binding<Value> {
42 | Binding(
43 | get: { wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | set: {
45 | wrappedValue = $0
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:45:9: warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | get: { wrappedValue },
44 | set: {
45 | wrappedValue = $0
| `- warning: capture of 'self' with non-sendable type 'Binding<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 | closure()
47 | })
/Users/admin/builder/spi-builder-workspace/Sources/Store/store/BindingProxy.swift:46:9: warning: capture of 'closure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | set: {
45 | wrappedValue = $0
46 | closure()
| |- warning: capture of 'closure' 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'
47 | })
48 | }
BUILD FAILURE 6.0 macosSpm