Build Information
Failed to build Store, reference 3.8.0 (4586ab
), with Swift 6.1 for Linux on 26 Apr 2025 16:36:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/alexdrone/Store.git
Reference: 3.8.0
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/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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/alexdrone/Store.git
https://github.com/alexdrone/Store.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "opencombine",
"requirement" : {
"range" : [
{
"lower_bound" : "0.10.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/OpenCombine/OpenCombine.git"
}
],
"manifest_display_name" : "Store",
"name" : "Store",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "Store",
"targets" : [
"Store"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "StoreTests",
"module_type" : "SwiftTarget",
"name" : "StoreTests",
"path" : "Tests/StoreTests",
"product_dependencies" : [
"Logging"
],
"sources" : [
"ChildStoreTests.swift",
"Protobuf/Data.pb.swift",
"Protobuf/ProtobufTests.swift",
"StoreTests.swift",
"Support/Models.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Store"
],
"type" : "test"
},
{
"c99name" : "Store",
"module_type" : "SwiftTarget",
"name" : "Store",
"path" : "Sources/Store",
"product_dependencies" : [
"Logging",
"OpenCombine",
"OpenCombineDispatch"
],
"product_memberships" : [
"Store"
],
"sources" : [
"action/Action.swift",
"action/KeyPath+Introspection.swift",
"concurrency/Executor.swift",
"concurrency/Locking.swift",
"concurrency/Operations.swift",
"middleware/Middleware.swift",
"serialization/DictionaryCodable.swift",
"serialization/Diffing.swift",
"serialization/Signpost.swift",
"store/BindingProxy.swift",
"store/CodableStore.swift",
"store/ModelStorage.swift",
"store/Store.swift",
"transactions/PushID.swift",
"transactions/Transaction.swift",
"transactions/TransactionContext.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/3836] Fetching swift-log
[3837/12116] Fetching swift-log, opencombine
Fetched https://github.com/apple/swift-log.git from cache (0.56s)
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.56s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (1.18s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.52s)
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.3
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.0
Building for debugging...
[0/6] Write sources
[4/6] Write swift-version-24593BA9C3E375BF.txt
[5/6] Compiling COpenCombineHelpers COpenCombineHelpers.cpp
[7/103] Emitting module OpenCombine
[8/115] Compiling OpenCombine Result.swift
[9/115] Compiling OpenCombine Scheduler.swift
[10/115] Compiling OpenCombine Subject+Void.swift
[11/115] Compiling OpenCombine Subscriber+Void.swift
[12/115] Compiling OpenCombine Subscribers.Assign.swift
[13/115] Compiling OpenCombine Subscribers.Completion.swift
[14/115] Compiling OpenCombine Subscribers.Demand.swift
[15/115] Compiling OpenCombine Subscribers.Sink.swift
[16/115] Compiling OpenCombine Subscribers.swift
[17/115] Compiling OpenCombine Subscription.swift
[18/115] Compiling OpenCombine Subscriptions.swift
[19/115] Compiling OpenCombine _Introspection.swift
[20/115] Compiling OpenCombine AnyCancellable.swift
[21/115] Compiling OpenCombine AnyPublisher.swift
[22/115] Compiling OpenCombine AnySubscriber.swift
[23/115] Compiling OpenCombine Cancellable.swift
[24/115] Compiling OpenCombine Codable.swift
[25/115] Compiling OpenCombine CombineIdentifier.swift
[26/115] Compiling OpenCombine ConcurrencyHelpers.swift
[27/115] Compiling OpenCombine Future+Concurrency.swift
[28/115] Compiling OpenCombine GENERATED-Publisher+Concurrency.swift
[29/115] Compiling OpenCombine CurrentValueSubject.swift
[30/115] Compiling OpenCombine CustomCombineIdentifierConvertible.swift
[31/115] Compiling OpenCombine Future.swift
[32/115] Compiling OpenCombine GENERATED-RootProtocols.swift
[33/115] Compiling OpenCombine Publishers.Count.swift
[34/115] Compiling OpenCombine Publishers.Debounce.swift
[35/115] Compiling OpenCombine Publishers.Delay.swift
[36/115] Compiling OpenCombine Publishers.Drop.swift
[37/115] Compiling OpenCombine Publishers.DropUntilOutput.swift
[38/115] Compiling OpenCombine Publishers.DropWhile.swift
[39/115] Compiling OpenCombine Publishers.Filter.swift
[40/115] Compiling OpenCombine Publishers.First.swift
[41/115] Compiling OpenCombine Publishers.FlatMap.swift
[42/115] Compiling OpenCombine Publishers.HandleEvents.swift
[43/115] Compiling OpenCombine Publishers.IgnoreOutput.swift
[44/115] Compiling OpenCombine Publishers.Last.swift
[45/115] Compiling OpenCombine Publishers.MakeConnectable.swift
[46/115] Compiling OpenCombine Just.swift
[47/115] Compiling OpenCombine Optional.Publisher.swift
[48/115] Compiling OpenCombine Publishers.AllSatisfy.swift
[49/115] Compiling OpenCombine Publishers.AssertNoFailure.swift
[50/115] Compiling OpenCombine Publishers.Autoconnect.swift
[51/115] Compiling OpenCombine Publishers.Breakpoint.swift
[52/115] Compiling OpenCombine Publishers.Buffer.swift
[53/115] Compiling OpenCombine Publishers.Collect.swift
[54/115] Compiling OpenCombine Publishers.CollectByCount.swift
[55/115] Compiling OpenCombine Publishers.CompactMap.swift
[56/115] Compiling OpenCombine Publishers.Comparison.swift
[57/115] Compiling OpenCombine Publishers.Concatenate.swift
[58/115] Compiling OpenCombine Publishers.Contains.swift
[59/115] Compiling OpenCombine ConduitBase.swift
[60/115] Compiling OpenCombine ConduitList.swift
[61/115] Compiling OpenCombine DebugHook.swift
[62/115] Compiling OpenCombine FilterProducer.swift
[63/115] Compiling OpenCombine Locking.swift
[64/115] Compiling OpenCombine PartialCompletion.swift
[65/115] Compiling OpenCombine PublishedSubject.swift
[66/115] Compiling OpenCombine PublishedSubscriber.swift
[67/115] Compiling OpenCombine ReduceProducer.swift
[68/115] Compiling OpenCombine SubjectSubscriber.swift
[69/115] Compiling OpenCombine SubscriberTap.swift
[70/115] Compiling OpenCombine SubscriptionStatus.swift
[71/115] Compiling OpenCombine SubscriptionTap.swift
[72/115] Compiling OpenCombine Utils.swift
[73/115] Compiling OpenCombine Violations.swift
[74/115] Compiling OpenCombine ImmediateScheduler.swift
[75/115] Compiling OpenCombine ObservableObject.swift
[76/115] Compiling OpenCombine PassthroughSubject.swift
[77/115] Compiling OpenCombine Published.swift
[78/115] Compiling OpenCombine Publisher+Subscribe.swift
[79/115] Compiling OpenCombine Deferred.swift
[80/115] Compiling OpenCombine Empty.swift
[81/115] Compiling OpenCombine Fail.swift
[82/115] Compiling OpenCombine GENERATED-Publishers.Catch.swift
[83/115] Compiling OpenCombine GENERATED-Publishers.Encode.swift
[84/115] Compiling OpenCombine GENERATED-Publishers.MapKeyPath.swift
[85/115] Compiling OpenCombine Publishers.Retry.swift
[86/115] Compiling OpenCombine Publishers.Scan.swift
[87/115] Compiling OpenCombine Publishers.Sequence.swift
[88/115] Compiling OpenCombine Publishers.SetFailureType.swift
[89/115] Compiling OpenCombine Publishers.Share.swift
[90/115] Compiling OpenCombine Publishers.SubscribeOn.swift
[91/115] Compiling OpenCombine Publishers.SwitchToLatest.swift
[92/115] Compiling OpenCombine Publishers.Throttle.swift
[93/115] Compiling OpenCombine Publishers.Timeout.swift
[94/115] Compiling OpenCombine Publishers.Zip.swift
[95/115] Compiling OpenCombine Publishers.swift
[96/115] Compiling OpenCombine Record.swift
[97/115] Compiling OpenCombine Result.Publisher.swift
[98/115] Compiling OpenCombine Publishers.Map.swift
[99/115] Compiling OpenCombine Publishers.MapError.swift
[100/115] Compiling OpenCombine Publishers.MeasureInterval.swift
[101/115] Compiling OpenCombine Publishers.Multicast.swift
[102/115] Compiling OpenCombine Publishers.Output.swift
[103/115] Compiling OpenCombine Publishers.PrefixUntilOutput.swift
[104/115] Compiling OpenCombine Publishers.PrefixWhile.swift
[105/115] Compiling OpenCombine Publishers.Print.swift
[106/115] Compiling OpenCombine Publishers.ReceiveOn.swift
[107/115] Compiling OpenCombine Publishers.Reduce.swift
[108/115] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[109/115] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[110/115] Compiling OpenCombine Publishers.ReplaceError.swift
[111/115] Compiling Logging MetadataProvider.swift
[112/116] Compiling Logging LogHandler.swift
[113/116] Compiling Logging Locks.swift
[114/116] Emitting module Logging
[115/116] Compiling Logging Logging.swift
[118/119] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[119/119] Emitting module OpenCombineDispatch
[121/135] Compiling Store Store.swift
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/spi-builder-workspace/Sources/Store/store/Store.swift:123:8: error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
121 |
122 | modelStorageObserver = modelStorage.objectWillChange
123 | .receive(on: RunLoop.main)
| `- error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
124 | .sink { [weak self] in
125 | guard let self = self else { return }
/host/spi-builder-workspace/.build/checkouts/OpenCombine/Sources/OpenCombine/Publishers/Publishers.ReceiveOn.swift:55:17: note: where 'Context' = 'RunLoop'
53 | /// - options: Scheduler options used to customize element delivery.
54 | /// - Returns: A publisher that delivers elements using the specified scheduler.
55 | public func receive<Context: Scheduler>(
| `- note: where 'Context' = 'RunLoop'
56 | on scheduler: Context,
57 | options: Context.SchedulerOptions? = nil
/host/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Static constants
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/transactions/PushID.swift:74:49: error: cannot find 'arc4random' in scope
72 | if !duplicateTime {
73 | for i in 0..<12 {
74 | self.lastRandChars[i] = Int(64 * Double(arc4random()) / Double(UInt32.max))
| `- error: cannot find 'arc4random' in scope
75 | }
76 | } else {
[122/135] Compiling Store PushID.swift
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/spi-builder-workspace/Sources/Store/store/Store.swift:123:8: error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
121 |
122 | modelStorageObserver = modelStorage.objectWillChange
123 | .receive(on: RunLoop.main)
| `- error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
124 | .sink { [weak self] in
125 | guard let self = self else { return }
/host/spi-builder-workspace/.build/checkouts/OpenCombine/Sources/OpenCombine/Publishers/Publishers.ReceiveOn.swift:55:17: note: where 'Context' = 'RunLoop'
53 | /// - options: Scheduler options used to customize element delivery.
54 | /// - Returns: A publisher that delivers elements using the specified scheduler.
55 | public func receive<Context: Scheduler>(
| `- note: where 'Context' = 'RunLoop'
56 | on scheduler: Context,
57 | options: Context.SchedulerOptions? = nil
/host/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Static constants
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/transactions/PushID.swift:74:49: error: cannot find 'arc4random' in scope
72 | if !duplicateTime {
73 | for i in 0..<12 {
74 | self.lastRandChars[i] = Int(64 * Double(arc4random()) / Double(UInt32.max))
| `- error: cannot find 'arc4random' in scope
75 | }
76 | } else {
[123/137] Compiling Store Signpost.swift
/host/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/137] Compiling Store BindingProxy.swift
/host/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/137] Compiling Store CodableStore.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[126/137] Compiling Store ModelStorage.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[127/137] Emitting module Store
/host/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 |
/host/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 |
/host/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: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Private.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/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))
/host/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)
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/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: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 | // MARK: Static constants
/host/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
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |
241 | /// All of the ongoing transactions.
[128/137] Compiling Store Action.swift
/host/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 |
/host/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 |
[129/137] Compiling Store KeyPath+Introspection.swift
/host/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 |
/host/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 |
[130/137] Compiling Store Transaction.swift
/host/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
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |
241 | /// All of the ongoing transactions.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[131/137] Compiling Store TransactionContext.swift
/host/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
/host/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
240 |
241 | /// All of the ongoing transactions.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[132/137] Compiling Store DictionaryCodable.swift
/host/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))
/host/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)
[133/137] Compiling Store Diffing.swift
/host/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))
/host/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)
[134/137] Compiling Store Operations.swift
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:61:16: error: cannot find 'mach_timebase_info' in scope
59 | /// Return the current time in µs.
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
| `- error: cannot find 'mach_timebase_info' in scope
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:11: error: cannot find 'mach_timebase_info' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'mach_timebase_info' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:40: error: cannot find 'KERN_SUCCESS' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'KERN_SUCCESS' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:63:23: error: cannot find 'mach_absolute_time' in scope
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
| `- error: cannot find 'mach_absolute_time' in scope
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
65 | return nanos
[135/137] Compiling Store Middleware.swift
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:61:16: error: cannot find 'mach_timebase_info' in scope
59 | /// Return the current time in µs.
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
| `- error: cannot find 'mach_timebase_info' in scope
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:11: error: cannot find 'mach_timebase_info' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'mach_timebase_info' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:40: error: cannot find 'KERN_SUCCESS' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'KERN_SUCCESS' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:63:23: error: cannot find 'mach_absolute_time' in scope
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
| `- error: cannot find 'mach_absolute_time' in scope
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
65 | return nanos
[136/137] Compiling Store Executor.swift
/host/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: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Private.
/host/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.
/host/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.
/host/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 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:27:5: error: cannot find 'os_unfair_lock_lock' in scope
25 | /// Locks an `os_unfair_lock`.
26 | mutating func lock() {
27 | os_unfair_lock_lock(&unfair)
| `- error: cannot find 'os_unfair_lock_lock' in scope
28 |
29 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:33:5: error: cannot find 'os_unfair_lock_unlock' in scope
31 | /// Unlocks an `os_unfair_lock`.
32 | mutating func unlock() {
33 | os_unfair_lock_unlock(&unfair)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
34 | }
35 | }
[137/137] Compiling Store Locking.swift
/host/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: add '@MainActor' to make static property 'main' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 | // Private.
/host/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.
/host/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.
/host/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 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:27:5: error: cannot find 'os_unfair_lock_lock' in scope
25 | /// Locks an `os_unfair_lock`.
26 | mutating func lock() {
27 | os_unfair_lock_lock(&unfair)
| `- error: cannot find 'os_unfair_lock_lock' in scope
28 |
29 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:33:5: error: cannot find 'os_unfair_lock_unlock' in scope
31 | /// Unlocks an `os_unfair_lock`.
32 | mutating func unlock() {
33 | os_unfair_lock_unlock(&unfair)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
34 | }
35 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/7] Compiling Logging MetadataProvider.swift
[3/98] Emitting module Logging
[4/98] Compiling Logging Locks.swift
[5/98] Compiling Logging Logging.swift
[6/98] Compiling Logging LogHandler.swift
[8/99] Compiling OpenCombine ConduitBase.swift
[9/99] Compiling OpenCombine ConduitList.swift
[10/99] Compiling OpenCombine DebugHook.swift
[11/99] Compiling OpenCombine FilterProducer.swift
[12/99] Compiling OpenCombine Locking.swift
[13/99] Compiling OpenCombine PartialCompletion.swift
[14/99] Compiling OpenCombine PublishedSubject.swift
[15/99] Compiling OpenCombine PublishedSubscriber.swift
[16/99] Compiling OpenCombine ReduceProducer.swift
[17/99] Compiling OpenCombine SubjectSubscriber.swift
[18/99] Compiling OpenCombine SubscriberTap.swift
[19/99] Compiling OpenCombine SubscriptionStatus.swift
[20/99] Compiling OpenCombine SubscriptionTap.swift
[21/111] Emitting module OpenCombine
[22/111] Compiling OpenCombine Utils.swift
[23/111] Compiling OpenCombine Violations.swift
[24/111] Compiling OpenCombine ImmediateScheduler.swift
[25/111] Compiling OpenCombine ObservableObject.swift
[26/111] Compiling OpenCombine PassthroughSubject.swift
[27/111] Compiling OpenCombine Published.swift
[28/111] Compiling OpenCombine Publisher+Subscribe.swift
[29/111] Compiling OpenCombine Deferred.swift
[30/111] Compiling OpenCombine Empty.swift
[31/111] Compiling OpenCombine Fail.swift
[32/111] Compiling OpenCombine GENERATED-Publishers.Catch.swift
[33/111] Compiling OpenCombine GENERATED-Publishers.Encode.swift
[34/111] Compiling OpenCombine GENERATED-Publishers.MapKeyPath.swift
[35/111] Compiling OpenCombine Result.swift
[36/111] Compiling OpenCombine Scheduler.swift
[37/111] Compiling OpenCombine Subject+Void.swift
[38/111] Compiling OpenCombine Subscriber+Void.swift
[39/111] Compiling OpenCombine Subscribers.Assign.swift
[40/111] Compiling OpenCombine Subscribers.Completion.swift
[41/111] Compiling OpenCombine Subscribers.Demand.swift
[42/111] Compiling OpenCombine Subscribers.Sink.swift
[43/111] Compiling OpenCombine Subscribers.swift
[44/111] Compiling OpenCombine Subscription.swift
[45/111] Compiling OpenCombine Subscriptions.swift
[46/111] Compiling OpenCombine _Introspection.swift
[47/111] Compiling OpenCombine Publishers.Map.swift
[48/111] Compiling OpenCombine Publishers.MapError.swift
[49/111] Compiling OpenCombine Publishers.MeasureInterval.swift
[50/111] Compiling OpenCombine Publishers.Multicast.swift
[51/111] Compiling OpenCombine Publishers.Output.swift
[52/111] Compiling OpenCombine Publishers.PrefixUntilOutput.swift
[53/111] Compiling OpenCombine Publishers.PrefixWhile.swift
[54/111] Compiling OpenCombine Publishers.Print.swift
[55/111] Compiling OpenCombine Publishers.ReceiveOn.swift
[56/111] Compiling OpenCombine Publishers.Reduce.swift
[57/111] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[58/111] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[59/111] Compiling OpenCombine Publishers.ReplaceError.swift
[60/111] Compiling OpenCombine Publishers.Count.swift
[61/111] Compiling OpenCombine Publishers.Debounce.swift
[62/111] Compiling OpenCombine Publishers.Delay.swift
[63/111] Compiling OpenCombine Publishers.Drop.swift
[64/111] Compiling OpenCombine Publishers.DropUntilOutput.swift
[65/111] Compiling OpenCombine Publishers.DropWhile.swift
[66/111] Compiling OpenCombine Publishers.Filter.swift
[67/111] Compiling OpenCombine Publishers.First.swift
[68/111] Compiling OpenCombine Publishers.FlatMap.swift
[69/111] Compiling OpenCombine Publishers.HandleEvents.swift
[70/111] Compiling OpenCombine Publishers.IgnoreOutput.swift
[71/111] Compiling OpenCombine Publishers.Last.swift
[72/111] Compiling OpenCombine Publishers.MakeConnectable.swift
[73/111] Compiling OpenCombine Just.swift
[74/111] Compiling OpenCombine Optional.Publisher.swift
[75/111] Compiling OpenCombine Publishers.AllSatisfy.swift
[76/111] Compiling OpenCombine Publishers.AssertNoFailure.swift
[77/111] Compiling OpenCombine Publishers.Autoconnect.swift
[78/111] Compiling OpenCombine Publishers.Breakpoint.swift
[79/111] Compiling OpenCombine Publishers.Buffer.swift
[80/111] Compiling OpenCombine Publishers.Collect.swift
[81/111] Compiling OpenCombine Publishers.CollectByCount.swift
[82/111] Compiling OpenCombine Publishers.CompactMap.swift
[83/111] Compiling OpenCombine Publishers.Comparison.swift
[84/111] Compiling OpenCombine Publishers.Concatenate.swift
[85/111] Compiling OpenCombine Publishers.Contains.swift
[86/111] Compiling OpenCombine AnyCancellable.swift
[87/111] Compiling OpenCombine AnyPublisher.swift
[88/111] Compiling OpenCombine AnySubscriber.swift
[89/111] Compiling OpenCombine Cancellable.swift
[90/111] Compiling OpenCombine Codable.swift
[91/111] Compiling OpenCombine CombineIdentifier.swift
[92/111] Compiling OpenCombine ConcurrencyHelpers.swift
[93/111] Compiling OpenCombine Future+Concurrency.swift
[94/111] Compiling OpenCombine GENERATED-Publisher+Concurrency.swift
[95/111] Compiling OpenCombine CurrentValueSubject.swift
[96/111] Compiling OpenCombine CustomCombineIdentifierConvertible.swift
[97/111] Compiling OpenCombine Future.swift
[98/111] Compiling OpenCombine GENERATED-RootProtocols.swift
[99/111] Compiling OpenCombine Publishers.Retry.swift
[100/111] Compiling OpenCombine Publishers.Scan.swift
[101/111] Compiling OpenCombine Publishers.Sequence.swift
[102/111] Compiling OpenCombine Publishers.SetFailureType.swift
[103/111] Compiling OpenCombine Publishers.Share.swift
[104/111] Compiling OpenCombine Publishers.SubscribeOn.swift
[105/111] Compiling OpenCombine Publishers.SwitchToLatest.swift
[106/111] Compiling OpenCombine Publishers.Throttle.swift
[107/111] Compiling OpenCombine Publishers.Timeout.swift
[108/111] Compiling OpenCombine Publishers.Zip.swift
[109/111] Compiling OpenCombine Publishers.swift
[110/111] Compiling OpenCombine Record.swift
[111/111] Compiling OpenCombine Result.Publisher.swift
[113/114] Emitting module OpenCombineDispatch
[114/114] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[116/130] Compiling Store CodableStore.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[117/130] Compiling Store ModelStorage.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[118/132] Compiling Store Store.swift
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/spi-builder-workspace/Sources/Store/store/Store.swift:123:8: error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
121 |
122 | modelStorageObserver = modelStorage.objectWillChange
123 | .receive(on: RunLoop.main)
| `- error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
124 | .sink { [weak self] in
125 | guard let self = self else { return }
/host/spi-builder-workspace/.build/checkouts/OpenCombine/Sources/OpenCombine/Publishers/Publishers.ReceiveOn.swift:55:17: note: where 'Context' = 'RunLoop'
53 | /// - options: Scheduler options used to customize element delivery.
54 | /// - Returns: A publisher that delivers elements using the specified scheduler.
55 | public func receive<Context: Scheduler>(
| `- note: where 'Context' = 'RunLoop'
56 | on scheduler: Context,
57 | options: Context.SchedulerOptions? = nil
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/transactions/PushID.swift:74:49: error: cannot find 'arc4random' in scope
72 | if !duplicateTime {
73 | for i in 0..<12 {
74 | self.lastRandChars[i] = Int(64 * Double(arc4random()) / Double(UInt32.max))
| `- error: cannot find 'arc4random' in scope
75 | }
76 | } else {
[119/132] Compiling Store PushID.swift
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/spi-builder-workspace/Sources/Store/store/Store.swift:123:8: error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
121 |
122 | modelStorageObserver = modelStorage.objectWillChange
123 | .receive(on: RunLoop.main)
| `- error: instance method 'receive(on:options:)' requires that 'RunLoop' conform to 'Scheduler'
124 | .sink { [weak self] in
125 | guard let self = self else { return }
/host/spi-builder-workspace/.build/checkouts/OpenCombine/Sources/OpenCombine/Publishers/Publishers.ReceiveOn.swift:55:17: note: where 'Context' = 'RunLoop'
53 | /// - options: Scheduler options used to customize element delivery.
54 | /// - Returns: A publisher that delivers elements using the specified scheduler.
55 | public func receive<Context: Scheduler>(
| `- note: where 'Context' = 'RunLoop'
56 | on scheduler: Context,
57 | options: Context.SchedulerOptions? = nil
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/transactions/PushID.swift:74:49: error: cannot find 'arc4random' in scope
72 | if !duplicateTime {
73 | for i in 0..<12 {
74 | self.lastRandChars[i] = Int(64 * Double(arc4random()) / Double(UInt32.max))
| `- error: cannot find 'arc4random' in scope
75 | }
76 | } else {
[120/132] Compiling Store Signpost.swift
/host/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 |
[121/132] Compiling Store BindingProxy.swift
/host/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 |
[122/132] Compiling Store Transaction.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[123/132] Compiling Store TransactionContext.swift
/host/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
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
[124/132] Compiling Store DictionaryCodable.swift
/host/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))
/host/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)
[125/132] Compiling Store Diffing.swift
/host/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))
/host/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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[126/132] Emitting module Store
/host/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 |
/host/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 |
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/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))
/host/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)
/host/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
/host/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)
/host/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),
/host/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),
/host/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),
/host/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
[127/132] Compiling Store Action.swift
/host/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 |
/host/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 |
[128/132] Compiling Store KeyPath+Introspection.swift
/host/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 |
/host/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 |
[129/132] Compiling Store Executor.swift
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:27:5: error: cannot find 'os_unfair_lock_lock' in scope
25 | /// Locks an `os_unfair_lock`.
26 | mutating func lock() {
27 | os_unfair_lock_lock(&unfair)
| `- error: cannot find 'os_unfair_lock_lock' in scope
28 |
29 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:33:5: error: cannot find 'os_unfair_lock_unlock' in scope
31 | /// Unlocks an `os_unfair_lock`.
32 | mutating func unlock() {
33 | os_unfair_lock_unlock(&unfair)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
34 | }
35 | }
[130/132] Compiling Store Locking.swift
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:27:5: error: cannot find 'os_unfair_lock_lock' in scope
25 | /// Locks an `os_unfair_lock`.
26 | mutating func lock() {
27 | os_unfair_lock_lock(&unfair)
| `- error: cannot find 'os_unfair_lock_lock' in scope
28 |
29 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:33:5: error: cannot find 'os_unfair_lock_unlock' in scope
31 | /// Unlocks an `os_unfair_lock`.
32 | mutating func unlock() {
33 | os_unfair_lock_unlock(&unfair)
| `- error: cannot find 'os_unfair_lock_unlock' in scope
34 | }
35 | }
[131/132] Compiling Store Operations.swift
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:61:16: error: cannot find 'mach_timebase_info' in scope
59 | /// Return the current time in µs.
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
| `- error: cannot find 'mach_timebase_info' in scope
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:11: error: cannot find 'mach_timebase_info' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'mach_timebase_info' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:40: error: cannot find 'KERN_SUCCESS' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'KERN_SUCCESS' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:63:23: error: cannot find 'mach_absolute_time' in scope
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
| `- error: cannot find 'mach_absolute_time' in scope
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
65 | return nanos
[132/132] Compiling Store Middleware.swift
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:46:4: error: Objective-C interoperability is disabled
44 |
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
| `- error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:4: error: Objective-C interoperability is disabled
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: Objective-C interoperability is disabled
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:47:37: error: property does not override any property from its superclass
45 | // Internal properties override.
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
| `- error: property does not override any property from its superclass
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:48:4: error: Objective-C interoperability is disabled
46 | @objc dynamic override public var isAsynchronous: Bool { true }
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
| `- error: Objective-C interoperability is disabled
49 | @objc dynamic override public var isFinished: Bool { __finished }
50 |
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:49:4: error: Objective-C interoperability is disabled
47 | @objc dynamic override public var isConcurrent: Bool { true }
48 | @objc dynamic override public var isExecuting: Bool { __executing }
49 | @objc dynamic override public var isFinished: Bool { __finished }
| `- error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:52:4: error: Objective-C interoperability is disabled
50 |
51 | // __ to avoid name clashes with the superclass.
52 | @objc dynamic private var __executing = false {
| `- error: Objective-C interoperability is disabled
53 | willSet { willChangeValue(forKey: "isExecuting") }
54 | didSet { didChangeValue(forKey: "isExecuting") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:58:4: error: Objective-C interoperability is disabled
56 |
57 | // __ to avoid name clashes with the superclass.
58 | @objc dynamic private var __finished = false {
| `- error: Objective-C interoperability is disabled
59 | willSet { willChangeValue(forKey: "isFinished") }
60 | didSet { didChangeValue(forKey: "isFinished") }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:64:4: error: Objective-C interoperability is disabled
62 |
63 | /// Begins the execution of the operation.
64 | @objc dynamic open override func start() {
| `- error: Objective-C interoperability is disabled
65 | __executing = true
66 | execute()
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:71:4: error: Objective-C interoperability is disabled
69 | /// Subclasses are expected to override the `execute` function and call the function `finish`
70 | /// when they're done with their task.
71 | @objc open func execute() {
| `- error: Objective-C interoperability is disabled
72 | fatalError("Your subclass must override this")
73 | }
/host/spi-builder-workspace/Sources/Store/concurrency/Operations.swift:76:4: error: Objective-C interoperability is disabled
74 |
75 | /// This function should be called inside `execute` when the task for this operation is completed.
76 | @objc dynamic open func finish() {
| `- error: Objective-C interoperability is disabled
77 | __executing = false
78 | __finished = true
/host/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.
/host/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.
/host/spi-builder-workspace/Sources/Store/concurrency/Locking.swift:23:24: error: cannot find 'os_unfair_lock_s' in scope
21 | /// memory, the lock implementation relies on the address of the lock value and owning process.
22 | struct UnfairLock {
23 | private var unfair = os_unfair_lock_s()
| `- error: cannot find 'os_unfair_lock_s' in scope
24 |
25 | /// Locks an `os_unfair_lock`.
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:61:16: error: cannot find 'mach_timebase_info' in scope
59 | /// Return the current time in µs.
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
| `- error: cannot find 'mach_timebase_info' in scope
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:11: error: cannot find 'mach_timebase_info' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'mach_timebase_info' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:62:40: error: cannot find 'KERN_SUCCESS' in scope
60 | private func _nanos() -> UInt64 {
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
| `- error: cannot find 'KERN_SUCCESS' in scope
63 | let currentTime = mach_absolute_time()
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
/host/spi-builder-workspace/Sources/Store/middleware/Middleware.swift:63:23: error: cannot find 'mach_absolute_time' in scope
61 | var info = mach_timebase_info()
62 | guard mach_timebase_info(&info) == KERN_SUCCESS else { return 0 }
63 | let currentTime = mach_absolute_time()
| `- error: cannot find 'mach_absolute_time' in scope
64 | let nanos = currentTime * UInt64(info.numer) / UInt64(info.denom)
65 | return nanos
BUILD FAILURE 6.1 linux