Build Information
Successful build of SwiftUIRules, reference 0.2.0 (00dff8
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 12:27:04 UTC.
Swift 6 data race errors: 18
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DirectToSwift/SwiftUIRules.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/DirectToSwift/SwiftUIRules
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 00dff8d Merge branch 'develop'
Cloned https://github.com/DirectToSwift/SwiftUIRules.git
Revision (git rev-parse @):
00dff8dbe59d3663df6ca69d904f41c5ab74779e
SUCCESS checkout https://github.com/DirectToSwift/SwiftUIRules.git at 0.2.0
========================================
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": "swiftuirules",
"name": "SwiftUIRules",
"url": "https://github.com/DirectToSwift/SwiftUIRules.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUIRules",
"dependencies": [
]
}
]
}
Fetching https://github.com/DirectToSwift/SwiftUIRules.git
[1/193] Fetching swiftuirules
Fetched https://github.com/DirectToSwift/SwiftUIRules.git from cache (0.74s)
Creating working copy for https://github.com/DirectToSwift/SwiftUIRules.git
Working copy of https://github.com/DirectToSwift/SwiftUIRules.git resolved at 0.2.0 (00dff8d)
warning: '.resolve-product-dependencies': dependency 'swiftuirules' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/DirectToSwift/SwiftUIRules.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/23] Emitting module SwiftUIRules
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleKeyAssignment.swift:49:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 | * @see RuleAssignment
29 | */
30 | public struct RuleKeyAssignment<K: DynamicEnvironmentKey,
| `- note: 'K' previously declared here
31 | Value: DynamicEnvironmentKey>
32 | : RuleCandidate, RuleAction
:
47 | return ObjectIdentifier(key)
48 | }
49 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | -> Bool
51 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:66:29: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
66 | where Value == K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
67 | {
68 | self.init(ObjectIdentifier(key), constant)
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:65:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
63 | public extension RuleTypeIDAssignment {
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
66 | where Value == K.Value
67 | {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:15:28: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
13 |
14 | public let key : K.Type
15 | public let constant : K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:17:44: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
15 | public let constant : K.Value
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
18 | self.key = key
19 | self.constant = constant
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:26:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleValueAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
10 | : RuleCandidate, RuleAction
11 | {
:
24 | }
25 |
26 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | -> Bool
28 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:22:69: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
20 | mutating func storeValue<V>(_ value: V, forTypeID typeID: ObjectIdentifier)
21 |
22 | func defaultValue<K: DynamicEnvironmentKey>(for key: K.Type) -> K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
23 | }
24 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:31:57: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
29 | * the key if the `resolveValueForTypeID` returns no value.
30 | */
31 | subscript<K: DynamicEnvironmentKey>(key: K.Type) -> K.Value {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
32 | // Note a subscript w/o a name can be used on types w/o adding `.self`!!
33 | set { storeValue(newValue, forTypeID: ObjectIdentifier(key)) }
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:47:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
45 | * key.
46 | */
47 | func optional<K: DynamicEnvironmentKey>(_ key: K.Type) -> K.Value? {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
48 | let typeID = ObjectIdentifier(key)
49 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:12:21: warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
12 | public static let no = RuleBoolPredicate(value: false)
| |- warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'no' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private let value : Bool
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:68:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
66 | public extension RuleKeyPathPredicate {
67 |
68 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
69 | value: Value) where Value: Equatable
70 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:83:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
81 | }
82 |
83 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
84 | operation: RuleComparisonOperation = .equal,
85 | value: Value) where Value: Comparable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:94:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
92 |
93 | public extension RuleKeyPathPredicate {
94 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Equatable
96 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:110:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
108 | }
109 |
110 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
111 | operation: RuleComparisonOperation = .equal,
112 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Comparable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:56:23: warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
54 | @inlinable public init(integerLiteral value: Int16) { self.init(value) }
55 |
56 | public static let important = Priority(1000)
| |- warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'important' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:57:23: warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
55 |
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
| |- warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryHigh' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:58:23: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'high' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:60:23: warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
| |- warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'low' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:61:23: warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
| |- warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryLow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let fallback = Priority(0)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:62:23: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fallback' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:132:21: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
45 | *
46 | */
47 | public struct RuleContext: DynamicEnvironmentValues {
| `- note: consider making struct 'RuleContext' conform to the 'Sendable' protocol
48 |
49 | public let ruleModel : RuleModel
:
130 | */
131 | public struct RuleContextKey: EnvironmentKey {
132 | public static let defaultValue = RuleContext(ruleModel: RuleModel())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:153:17: warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
151 | // MARK: - KeyPath Type Reflection
152 |
153 | fileprivate var queryTypeMode = false
| |- warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queryTypeMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'queryTypeMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
155 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:154:17: warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | fileprivate var queryTypeMode = false
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
| |- warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastTypeQuery' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastTypeQuery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | public extension RuleContext {
[4/25] Compiling SwiftUIRules RuleModel.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
[5/25] Compiling SwiftUIRules RuleDebug.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
[6/25] Compiling SwiftUIRules RuleAction.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleKeyAssignment.swift:49:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 | * @see RuleAssignment
29 | */
30 | public struct RuleKeyAssignment<K: DynamicEnvironmentKey,
| `- note: 'K' previously declared here
31 | Value: DynamicEnvironmentKey>
32 | : RuleCandidate, RuleAction
:
47 | return ObjectIdentifier(key)
48 | }
49 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | -> Bool
51 | {
[7/25] Compiling SwiftUIRules RuleCandidate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleKeyAssignment.swift:49:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 | * @see RuleAssignment
29 | */
30 | public struct RuleKeyAssignment<K: DynamicEnvironmentKey,
| `- note: 'K' previously declared here
31 | Value: DynamicEnvironmentKey>
32 | : RuleCandidate, RuleAction
:
47 | return ObjectIdentifier(key)
48 | }
49 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | -> Bool
51 | {
[8/25] Compiling SwiftUIRules RuleKeyAssignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleKeyAssignment.swift:49:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
28 | * @see RuleAssignment
29 | */
30 | public struct RuleKeyAssignment<K: DynamicEnvironmentKey,
| `- note: 'K' previously declared here
31 | Value: DynamicEnvironmentKey>
32 | : RuleCandidate, RuleAction
:
47 | return ObjectIdentifier(key)
48 | }
49 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
50 | -> Bool
51 | {
[9/25] Compiling SwiftUIRules RuleTypeIDAssignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:66:29: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
66 | where Value == K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
67 | {
68 | self.init(ObjectIdentifier(key), constant)
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:65:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
63 | public extension RuleTypeIDAssignment {
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
66 | where Value == K.Value
67 | {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:15:28: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
13 |
14 | public let key : K.Type
15 | public let constant : K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:17:44: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
15 | public let constant : K.Value
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
18 | self.key = key
19 | self.constant = constant
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:26:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleValueAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
10 | : RuleCandidate, RuleAction
11 | {
:
24 | }
25 |
26 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | -> Bool
28 | {
[10/25] Compiling SwiftUIRules RuleTypeIDPathAssignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:66:29: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
66 | where Value == K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
67 | {
68 | self.init(ObjectIdentifier(key), constant)
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:65:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
63 | public extension RuleTypeIDAssignment {
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
66 | where Value == K.Value
67 | {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:15:28: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
13 |
14 | public let key : K.Type
15 | public let constant : K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:17:44: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
15 | public let constant : K.Value
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
18 | self.key = key
19 | self.constant = constant
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:26:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleValueAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
10 | : RuleCandidate, RuleAction
11 | {
:
24 | }
25 |
26 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | -> Bool
28 | {
[11/25] Compiling SwiftUIRules RuleValueAssignment.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:66:29: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
66 | where Value == K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
67 | {
68 | self.init(ObjectIdentifier(key), constant)
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleTypeIDAssignment.swift:65:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
63 | public extension RuleTypeIDAssignment {
64 |
65 | init<K: DynamicEnvironmentKey>(_ key: K.Type, _ constant: K.Value)
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
66 | where Value == K.Value
67 | {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:15:28: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
13 |
14 | public let key : K.Type
15 | public let constant : K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:17:44: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
15 | public let constant : K.Value
16 |
17 | public init(_ key: K.Type, _ constant: K.Value) {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
18 | self.key = key
19 | self.constant = constant
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Assignments/RuleValueAssignment.swift:26:33: warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleValueAssignment<K: DynamicEnvironmentKey>
| `- note: 'K' previously declared here
10 | : RuleCandidate, RuleAction
11 | {
:
24 | }
25 |
26 | public func isCandidateForKey<K: DynamicEnvironmentKey>(_ key: K.Type)
| `- warning: generic parameter 'K' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
27 | -> Bool
28 | {
[12/25] Compiling SwiftUIRules DynamicEnvironmentValues.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:22:69: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
20 | mutating func storeValue<V>(_ value: V, forTypeID typeID: ObjectIdentifier)
21 |
22 | func defaultValue<K: DynamicEnvironmentKey>(for key: K.Type) -> K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
23 | }
24 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:31:57: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
29 | * the key if the `resolveValueForTypeID` returns no value.
30 | */
31 | subscript<K: DynamicEnvironmentKey>(key: K.Type) -> K.Value {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
32 | // Note a subscript w/o a name can be used on types w/o adding `.self`!!
33 | set { storeValue(newValue, forTypeID: ObjectIdentifier(key)) }
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:47:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
45 | * key.
46 | */
47 | func optional<K: DynamicEnvironmentKey>(_ key: K.Type) -> K.Value? {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
48 | let typeID = ObjectIdentifier(key)
49 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
[13/25] Compiling SwiftUIRules AssignmentOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:22:69: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
20 | mutating func storeValue<V>(_ value: V, forTypeID typeID: ObjectIdentifier)
21 |
22 | func defaultValue<K: DynamicEnvironmentKey>(for key: K.Type) -> K.Value
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
23 | }
24 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:31:57: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
29 | * the key if the `resolveValueForTypeID` returns no value.
30 | */
31 | subscript<K: DynamicEnvironmentKey>(key: K.Type) -> K.Value {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
32 | // Note a subscript w/o a name can be used on types w/o adding `.self`!!
33 | set { storeValue(newValue, forTypeID: ObjectIdentifier(key)) }
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/DynamicEnvironment/DynamicEnvironmentValues.swift:47:63: warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
45 | * key.
46 | */
47 | func optional<K: DynamicEnvironmentKey>(_ key: K.Type) -> K.Value? {
| `- warning: cannot use associated type 'Value' here; 'SwiftUICore' was not imported by this file
48 | let typeID = ObjectIdentifier(key)
49 |
SwiftUICore.EnvironmentKey:3:20: note: type declared here
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | public protocol EnvironmentKey {
3 | associatedtype Value
| `- note: type declared here
4 | static var defaultValue: Self.Value { get }
5 | @available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
[14/25] Compiling SwiftUIRules DynamicEnvironmentKey.swift
[15/25] Compiling SwiftUIRules DynamicEnvironmentPathes.swift
[16/25] Compiling SwiftUIRules CompoundPredicateOperators.swift
[17/25] Compiling SwiftUIRules KeyPathPredicateOperators.swift
[18/25] Compiling SwiftUIRules RuleOperators.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:12:21: warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
12 | public static let no = RuleBoolPredicate(value: false)
| |- warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'no' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private let value : Bool
[19/25] Compiling SwiftUIRules RuleBoolPredicate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:12:21: warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
12 | public static let no = RuleBoolPredicate(value: false)
| |- warning: static property 'no' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'no' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | private let value : Bool
[20/25] Compiling SwiftUIRules RuleClosurePredicate.swift
[21/25] Compiling SwiftUIRules RuleCompoundPredicate.swift
[22/25] Compiling SwiftUIRules RuleKeyPathPredicate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:68:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
66 | public extension RuleKeyPathPredicate {
67 |
68 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
69 | value: Value) where Value: Equatable
70 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:83:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
81 | }
82 |
83 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
84 | operation: RuleComparisonOperation = .equal,
85 | value: Value) where Value: Comparable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:94:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
92 |
93 | public extension RuleKeyPathPredicate {
94 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Equatable
96 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:110:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
108 | }
109 |
110 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
111 | operation: RuleComparisonOperation = .equal,
112 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Comparable
[23/25] Compiling SwiftUIRules RulePredicate.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:68:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
66 | public extension RuleKeyPathPredicate {
67 |
68 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
69 | value: Value) where Value: Equatable
70 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:83:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
81 | }
82 |
83 | init<Value>(keyPath: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
84 | operation: RuleComparisonOperation = .equal,
85 | value: Value) where Value: Comparable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:94:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
92 |
93 | public extension RuleKeyPathPredicate {
94 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
95 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Equatable
96 | {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleKeyPathPredicate.swift:110:8: warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleKeyPathPredicate<Value>: RulePredicate {
| `- note: 'Value' previously declared here
10 | // This is like a ClosurePredicate, but it preserves the static type.
11 | // Which has to be passed in explicitly! Can't add further constraints to
:
108 | }
109 |
110 | init<Value>(_ lhs: Swift.KeyPath<RuleContext, Value>,
| `- warning: generic parameter 'Value' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
111 | operation: RuleComparisonOperation = .equal,
112 | _ rhs: Swift.KeyPath<RuleContext, Value>) where Value: Comparable
[24/25] Compiling SwiftUIRules Rule.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:56:23: warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
54 | @inlinable public init(integerLiteral value: Int16) { self.init(value) }
55 |
56 | public static let important = Priority(1000)
| |- warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'important' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:57:23: warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
55 |
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
| |- warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryHigh' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:58:23: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'high' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:60:23: warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
| |- warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'low' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:61:23: warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
| |- warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryLow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let fallback = Priority(0)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:62:23: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fallback' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:132:21: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
45 | *
46 | */
47 | public struct RuleContext: DynamicEnvironmentValues {
| `- note: consider making struct 'RuleContext' conform to the 'Sendable' protocol
48 |
49 | public let ruleModel : RuleModel
:
130 | */
131 | public struct RuleContextKey: EnvironmentKey {
132 | public static let defaultValue = RuleContext(ruleModel: RuleModel())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:153:17: warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
151 | // MARK: - KeyPath Type Reflection
152 |
153 | fileprivate var queryTypeMode = false
| |- warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queryTypeMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'queryTypeMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
155 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:154:17: warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | fileprivate var queryTypeMode = false
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
| |- warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastTypeQuery' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastTypeQuery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | public extension RuleContext {
[25/25] Compiling SwiftUIRules RuleContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:56:23: warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
54 | @inlinable public init(integerLiteral value: Int16) { self.init(value) }
55 |
56 | public static let important = Priority(1000)
| |- warning: static property 'important' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'important' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:57:23: warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
55 |
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
| |- warning: static property 'veryHigh' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryHigh' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:58:23: warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
56 | public static let important = Priority(1000)
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
| |- warning: static property 'high' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'high' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:59:23: warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
57 | public static let veryHigh = Priority(200)
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
| |- warning: static property 'normal' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'normal' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:60:23: warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
58 | public static let high = Priority(150)
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
| |- warning: static property 'low' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'low' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:61:23: warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
59 | public static let normal = Priority(100)
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
| |- warning: static property 'veryLow' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'veryLow' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
62 | public static let fallback = Priority(0)
63 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Rule.swift:62:23: warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
48 | // Note: immutable class because it is passed around a bit (too lazy for 🐄)
49 |
50 | public struct Priority: Comparable, ExpressibleByIntegerLiteral {
| `- note: consider making struct 'Priority' conform to the 'Sendable' protocol
51 |
52 | public let rawValue : Int16
:
60 | public static let low = Priority(50)
61 | public static let veryLow = Priority(5)
62 | public static let fallback = Priority(0)
| |- warning: static property 'fallback' is not concurrency-safe because non-'Sendable' type 'Rule.Priority' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'fallback' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
63 |
64 | @inlinable
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/Predicates/RuleBoolPredicate.swift:11:21: warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct RuleBoolPredicate: RulePredicate, Equatable {
| `- note: consider making struct 'RuleBoolPredicate' conform to the 'Sendable' protocol
10 |
11 | public static let yes = RuleBoolPredicate(value: true)
| |- warning: static property 'yes' is not concurrency-safe because non-'Sendable' type 'RuleBoolPredicate' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'yes' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | public static let no = RuleBoolPredicate(value: false)
13 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:132:21: warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
45 | *
46 | */
47 | public struct RuleContext: DynamicEnvironmentValues {
| `- note: consider making struct 'RuleContext' conform to the 'Sendable' protocol
48 |
49 | public let ruleModel : RuleModel
:
130 | */
131 | public struct RuleContextKey: EnvironmentKey {
132 | public static let defaultValue = RuleContext(ruleModel: RuleModel())
| |- warning: static property 'defaultValue' is not concurrency-safe because non-'Sendable' type 'RuleContext' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
133 | }
134 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:153:17: warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
151 | // MARK: - KeyPath Type Reflection
152 |
153 | fileprivate var queryTypeMode = false
| |- warning: var 'queryTypeMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'queryTypeMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'queryTypeMode' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
155 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftUIRules/RuleContext.swift:154:17: warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 |
153 | fileprivate var queryTypeMode = false
154 | fileprivate var lastTypeQuery : ObjectIdentifier?
| |- warning: var 'lastTypeQuery' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lastTypeQuery' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lastTypeQuery' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
155 |
156 | public extension RuleContext {
Build complete! (18.07s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUIRules",
"name" : "SwiftUIRules",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
}
],
"products" : [
{
"name" : "SwiftUIRules",
"targets" : [
"SwiftUIRules"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "SwiftUIRules",
"module_type" : "SwiftTarget",
"name" : "SwiftUIRules",
"path" : "Sources/SwiftUIRules",
"product_memberships" : [
"SwiftUIRules"
],
"sources" : [
"Assignments/RuleAction.swift",
"Assignments/RuleCandidate.swift",
"Assignments/RuleKeyAssignment.swift",
"Assignments/RuleTypeIDAssignment.swift",
"Assignments/RuleTypeIDPathAssignment.swift",
"Assignments/RuleValueAssignment.swift",
"DynamicEnvironment/DynamicEnvironmentKey.swift",
"DynamicEnvironment/DynamicEnvironmentPathes.swift",
"DynamicEnvironment/DynamicEnvironmentValues.swift",
"Operators/AssignmentOperators.swift",
"Operators/CompoundPredicateOperators.swift",
"Operators/KeyPathPredicateOperators.swift",
"Operators/RuleOperators.swift",
"Predicates/RuleBoolPredicate.swift",
"Predicates/RuleClosurePredicate.swift",
"Predicates/RuleCompoundPredicate.swift",
"Predicates/RuleKeyPathPredicate.swift",
"Predicates/RulePredicate.swift",
"Rule.swift",
"RuleContext.swift",
"RuleModel.swift",
"Support/RuleDebug.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.