Build Information
Successful build of CacheStore, reference 4.0.0 (aa4e88
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:38:43 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xOpenBytes/CacheStore.git
Reference: 4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xOpenBytes/CacheStore
* tag 4.0.0 -> FETCH_HEAD
HEAD is now at aa4e884 V4.0.0 (#25)
Cloned https://github.com/0xOpenBytes/CacheStore.git
Revision (git rev-parse @):
aa4e884551f3286f5e841894fd274c17120f7fb2
SUCCESS checkout https://github.com/0xOpenBytes/CacheStore.git at 4.0.0
Fetching https://github.com/0xLeif/swift-custom-dump
Fetching https://github.com/0xOpenBytes/c
[1/237] Fetching c
[238/1616] Fetching c, swift-custom-dump
Fetched https://github.com/0xLeif/swift-custom-dump from cache (0.85s)
Fetched https://github.com/0xOpenBytes/c from cache (0.85s)
Computing version for https://github.com/0xLeif/swift-custom-dump
Computed https://github.com/0xLeif/swift-custom-dump at 0.4.1 (1.46s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.42s)
Computing version for https://github.com/0xOpenBytes/c
Computed https://github.com/0xOpenBytes/c at 3.0.2 (0.99s)
Fetching https://github.com/0xOpenBytes/t
[1/368] Fetching t
Fetched https://github.com/0xOpenBytes/t from cache (0.88s)
Computing version for https://github.com/0xOpenBytes/t
Computed https://github.com/0xOpenBytes/t at 1.0.4 (1.47s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.57s)
Creating working copy for https://github.com/0xOpenBytes/c
Working copy of https://github.com/0xOpenBytes/c resolved at 3.0.2
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/0xOpenBytes/t
Working copy of https://github.com/0xOpenBytes/t resolved at 1.0.4
Creating working copy for https://github.com/0xLeif/swift-custom-dump
Working copy of https://github.com/0xLeif/swift-custom-dump resolved at 0.4.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "cachestore",
"name": "CacheStore",
"url": "https://github.com/0xOpenBytes/CacheStore.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CacheStore",
"dependencies": [
{
"identity": "c",
"name": "c",
"url": "https://github.com/0xOpenBytes/c",
"version": "3.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/c",
"dependencies": [
{
"identity": "t",
"name": "t",
"url": "https://github.com/0xOpenBytes/t",
"version": "1.0.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/t",
"dependencies": [
]
}
]
},
{
"identity": "swift-custom-dump",
"name": "swift-custom-dump",
"url": "https://github.com/0xLeif/swift-custom-dump",
"version": "0.4.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-custom-dump",
"dependencies": [
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/0xOpenBytes/CacheStore.git
[1/1085] Fetching cachestore
Fetched https://github.com/0xOpenBytes/CacheStore.git from cache (0.74s)
Fetching https://github.com/0xLeif/swift-custom-dump from cache
Fetching https://github.com/0xOpenBytes/c from cache
Fetched https://github.com/0xOpenBytes/c from cache (0.48s)
Fetched https://github.com/0xLeif/swift-custom-dump from cache (0.48s)
Computing version for https://github.com/0xLeif/swift-custom-dump
Computed https://github.com/0xLeif/swift-custom-dump at 0.4.1 (0.54s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.47s)
Computing version for https://github.com/0xOpenBytes/c
Computed https://github.com/0xOpenBytes/c at 3.0.2 (0.53s)
Fetching https://github.com/0xOpenBytes/t from cache
Fetched https://github.com/0xOpenBytes/t from cache (0.47s)
Computing version for https://github.com/0xOpenBytes/t
Computed https://github.com/0xOpenBytes/t at 1.0.4 (0.53s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.03s)
Creating working copy for https://github.com/0xLeif/swift-custom-dump
Working copy of https://github.com/0xLeif/swift-custom-dump resolved at 0.4.1
Creating working copy for https://github.com/0xOpenBytes/t
Working copy of https://github.com/0xOpenBytes/t resolved at 1.0.4
Creating working copy for https://github.com/0xOpenBytes/CacheStore.git
Working copy of https://github.com/0xOpenBytes/CacheStore.git resolved at 4.0.0 (aa4e884)
Creating working copy for https://github.com/0xOpenBytes/c
Working copy of https://github.com/0xOpenBytes/c resolved at 3.0.2
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
warning: '.resolve-product-dependencies': dependency 'cachestore' is not used by any target
Found 2 product dependencies
- c
- swift-custom-dump
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/0xOpenBytes/CacheStore.git
https://github.com/0xOpenBytes/CacheStore.git
{
"dependencies" : [
{
"identity" : "c",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/0xOpenBytes/c"
},
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/0xLeif/swift-custom-dump"
}
],
"manifest_display_name" : "CacheStore",
"name" : "CacheStore",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "CacheStore",
"targets" : [
"CacheStore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CacheStoreTests",
"module_type" : "SwiftTarget",
"name" : "CacheStoreTests",
"path" : "Tests/CacheStoreTests",
"sources" : [
"CacheStoreTests.swift",
"StoreContentTests.swift",
"StoreTests.swift"
],
"target_dependencies" : [
"CacheStore"
],
"type" : "test"
},
{
"c99name" : "CacheStore",
"module_type" : "SwiftTarget",
"name" : "CacheStore",
"path" : "Sources/CacheStore",
"product_dependencies" : [
"c",
"CustomDump"
],
"product_memberships" : [
"CacheStore"
],
"sources" : [
"Actions/ActionHandling.swift",
"Stores/CacheStore/CacheStore.swift",
"Stores/CacheStore/ScopedCacheStore.swift",
"Stores/Store/Content/Store+StoreContent.swift",
"Stores/Store/Content/StoreContent.swift",
"Stores/Store/Content/StoreView.swift",
"Stores/Store/ScopedStore.swift",
"Stores/Store/Store.swift",
"Stores/Store/TestStore.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-2F0A5646E1D333AE.txt
[7/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[8/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[9/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[10/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[11/21] Compiling XCTestDynamicOverlay XCTFail.swift
[12/21] Compiling XCTestDynamicOverlay Deprecations.swift
[13/21] Emitting module XCTestDynamicOverlay
[14/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[15/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[16/45] Compiling t t.swift
[17/45] Compiling t t+Structure.swift
[18/45] Compiling t t+Factories.swift
[19/45] Compiling t t+Assertion.swift
[20/45] Emitting module t
[21/45] Compiling t t+Logging.swift
[22/47] Compiling c c.swift
[23/47] Emitting module c
[24/47] Compiling CustomDump CollectionDifference.swift
[25/47] Compiling CustomDump Mirror.swift
[26/47] Compiling CustomDump AnyType.swift
[27/47] Compiling CustomDump Box.swift
[28/49] Emitting module CustomDump
[29/49] Compiling CustomDump String.swift
[30/49] Compiling CustomDump XCTAssertNoDifference.swift
[31/49] Compiling CustomDump CoreImage.swift
[32/49] Compiling CustomDump CoreLocation.swift
[33/49] Compiling CustomDump CoreMotion.swift
[34/49] Compiling CustomDump Photos.swift
[35/49] Compiling CustomDump Speech.swift
[36/49] Compiling CustomDump StoreKit.swift
[37/49] Compiling CustomDump Diff.swift
[38/49] Compiling CustomDump Dump.swift
[39/49] Compiling CustomDump CustomDumpRepresentable.swift
[40/49] Compiling CustomDump CustomDumpStringConvertible.swift
[41/49] Compiling CustomDump Foundation.swift
[42/49] Compiling CustomDump GameKit.swift
[43/49] Compiling CustomDump KeyPath.swift
[44/49] Compiling CustomDump Swift.swift
[45/49] Compiling CustomDump SwiftUI.swift
[46/49] Compiling CustomDump UIKit.swift
[47/49] Compiling CustomDump UserNotifications.swift
[48/49] Compiling CustomDump UserNotificationsUI.swift
[49/49] Compiling CustomDump CustomDumpReflectable.swift
[50/59] Compiling CacheStore ScopedStore.swift
[51/59] Compiling CacheStore TestStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/TestStore.swift:11:23: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | /// Static object to provide the `FailureHandler` to any `TestStore`
10 | public enum TestStoreFailure {
11 | public static var handler: FailureHandler = XCTestDynamicOverlay.XCTFail
| |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/TestStore.swift:130:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
128 | let sema = DispatchSemaphore(value: 0)
129 |
130 | Task {
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
131 | nextAction = await effect.effect()
| `- note: closure captures 'self' which is accessible to code in the current task
132 | sema.signal()
133 | }
[52/59] Compiling CacheStore StoreView.swift
[53/59] Compiling CacheStore ScopedCacheStore.swift
[54/59] Compiling CacheStore CacheStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:194:20: warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: generic class 'CacheStore' does not conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
192 | ) -> Binding<Value> {
193 | Binding(
194 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
195 | set: { self.set(value: $0, forKey: key) }
196 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:194:29: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
192 | ) -> Binding<Value> {
193 | Binding(
194 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
195 | set: { self.set(value: $0, forKey: key) }
196 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:194:37: warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
186 |
187 | /// Creates a `Binding` for the given `Key`
188 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
189 | _ key: Key,
190 | as: Value.Type = Value.self,
:
192 | ) -> Binding<Value> {
193 | Binding(
194 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
195 | set: { self.set(value: $0, forKey: key) }
196 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:194:37: warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
186 |
187 | /// Creates a `Binding` for the given `Key`
188 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
189 | _ key: Key,
190 | as: Value.Type = Value.self,
:
192 | ) -> Binding<Value> {
193 | Binding(
194 | get: { self.get(key) ?? fallback },
| `- warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
195 | set: { self.set(value: $0, forKey: key) }
196 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:195:20: warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: generic class 'CacheStore' does not conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
193 | Binding(
194 | get: { self.get(key) ?? fallback },
195 | set: { self.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
196 | )
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:195:48: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
193 | Binding(
194 | get: { self.get(key) ?? fallback },
195 | set: { self.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
196 | )
197 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:205:20: warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: generic class 'CacheStore' does not conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
203 | ) -> Binding<Value?> {
204 | Binding(
205 | get: { self.get(key) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
206 | set: { self.set(value: $0, forKey: key) }
207 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:205:29: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
203 | ) -> Binding<Value?> {
204 | Binding(
205 | get: { self.get(key) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
206 | set: { self.set(value: $0, forKey: key) }
207 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:206:20: warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: generic class 'CacheStore' does not conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
204 | Binding(
205 | get: { self.get(key) },
206 | set: { self.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>' in a '@Sendable' closure
207 | )
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:206:48: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
7 |
8 | /// An `ObservableObject` that has a `cache` which is the source of truth for this object
9 | open class CacheStore<Key: Hashable>: ObservableObject, Cacheable {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
10 | /// `Error` that reports the missing keys for the `CacheStore`
11 | public typealias MissingRequiredKeysError = c.MissingRequiredKeysError
:
204 | Binding(
205 | get: { self.get(key) },
206 | set: { self.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
207 | )
208 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:69:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
67 | guard Thread.isMainThread else {
68 | DispatchQueue.main.async {
69 | self.set(value: value, forKey: key)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
70 | }
71 | return
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:69:33: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
67 | guard Thread.isMainThread else {
68 | DispatchQueue.main.async {
69 | self.set(value: value, forKey: key)
| |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'value' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
70 | }
71 | return
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:69:48: warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
67 | guard Thread.isMainThread else {
68 | DispatchQueue.main.async {
69 | self.set(value: value, forKey: key)
| |- warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'key' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
70 | }
71 | return
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:134:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
132 | guard Thread.isMainThread else {
133 | DispatchQueue.main.async {
134 | self.remove(key)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
135 | }
136 | return
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:134:29: warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
132 | guard Thread.isMainThread else {
133 | DispatchQueue.main.async {
134 | self.remove(key)
| |- warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'key' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
135 | }
136 | return
[55/59] Compiling CacheStore Store+StoreContent.swift
[56/59] Compiling CacheStore ActionHandling.swift
[57/59] Compiling CacheStore StoreContent.swift
[58/59] Compiling CacheStore Store.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:153:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
151 |
152 | /// Creates a `ScopedStore`
153 | public func scope<ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
154 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
155 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, ScopedDependency>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:153:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
151 |
152 | /// Creates a `ScopedStore`
153 | public func scope<ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
154 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
155 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, ScopedDependency>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:196:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
194 |
195 | /// Creates an Actionless `ScopedStore`
196 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
197 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
198 | dependencyTransformation: (Dependency) -> ScopedDependency,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:196:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
194 |
195 | /// Creates an Actionless `ScopedStore`
196 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
197 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
198 | dependencyTransformation: (Dependency) -> ScopedDependency,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:251:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
249 |
250 | /// Creates a `ScopedStore`
251 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
252 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
253 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, Void>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:251:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
249 |
250 | /// Creates a `ScopedStore`
251 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
252 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
253 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, Void>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:267:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
265 |
266 | /// Creates a `ScopedStore`
267 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
268 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
269 | defaultCache: [ScopedKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:267:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
265 |
266 | /// Creates a `ScopedStore`
267 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
268 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
269 | defaultCache: [ScopedKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:217:20: warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
215 | ) -> Binding<Value> {
216 | Binding(
217 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
218 | set: { self.handle(action: using($0)) }
219 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:217:29: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
215 | ) -> Binding<Value> {
216 | Binding(
217 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
218 | set: { self.handle(action: using($0)) }
219 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:217:37: warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
209 |
210 | /// Creates a `Binding` for the given `Key` using an `Action` to set the value
211 | public func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
212 | _ key: Key,
213 | fallback: Value,
:
215 | ) -> Binding<Value> {
216 | Binding(
217 | get: { self.get(key) ?? fallback },
| `- warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
218 | set: { self.handle(action: using($0)) }
219 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:217:37: warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
209 |
210 | /// Creates a `Binding` for the given `Key` using an `Action` to set the value
211 | public func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
212 | _ key: Key,
213 | fallback: Value,
:
215 | ) -> Binding<Value> {
216 | Binding(
217 | get: { self.get(key) ?? fallback },
| `- warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
218 | set: { self.handle(action: using($0)) }
219 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:218:20: warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
216 | Binding(
217 | get: { self.get(key) ?? fallback },
218 | set: { self.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
219 | )
220 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:218:40: warning: capture of 'using' with non-sendable type '(Value) -> Action' in a '@Sendable' closure
216 | Binding(
217 | get: { self.get(key) ?? fallback },
218 | set: { self.handle(action: using($0)) }
| |- warning: capture of 'using' with non-sendable type '(Value) -> Action' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
219 | )
220 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:229:20: warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
227 | ) -> Binding<Value?> {
228 | Binding(
229 | get: { self.get(key) },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
230 | set: { self.handle(action: using($0)) }
231 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:229:29: warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
227 | ) -> Binding<Value?> {
228 | Binding(
229 | get: { self.get(key) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
230 | set: { self.handle(action: using($0)) }
231 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:230:20: warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
6 |
7 | /// An `ObservableObject` that uses actions to modify the state which is a `CacheStore`
8 | open class Store<Key: Hashable, Action, Dependency>: ObservableObject, ActionHandling {
| `- note: generic class 'Store' does not conform to the 'Sendable' protocol
9 | private var lock: NSLock
10 | private var isDebugging: Bool
:
228 | Binding(
229 | get: { self.get(key) },
230 | set: { self.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>' in a '@Sendable' closure
231 | )
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:230:40: warning: capture of 'using' with non-sendable type '(Value?) -> Action' in a '@Sendable' closure
228 | Binding(
229 | get: { self.get(key) },
230 | set: { self.handle(action: using($0)) }
| |- warning: capture of 'using' with non-sendable type '(Value?) -> Action' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
231 | )
232 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:302:35: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
300 | if let actionEffect = actionEffect {
301 | cancel(id: actionEffect.id)
302 | let effectTask = Task { [weak self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
303 | defer { self?.cancel(id: actionEffect.id) }
| | `- note: closure captures non-Sendable 'actionEffect'
| `- note: closure captures non-Sendable 'self'
304 |
305 | if Task.isCancelled { return }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:117:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
115 | guard Thread.isMainThread else {
116 | DispatchQueue.main.async { [weak self] in
117 | self?.handle(action: action)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
118 | }
119 | return
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:117:38: warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
115 | guard Thread.isMainThread else {
116 | DispatchQueue.main.async { [weak self] in
117 | self?.handle(action: action)
| |- warning: sending 'action' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'action' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
118 | }
119 | return
[59/59] Emitting module CacheStore
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:153:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
151 |
152 | /// Creates a `ScopedStore`
153 | public func scope<ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
154 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
155 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, ScopedDependency>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:153:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
151 |
152 | /// Creates a `ScopedStore`
153 | public func scope<ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
154 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
155 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, ScopedDependency>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:196:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
194 |
195 | /// Creates an Actionless `ScopedStore`
196 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
197 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
198 | dependencyTransformation: (Dependency) -> ScopedDependency,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:196:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
194 |
195 | /// Creates an Actionless `ScopedStore`
196 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
197 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
198 | dependencyTransformation: (Dependency) -> ScopedDependency,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:251:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
249 |
250 | /// Creates a `ScopedStore`
251 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
252 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
253 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, Void>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:251:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
249 |
250 | /// Creates a `ScopedStore`
251 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
252 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
253 | actionHandler: StoreActionHandler<ScopedKey, ScopedAction, Void>,
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:267:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
265 |
266 | /// Creates a `ScopedStore`
267 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
268 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
269 | defaultCache: [ScopedKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:349:15: note: type alias declared here
347 |
348 | /// This transformation uses two UniDirectionalTransformations to be able to transform `From` into `To` and `To` into `From`.
349 | typealias BiDirectionalTransformation<From, To> = (
| `- note: type alias declared here
350 | from: UniDirectionalTransformation<From, To>,
351 | to: UniDirectionalTransformation<To, From>
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:267:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
265 |
266 | /// Creates a `ScopedStore`
267 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
268 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
269 | defaultCache: [ScopedKey: Any] = [:]
/Users/admin/builder/spi-builder-workspace/.build/checkouts/c/Sources/c/c.swift:45:13: note: enum declared here
43 |
44 | /// Composition
45 | public enum c {
| `- note: enum declared here
46 | /// `Error` that reports the missing keys
47 | public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/TestStore.swift:11:23: warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | /// Static object to provide the `FailureHandler` to any `TestStore`
10 | public enum TestStoreFailure {
11 | public static var handler: FailureHandler = XCTestDynamicOverlay.XCTFail
| |- warning: static property 'handler' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'handler' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'handler' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
Build complete! (19.17s)
Build complete.
{
"dependencies" : [
{
"identity" : "c",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/0xOpenBytes/c"
},
{
"identity" : "swift-custom-dump",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.1",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/0xLeif/swift-custom-dump"
}
],
"manifest_display_name" : "CacheStore",
"name" : "CacheStore",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
}
],
"products" : [
{
"name" : "CacheStore",
"targets" : [
"CacheStore"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "CacheStoreTests",
"module_type" : "SwiftTarget",
"name" : "CacheStoreTests",
"path" : "Tests/CacheStoreTests",
"sources" : [
"CacheStoreTests.swift",
"StoreContentTests.swift",
"StoreTests.swift"
],
"target_dependencies" : [
"CacheStore"
],
"type" : "test"
},
{
"c99name" : "CacheStore",
"module_type" : "SwiftTarget",
"name" : "CacheStore",
"path" : "Sources/CacheStore",
"product_dependencies" : [
"c",
"CustomDump"
],
"product_memberships" : [
"CacheStore"
],
"sources" : [
"Actions/ActionHandling.swift",
"Stores/CacheStore/CacheStore.swift",
"Stores/CacheStore/ScopedCacheStore.swift",
"Stores/Store/Content/Store+StoreContent.swift",
"Stores/Store/Content/StoreContent.swift",
"Stores/Store/Content/StoreView.swift",
"Stores/Store/ScopedStore.swift",
"Stores/Store/Store.swift",
"Stores/Store/TestStore.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.