Build Information
Successful build of CacheStore, reference main (391f94
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 06:38:34 UTC.
Swift 6 data race errors: 2
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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xOpenBytes/CacheStore
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 391f94d Feature/for each (#26)
Cloned https://github.com/0xOpenBytes/CacheStore.git
Revision (git rev-parse @):
391f94dd5f2dc08dca86bed902d2bb1d569735db
SUCCESS checkout https://github.com/0xOpenBytes/CacheStore.git at main
Fetching https://github.com/0xLeif/swift-custom-dump
Fetching https://github.com/0xOpenBytes/c
[1/237] Fetching c
[18/1616] Fetching c, swift-custom-dump
Fetched https://github.com/0xLeif/swift-custom-dump from cache (0.76s)
Fetched https://github.com/0xOpenBytes/c from cache (0.76s)
Computing version for https://github.com/0xLeif/swift-custom-dump
Computed https://github.com/0xLeif/swift-custom-dump at 2022.11.1 (1.41s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.45s)
Computing version for https://github.com/0xOpenBytes/c
Computed https://github.com/0xOpenBytes/c at 3.0.2 (1.07s)
Fetching https://github.com/0xOpenBytes/t
[1/368] Fetching t
Fetched https://github.com/0xOpenBytes/t from cache (0.83s)
Computing version for https://github.com/0xOpenBytes/t
Computed https://github.com/0xOpenBytes/t at 1.0.4 (1.42s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.58s)
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 2022.11.1
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/c
Working copy of https://github.com/0xOpenBytes/c resolved at 3.0.2
========================================
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": "2022.11.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.85s)
Fetching https://github.com/0xOpenBytes/c from cache
Fetching https://github.com/0xLeif/swift-custom-dump from cache
Fetched https://github.com/0xLeif/swift-custom-dump from cache (0.45s)
Fetched https://github.com/0xOpenBytes/c from cache (0.45s)
Computing version for https://github.com/0xLeif/swift-custom-dump
Computed https://github.com/0xLeif/swift-custom-dump at 2022.11.1 (0.51s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.46s)
Computing version for https://github.com/0xOpenBytes/c
Computed https://github.com/0xOpenBytes/c at 3.0.2 (0.51s)
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.52s)
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/0xOpenBytes/CacheStore.git
Working copy of https://github.com/0xOpenBytes/CacheStore.git resolved at main (391f94d)
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/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/c
Working copy of https://github.com/0xOpenBytes/c resolved at 3.0.2
Creating working copy for https://github.com/0xLeif/swift-custom-dump
Working copy of https://github.com/0xLeif/swift-custom-dump resolved at 2022.11.1
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" : "2022.11.1",
"upper_bound" : "2023.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/ScopedKeyCacheStore.swift",
"Stores/CacheStore/ScopedKeyValueCacheStore.swift",
"Stores/Store/Content/Store+StoreContent.swift",
"Stores/Store/Content/StoreContent.swift",
"Stores/Store/Content/StoreView.swift",
"Stores/Store/ForEachStoreView.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 XCTFail.swift
[8/21] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[9/21] Compiling XCTestDynamicOverlay Unimplemented.swift
[10/21] Compiling t t+Structure.swift
[11/21] Compiling t t+Assertion.swift
[12/21] Compiling t t.swift
[13/21] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[14/21] Emitting module XCTestDynamicOverlay
[15/21] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[16/21] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[17/21] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[18/21] Compiling XCTestDynamicOverlay Deprecations.swift
[19/45] Emitting module t
[20/45] Compiling t t+Factories.swift
[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/49] Emitting module CustomDump
[27/49] Compiling CustomDump String.swift
[28/49] Compiling CustomDump XCTAssertNoDifference.swift
[29/49] Compiling CustomDump Diff.swift
[30/49] Compiling CustomDump Dump.swift
[31/49] Compiling CustomDump AnyType.swift
[32/49] Compiling CustomDump Box.swift
[33/49] Compiling CustomDump CustomDumpRepresentable.swift
[34/49] Compiling CustomDump CustomDumpStringConvertible.swift
[35/49] Compiling CustomDump Photos.swift
[36/49] Compiling CustomDump Speech.swift
[37/49] Compiling CustomDump StoreKit.swift
[38/49] Compiling CustomDump CoreImage.swift
[39/49] Compiling CustomDump CoreLocation.swift
[40/49] Compiling CustomDump CoreMotion.swift
[41/49] Compiling CustomDump Foundation.swift
[42/49] Compiling CustomDump GameKit.swift
[43/49] Compiling CustomDump KeyPath.swift
[44/49] Compiling CustomDump UserNotifications.swift
[45/49] Compiling CustomDump UserNotificationsUI.swift
[46/49] Compiling CustomDump CustomDumpReflectable.swift
[47/49] Compiling CustomDump Swift.swift
[48/49] Compiling CustomDump SwiftUI.swift
[49/49] Compiling CustomDump UIKit.swift
[50/60] Compiling CacheStore Store+StoreContent.swift
[51/60] Compiling CacheStore StoreContent.swift
[52/60] Compiling CacheStore ForEachStoreView.swift
[53/60] Compiling CacheStore StoreView.swift
[54/60] Compiling CacheStore ScopedKeyValueCacheStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/ScopedKeyValueCacheStore.swift:22:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
6 | //
7 |
8 | class ScopedKeyValueCacheStore<Key: Hashable, Value, ScopedKey: Hashable, ScopedValue>: CacheStore<ScopedKey> {
| `- note: 'Value' previously declared here
9 | weak var parentCacheStore: CacheStore<Key>?
10 | private var keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>
:
20 | required init(initialValues: [ScopedKey: Any]) { fatalError("Not implemented") }
21 |
22 | override func set<Value>(value: Value, forKey key: ScopedKey) {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | super.set(value: value, forKey: key)
24 |
[55/61] Compiling CacheStore ScopedKeyCacheStore.swift
[56/61] Emitting module CacheStore
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/ScopedKeyValueCacheStore.swift:22:23: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
6 | //
7 |
8 | class ScopedKeyValueCacheStore<Key: Hashable, Value, ScopedKey: Hashable, ScopedValue>: CacheStore<ScopedKey> {
| `- note: 'Value' previously declared here
9 | weak var parentCacheStore: CacheStore<Key>?
10 | private var keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>
:
20 | required init(initialValues: [ScopedKey: Any]) { fatalError("Not implemented") }
21 |
22 | override func set<Value>(value: Value, forKey key: ScopedKey) {
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
23 | super.set(value: value, forKey: key)
24 |
/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 a `ScopedStore`
196 | public func scope<Value, ScopedValue, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
197 | keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>,
198 | 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:196:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
194 |
195 | /// Creates a `ScopedStore`
196 | public func scope<Value, ScopedValue, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
197 | keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>,
198 | 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:244:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
242 |
243 | /// Creates an Actionless `ScopedStore`
244 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
245 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
246 | 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:244:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
242 |
243 | /// Creates an Actionless `ScopedStore`
244 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
245 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
246 | 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:325:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
323 |
324 | /// Creates a `ScopedStore`
325 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
326 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
327 | 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:325:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
323 |
324 | /// Creates a `ScopedStore`
325 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
326 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
327 | 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:341:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
339 |
340 | /// Creates a `ScopedStore`
341 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
342 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
343 | 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:341:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
339 |
340 | /// Creates a `ScopedStore`
341 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
342 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
343 | 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 |
[57/61] Compiling CacheStore ActionHandling.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:35: 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
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:45: 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
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:53: warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
211 |
212 | /// Creates a `Binding` for the given `Key`
213 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
214 | _ key: Key,
215 | as: Value.Type = Value.self,
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:53: warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
211 |
212 | /// Creates a `Binding` for the given `Key`
213 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
214 | _ key: Key,
215 | as: Value.Type = Value.self,
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in 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
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:220:35: 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
:
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
221 | )
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:220:64: 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
:
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
221 | )
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:230:35: 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
:
228 | ) -> Binding<Value?> {
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
232 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:230:45: 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
:
228 | ) -> Binding<Value?> {
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
232 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:231:35: 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
:
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
232 | )
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:231:64: 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
:
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
232 | )
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:45: 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
:
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:55: 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
:
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:243:35: 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
:
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
244 | )
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:243:64: 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
:
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
244 | )
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:45: 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
:
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:55: 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
:
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:255:35: 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
:
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
256 | )
257 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:255:64: 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
:
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
256 | )
257 | }
/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
[58/61] Compiling CacheStore CacheStore.swift
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:35: 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
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:45: 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
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:53: warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
211 |
212 | /// Creates a `Binding` for the given `Key`
213 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
214 | _ key: Key,
215 | as: Value.Type = Value.self,
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:219:53: warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
211 |
212 | /// Creates a `Binding` for the given `Key`
213 | func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
214 | _ key: Key,
215 | as: Value.Type = Value.self,
:
217 | ) -> Binding<Value> {
218 | Binding(
219 | get: { [weak self] in 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
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
221 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:220:35: 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
:
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
221 | )
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:220:64: 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
:
218 | Binding(
219 | get: { [weak self] in self?.get(key) ?? fallback },
220 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
221 | )
222 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:230:35: 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
:
228 | ) -> Binding<Value?> {
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
232 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:230:45: 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
:
228 | ) -> Binding<Value?> {
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
232 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:231:35: 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
:
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
232 | )
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:231:64: 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
:
229 | Binding(
230 | get: { [weak self] in self?.get(key) },
231 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
232 | )
233 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:45: 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
:
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:242:55: 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
:
240 | ) -> Binding<Value> {
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
244 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:243:35: 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
:
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
244 | )
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:243:64: 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
:
241 | Binding(
242 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
243 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
244 | )
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:45: 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
:
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:254:55: 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
:
252 | ) -> Binding<Value?> {
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
256 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:255:35: 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
:
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'self' with non-sendable type 'CacheStore<Key>?' in a '@Sendable' closure
256 | )
257 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/CacheStore/CacheStore.swift:255:64: 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
:
253 | Binding(
254 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
255 | set: { [weak self] in self?.set(value: $0, forKey: key) }
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
256 | )
257 | }
/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
[59/61] Compiling CacheStore ScopedStore.swift
[60/61] 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 a `ScopedStore`
196 | public func scope<Value, ScopedValue, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
197 | keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>,
198 | 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:196:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
194 |
195 | /// Creates a `ScopedStore`
196 | public func scope<Value, ScopedValue, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
197 | keyValueTransformation: BiDirectionalTransformation<(Key, Value?)?, (ScopedKey, ScopedValue?)?>,
198 | 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:244:17: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
242 |
243 | /// Creates an Actionless `ScopedStore`
244 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
245 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
246 | 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:244:17: warning: cannot use enum 'c' here; 'c' was not imported by this file
242 |
243 | /// Creates an Actionless `ScopedStore`
244 | public func actionlessScope<ScopedKey: Hashable, ScopedDependency>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
245 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
246 | 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:325:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
323 |
324 | /// Creates a `ScopedStore`
325 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
326 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
327 | 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:325:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
323 |
324 | /// Creates a `ScopedStore`
325 | func scope<ScopedKey: Hashable, ScopedAction>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
326 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
327 | 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:341:10: warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
339 |
340 | /// Creates a `ScopedStore`
341 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use type alias 'BiDirectionalTransformation' here; 'c' was not imported by this file
342 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
343 | 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:341:10: warning: cannot use enum 'c' here; 'c' was not imported by this file
339 |
340 | /// Creates a `ScopedStore`
341 | func actionlessScope<ScopedKey: Hashable>(
| `- warning: cannot use enum 'c' here; 'c' was not imported by this file
342 | keyTransformation: BiDirectionalTransformation<Key?, ScopedKey?>,
343 | 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:265:35: 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
:
263 | ) -> Binding<Value> {
264 | Binding(
265 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
266 | set: { [weak self] in self?.handle(action: using($0)) }
267 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:265:45: 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
:
263 | ) -> Binding<Value> {
264 | Binding(
265 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
266 | set: { [weak self] in self?.handle(action: using($0)) }
267 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:265:53: warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
257 |
258 | /// Creates a `Binding` for the given `Key` using an `Action` to set the value
259 | public func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
260 | _ key: Key,
261 | fallback: Value,
:
263 | ) -> Binding<Value> {
264 | Binding(
265 | get: { [weak self] in self?.get(key) ?? fallback },
| `- warning: capture of 'fallback' with non-sendable type 'Value' in a '@Sendable' closure
266 | set: { [weak self] in self?.handle(action: using($0)) }
267 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:265:53: warning: implicit capture of 'fallback' requires that 'Value' conforms to 'Sendable'; this is an error in the Swift 6 language mode
257 |
258 | /// Creates a `Binding` for the given `Key` using an `Action` to set the value
259 | public func binding<Value>(
| `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
260 | _ key: Key,
261 | fallback: Value,
:
263 | ) -> Binding<Value> {
264 | Binding(
265 | get: { [weak self] in 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
266 | set: { [weak self] in self?.handle(action: using($0)) }
267 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:266:35: 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
:
264 | Binding(
265 | get: { [weak self] in self?.get(key) ?? fallback },
266 | set: { [weak self] in self?.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
267 | )
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:266:56: warning: capture of 'using' with non-sendable type '(Value) -> Action' in a '@Sendable' closure
264 | Binding(
265 | get: { [weak self] in self?.get(key) ?? fallback },
266 | set: { [weak self] in 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'
267 | )
268 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:277:35: 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
:
275 | ) -> Binding<Value?> {
276 | Binding(
277 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
278 | set: { [weak self] in self?.handle(action: using($0)) }
279 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:277:45: 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
:
275 | ) -> Binding<Value?> {
276 | Binding(
277 | get: { [weak self] in self?.get(key) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
278 | set: { [weak self] in self?.handle(action: using($0)) }
279 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:278:35: 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
:
276 | Binding(
277 | get: { [weak self] in self?.get(key) },
278 | set: { [weak self] in self?.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
279 | )
280 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:278:56: warning: capture of 'using' with non-sendable type '(Value?) -> Action' in a '@Sendable' closure
276 | Binding(
277 | get: { [weak self] in self?.get(key) },
278 | set: { [weak self] in 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'
279 | )
280 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:290:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
288 | ) -> Binding<Value> {
289 | Binding(
290 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
291 | set: { [weak self] in self?.handle(action: using($0)) }
292 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:290:45: 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
:
288 | ) -> Binding<Value> {
289 | Binding(
290 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
291 | set: { [weak self] in self?.handle(action: using($0)) }
292 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:290:55: 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
:
288 | ) -> Binding<Value> {
289 | Binding(
290 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
291 | set: { [weak self] in self?.handle(action: using($0)) }
292 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:291:35: 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
:
289 | Binding(
290 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
291 | set: { [weak self] in self?.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
292 | )
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:291:56: warning: capture of 'using' with non-sendable type '(Value) -> Action' in a '@Sendable' closure
289 | Binding(
290 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
291 | set: { [weak self] in 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'
292 | )
293 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:303:35: warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
301 | ) -> Binding<Value?> {
302 | Binding(
303 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| |- warning: capture of 'transform' with non-sendable type '(ParentValue?) -> Value?' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
304 | set: { [weak self] in self?.handle(action: using($0)) }
305 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:303:45: 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
:
301 | ) -> Binding<Value?> {
302 | Binding(
303 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
304 | set: { [weak self] in self?.handle(action: using($0)) }
305 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:303:55: 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
:
301 | ) -> Binding<Value?> {
302 | Binding(
303 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
| `- warning: capture of 'key' with non-sendable type 'Key' in a '@Sendable' closure
304 | set: { [weak self] in self?.handle(action: using($0)) }
305 | )
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:304:35: 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
:
302 | Binding(
303 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
304 | set: { [weak self] in self?.handle(action: using($0)) }
| `- warning: capture of 'self' with non-sendable type 'Store<Key, Action, Dependency>?' in a '@Sendable' closure
305 | )
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:304:56: warning: capture of 'using' with non-sendable type '(Value?) -> Action' in a '@Sendable' closure
302 | Binding(
303 | get: { [weak self] in transform(self?.get(key, as: ParentValue.self)) },
304 | set: { [weak self] in 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'
305 | )
306 | }
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: call to main actor-isolated initializer 'init(store:key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
473 | extension Store {
474 | @ViewBuilder
475 | public func forEach<Value: Hashable, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- note: add '@MainActor' to make instance method 'forEach(key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' part of global actor 'MainActor'
476 | key: Key,
477 | as type: Value.Type,
:
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| `- warning: call to main actor-isolated initializer 'init(store:key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/ForEachStoreView.swift:27:5: note: calls to initializer 'init(store:key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' from outside of its actor context are implicitly asynchronous
25 | var content: (Store<ScopedKey, ScopedAction, ScopedDependency>) -> ContentView
26 |
27 | init(
| |- note: calls to initializer 'init(store:key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' from outside of its actor context are implicitly asynchronous
| `- note: main actor isolation inferred from conformance to protocol 'View'
28 | store: Store<Key, Action, Dependency>,
29 | key: Key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:510:9: warning: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
497 |
498 | @ViewBuilder
499 | public func listEach<Value: Hashable, ScopedKey: Hashable, ScopedAction, ScopedDependency>(
| `- note: add '@MainActor' to make instance method 'listEach(key:as:toScopedKey:actionHandler:dependencyTransformation:defaultCache:actionTransformation:noContentView:content:)' part of global actor 'MainActor'
500 | key: Key,
501 | as type: Value.Type,
:
508 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
509 | ) -> some View {
510 | List {
| `- warning: call to main actor-isolated initializer 'init(content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
511 | forEach(
512 | key: key,
SwiftUI.List.init:2:35: note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
1 | generic struct List {
2 | @MainActor @preconcurrency public init(@ViewBuilder content: () -> Content)}
| `- note: calls to initializer 'init(content:)' from outside of its actor context are implicitly asynchronous
3 |
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:376: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
374 | if let actionEffect = actionEffect {
375 | cancel(id: actionEffect.id)
376 | 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
377 | defer { self?.cancel(id: actionEffect.id) }
| | `- note: closure captures non-Sendable 'actionEffect'
| `- note: closure captures non-Sendable 'self'
378 |
379 | 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 {
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:37: 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 {
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
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'key' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'key' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'scopedKey' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'scopedKey' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'scopedKey' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'actionHandler' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'actionHandler' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'actionHandler' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'dependencyTransformation' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'dependencyTransformation' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'dependencyTransformation' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'noContentView' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'noContentView' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'noContentView' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:486:9: warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
484 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
485 | ) -> some View {
486 | ForEachStoreView(
| |- warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'content' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
487 | store: self,
488 | key: key,
/Users/admin/builder/spi-builder-workspace/Sources/CacheStore/Stores/Store/Store.swift:510:9: warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
508 | content: @escaping (Store<ScopedKey, ScopedAction, ScopedDependency>) -> some View
509 | ) -> some View {
510 | List {
| |- warning: sending value of non-Sendable type '() -> some View' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated value of non-Sendable type '() -> some View' to main actor-isolated callee risks causing races in between task-isolated and main actor-isolated uses
511 | forEach(
512 | key: key,
[61/61] 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 | }
Build complete! (16.72s)
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" : "2022.11.1",
"upper_bound" : "2023.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/ScopedKeyCacheStore.swift",
"Stores/CacheStore/ScopedKeyValueCacheStore.swift",
"Stores/Store/Content/Store+StoreContent.swift",
"Stores/Store/Content/StoreContent.swift",
"Stores/Store/Content/StoreView.swift",
"Stores/Store/ForEachStoreView.swift",
"Stores/Store/ScopedStore.swift",
"Stores/Store/Store.swift",
"Stores/Store/TestStore.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Done.