Build Information
Failed to build Stitcher, reference main (ad1e84
), with Swift 6.0 for Linux on 1 Dec 2024 04:48:15 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
Build Log
9 |
10 | /// A type that acts as a coordinator between a dependency indexing implementation and the dependency container.
11 | public struct IndexingCoordinator {
| `- note: consider making struct 'IndexingCoordinator' conform to the 'Sendable' protocol
12 |
13 | private let semaphore = DispatchSemaphore(value: 1)
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/Implementations/Common.swift:22:29: warning: capture of 'dependencies' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | @inlinable
12 | func taskIndexing<S: Sequence>(
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
13 | dependencies: S,
14 | coordinator: IndexingCoordinator,
:
20 | var dependencyRegistrarIndex = coordinator.emptyIndex()
21 |
22 | for registration in dependencies {
| `- warning: capture of 'dependencies' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 |
24 | guard !AsyncTask.isCancelled else {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/Implementations/Common.swift:38:9: warning: capture of 'completion' with non-sendable type '(DependencyRegistrarIndex) -> Void' (aka '(Dictionary<IndexingKey, OrderedSet<RawDependencyRegistration>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 |
38 | completion(dependencyRegistrarIndex)
| |- warning: capture of 'completion' with non-sendable type '(DependencyRegistrarIndex) -> Void' (aka '(Dictionary<IndexingKey, OrderedSet<RawDependencyRegistration>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
39 | }
40 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/Implementations/ParallelIndexer.swift:14:32: error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
12 |
13 | static var parallelTaskCount: Int {
14 | let coreCount = Double(ProcessInfo().processorCount)
| `- error: 'ProcessInfo' initializer is inaccessible due to 'internal' protection level
15 | let maximumSystemLoadFactor = 0.75
16 | return Int(floor(coreCount * maximumSystemLoadFactor))
FoundationEssentials.ProcessInfo (internal):4:14: note: 'init()' declared here
2 | public static let processInfo: ProcessInfo
3 | deinit
4 | internal init()
| `- note: 'init()' declared here
5 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/IndexedDependencyContainer.swift:68:33: warning: capture of 'registrar' with non-sendable type 'DependenciesRegistrar' (aka 'Set<RawDependencyRegistration>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | indexingTask = AsyncTask(priority: .high) {
68 | for registration in registrar {
| `- warning: capture of 'registrar' with non-sendable type 'DependenciesRegistrar' (aka 'Set<RawDependencyRegistration>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | guard registration.canInstantiateEagerly else {
70 | continue
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Registration/RawDependencyRegistration.swift:10:15: note: consider making struct 'RawDependencyRegistration' conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public struct RawDependencyRegistration: Hashable {
| `- note: consider making struct 'RawDependencyRegistration' conform to the 'Sendable' protocol
11 |
12 | /// An optimized storage box to avoid COW operations for immutable instances of `RawDependencyRegistration`
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/IndexedDependencyContainer.swift:73:17: warning: capture of 'self' with non-sendable type 'IndexedDependencyContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper that holds a `DependencyContainer` and indexes it's registrar asynchronously
12 | final class IndexedDependencyContainer {
| `- note: class 'IndexedDependencyContainer' does not conform to the 'Sendable' protocol
13 |
14 | @Atomic
:
71 | }
72 |
73 | self.lazyInitializationHandler(registration)
| `- warning: capture of 'self' with non-sendable type 'IndexedDependencyContainer' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | }
75 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/IndexedDependencyContainer.swift:76:13: warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 | }
75 |
76 | completion()
| |- warning: capture of 'completion' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
77 | }
78 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/IndexedDependencyContainer.swift:128:30: warning: capture of 'self' with non-sendable type 'IndexedDependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | /// A wrapper that holds a `DependencyContainer` and indexes it's registrar asynchronously
12 | final class IndexedDependencyContainer {
| `- note: class 'IndexedDependencyContainer' does not conform to the 'Sendable' protocol
13 |
14 | @Atomic
:
126 |
127 | indexingTask = AsyncTask(priority: .high) { [weak self] in
128 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'IndexedDependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 | self.indexIncrementally(changes: changes)
130 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/Indexing/IndexedDependencyContainer.swift:129:46: warning: capture of 'changes' with non-sendable type 'DependencyContainer.ChangeSet' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | indexingTask = AsyncTask(priority: .high) { [weak self] in
128 | guard let self = self else { return }
129 | self.indexIncrementally(changes: changes)
| `- warning: capture of 'changes' with non-sendable type 'DependencyContainer.ChangeSet' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | }
131 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:59:12: note: consider making struct 'ChangeSet' conform to the 'Sendable' protocol
57 | }
58 |
59 | struct ChangeSet {
| `- note: consider making struct 'ChangeSet' conform to the 'Sendable' protocol
60 | let containerId: DependencyContainer.ID
61 | let oldValue: DependenciesRegistrar
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/StorageCleaner/StorageCleaner.swift:74:13: warning: capture of 'self' with non-sendable type 'StorageCleaner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | #endif
19 |
20 | class StorageCleaner {
| `- note: class 'StorageCleaner' does not conform to the 'Sendable' protocol
21 |
22 | private var cleanupHandler: @Sendable () -> Void
:
72 |
73 | AsyncTask(priority: priority) {
74 | self.cleanupHandler()
| `- warning: capture of 'self' with non-sendable type 'StorageCleaner' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 | }
[521/540] Compiling Stitcher AutoregisterableDependencyCodeGenerator.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[522/540] Compiling Stitcher NameInjectionCodeGenerator.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[523/540] Compiling Stitcher TestInjectionCodeGenerator.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[524/540] Compiling Stitcher TypeInjectionCodeGenerator.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[525/540] Compiling Stitcher InjectionCodeGenerator.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[526/540] Compiling Stitcher InjectionCodeGenerators.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[527/540] Compiling Stitcher StitcherConfiguration.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[528/540] Compiling Stitcher DependencyContainer.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[529/540] Compiling Stitcher DependencyFactory+Function.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[530/540] Compiling Stitcher DependencyFactory.swift
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:19:20: warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
17 | }
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
| |- warning: static property 'stitcherTest' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherTest' 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
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:20:27: warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
18 |
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
| |- warning: static property 'stitcherByType' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByType' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:21:27: warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
19 | static let stitcherTest = Name(rawValue: "stitcherTest")
20 | public static let stitcherByType = Name(rawValue: "stitcherByType")
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
| |- warning: static property 'stitcherByName' is not concurrency-safe because non-'Sendable' type 'InjectionCodeGenerators.Name' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stitcherByName' 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
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:23:27: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
21 | public static let stitcherByName = Name(rawValue: "stitcherByName")
22 |
23 | public static var allCases: [InjectionCodeGenerators.Name] = [
| |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'allCases' 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
24 | .stitcherTest,
25 | .stitcherByType,
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerators.swift:30:24: warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
10 | public enum InjectionCodeGenerators {
11 |
12 | public struct Name: Hashable, CaseIterable {
| `- note: consider making struct 'Name' conform to the 'Sendable' protocol
13 | public let rawValue: String
14 |
:
28 | }
29 |
30 | private static let generators: [Name : any InjectionCodeGenerator] = [
| |- warning: static property 'generators' is not concurrency-safe because non-'Sendable' type '[InjectionCodeGenerators.Name : any InjectionCodeGenerator]' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'generators' 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
31 | .stitcherTest : TestInjectionCodeGenerator(),
32 | .stitcherByType : TypeInjectionCodeGenerator(),
/host/spi-builder-workspace/Sources/Stitcher/CodeGeneration/InjectionCodeGeneration/InjectionCodeGenerator.swift:10:17: note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | public protocol InjectionCodeGenerator {
| `- note: protocol 'InjectionCodeGenerator' does not conform to the 'Sendable' protocol
11 |
12 | func generateInjectionExpression(
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:50:31: warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | /// A factory function used to create the indexing provider.
50 | @Atomic public static var indexerFactory: () -> Indexing = { DefaultIndexer() }
| |- warning: static property 'indexerFactory' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'indexerFactory' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'indexerFactory' 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
51 |
52 | /// Controls whether indexing dependencies is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:68:31: warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
66 | /// However, as it is highly unlikely that a dependency will be registered with more than 2 type aliases,
67 | /// we can average the lookup time to O(1).
68 | @Atomic public static var isIndexingEnabled = true
| |- warning: static property 'isIndexingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isIndexingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isIndexingEnabled' 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
69 |
70 | /// An approximate count of the dependencies defined in the app.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:112:31: warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
110 | /// - Warning: Avoid changing this value unecessarily as it can negatively impact runtime memory footprint and performance.
111 | /// Setting an arbitrarily high value may allocate a large portion of memory, while a low value can increase indexing time.
112 | @Atomic public static var approximateDependencyCount = 30_000
| |- warning: static property 'approximateDependencyCount' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'approximateDependencyCount' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'approximateDependencyCount' 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
113 |
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:116:31: warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
114 | /// Controls the frequency at which the dependency graph instance storage will be automatically cleaned up.
115 | @available(*, unavailable, renamed: "autoCleanupEnabled", message: "")
116 | @Atomic public static var autoCleanupFrequency = 0
| |- warning: static property 'autoCleanupFrequency' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupFrequency' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupFrequency' 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
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:119:31: warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
117 |
118 | /// Controls whether automatic cleanup of the `DependencyGraph` instance storage is enabled.
119 | @Atomic public static var autoCleanupEnabled = true
| |- warning: static property 'autoCleanupEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'autoCleanupEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'autoCleanupEnabled' 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
120 |
121 | /// Controls the availability of the runtime depedency cycle detection feature.
/host/spi-builder-workspace/Sources/Stitcher/Configuration/StitcherConfiguration.swift:124:31: warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
122 | ///
123 | /// - Note: By default, the feature is enabled on debug builds in order to increase the performance of injecting dependencies.
124 | @Atomic public static var runtimeCycleDetectionAvailability = RuntimeCycleDetectionAvailability.debugOnly
| |- warning: static property 'runtimeCycleDetectionAvailability' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'runtimeCycleDetectionAvailability' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'runtimeCycleDetectionAvailability' 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
125 | }
126 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/DependencyContainer.swift:160:21: warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 | /// ```
48 | ///
49 | public final class DependencyContainer: Identifiable, Equatable {
| `- note: class 'DependencyContainer' does not conform to the 'Sendable' protocol
50 |
51 | public struct ID: Hashable {
:
158 | undecoratedDependenciesRegistrarProvider()
159 | } onChange: { [weak self] in
160 | self?.invalidateDependenciesSubject.send()
| `- warning: capture of 'self' with non-sendable type 'DependencyContainer?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | }
162 | }
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Models/DependencyParameters.swift:149:16: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
8 | import Foundation
9 |
10 | struct DependencyParameters: Hashable {
| `- note: consider making struct 'DependencyParameters' conform to the 'Sendable' protocol
11 |
12 | struct Requirement: Hashable {
:
147 | }
148 |
149 | static let none = DependencyParameters()
| |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'DependencyParameters' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'none' 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
150 | }
151 |
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Graph/DependencyGraph.swift:37:16: warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
35 | }
36 |
37 | static let instantionNotificationCenter = InstantionNotificationCenter()
| |- warning: static property 'instantionNotificationCenter' is not concurrency-safe because non-'Sendable' type 'InstantionNotificationCenter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'instantionNotificationCenter' 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
38 |
39 | private static let storageCleaner = StorageCleaner {
/host/spi-builder-workspace/Sources/Stitcher/DependencyInjection/Factory/InstantionNotificationCenter.swift:10:13: note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | final class InstantionNotificationCenter {
| `- note: class 'InstantionNotificationCenter' does not conform to the 'Sendable' protocol
11 |
12 | @Atomic
[531/540] Compiling Stitcher RawThreadKeyError.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[532/540] Compiling Stitcher ThreadIdentifierThreadValuesKey.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[533/540] Compiling Stitcher ThreadLocal.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[534/540] Compiling Stitcher ThreadValues.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[535/540] Compiling Stitcher ThreadValuesKey.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[536/540] Compiling Stitcher DefaultValueProviding.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[537/540] Compiling Stitcher Extensions.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[538/540] Compiling Stitcher Functions.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[539/540] Compiling Stitcher Reference.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
[540/540] Compiling Stitcher WeakReference.swift
/host/spi-builder-workspace/Sources/Stitcher/Threads/ThreadIdentifierThreadValuesKey.swift:11:16: warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | struct ThreadIdentifierThreadValuesKey: ThreadValuesKey {
11 | static let rawThreadKey = RawThreadKey<Int>()
| |- warning: static property 'rawThreadKey' is not concurrency-safe because non-'Sendable' type 'RawThreadKey<Int>' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'rawThreadKey' 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 |
13 | static var defaultValue: Int {
/host/spi-builder-workspace/Sources/Stitcher/Threads/RawThreadKey.swift:10:7: note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
8 | import Foundation
9 |
10 | class RawThreadKey<Value> {
| `- note: generic class 'RawThreadKey' does not conform to the 'Sendable' protocol
11 |
12 | private var pthreadKey: pthread_key_t
BUILD FAILURE 6.0 linux