Build Information
Failed to build SwiftDI, reference master (0836fd
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 21:55:18 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/litecode/swiftdi.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/litecode/swiftdi
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 0836fd6 Merge pull request #10 from benyo/patch-1
Cloned https://github.com/litecode/swiftdi.git
Revision (git rev-parse @):
0836fd68479ed3ee0c4f83c0ab2ad148b08a0ac1
SUCCESS checkout https://github.com/litecode/swiftdi.git at master
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftdi",
"name": "SwiftDI",
"url": "https://github.com/litecode/swiftdi.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swiftdi",
"dependencies": [
]
}
]
}
Fetching https://github.com/litecode/swiftdi.git
[1/1150] Fetching swiftdi
Fetched https://github.com/litecode/swiftdi.git from cache (1.34s)
Creating working copy for https://github.com/litecode/swiftdi.git
Working copy of https://github.com/litecode/swiftdi.git resolved at master (0836fd6)
warning: '.resolve-product-dependencies': dependency 'swiftdi' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/litecode/swiftdi.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module SwiftDI
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DSL/DIBuilder.swift:10:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
8 | import Foundation
9 |
10 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
11 | public struct DIBuilder {
12 | public static func buildBlock() -> EmptyDIPart {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:18:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | public var wrappedValue: Value {
20 | _wrappedValue
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/View+SwiftDI.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
28 | struct DIContainerEnvironmentKey: EnvironmentKey {
29 | static var defaultValue: DIContainer = SwiftDI.sharedContainer
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:30:11: error: 'EnvironmentInject' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | extension EnvironmentInject: InjectableProperty {
| | `- error: 'EnvironmentInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
31 | var type: Any.Type {
32 | return Value.self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:37:11: error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
35 |
36 | @available(iOS 13.0, *)
37 | extension EnvironmentObservedInject: InjectableProperty {
| | `- error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
38 | var type: Any.Type {
39 | return Value.self
[4/27] Compiling SwiftDI InjectableProperty.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:30:11: error: 'EnvironmentInject' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | extension EnvironmentInject: InjectableProperty {
| | `- error: 'EnvironmentInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
31 | var type: Any.Type {
32 | return Value.self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:37:11: error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
35 |
36 | @available(iOS 13.0, *)
37 | extension EnvironmentObservedInject: InjectableProperty {
| | `- error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
38 | var type: Any.Type {
39 | return Value.self
[5/27] Compiling SwiftDI Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:30:11: error: 'EnvironmentInject' is only available in macOS 10.15 or newer
28 |
29 | @available(iOS 13.0, *)
30 | extension EnvironmentInject: InjectableProperty {
| | `- error: 'EnvironmentInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
31 | var type: Any.Type {
32 | return Value.self
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/Utils/InjectableProperty.swift:37:11: error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
35 |
36 | @available(iOS 13.0, *)
37 | extension EnvironmentObservedInject: InjectableProperty {
| | `- error: 'EnvironmentObservedInject' is only available in macOS 10.15 or newer
| `- note: add @available attribute to enclosing extension
38 | var type: Any.Type {
39 | return Value.self
[6/27] Compiling SwiftDI DIComponentContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DIContainer.swift:29:14: warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
27 |
28 | public func appendPart<Content: DIPart>(_ part: Content.Type) {
29 | part.load(container: self)
| `- warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
30 | }
31 |
[7/27] Compiling SwiftDI DIComponentManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DIContainer.swift:29:14: warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
27 |
28 | public func appendPart<Content: DIPart>(_ part: Content.Type) {
29 | part.load(container: self)
| `- warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
30 | }
31 |
[8/27] Compiling SwiftDI DIContainer.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DIContainer.swift:29:14: warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
27 |
28 | public func appendPart<Content: DIPart>(_ part: Content.Type) {
29 | part.load(container: self)
| `- warning: 'load(container:)' is deprecated: Use `var body: some DIPart` instead
30 | }
31 |
[9/27] Compiling SwiftDI DIObject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DSL/DIBuilder.swift:10:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
8 | import Foundation
9 |
10 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
11 | public struct DIBuilder {
12 | public static func buildBlock() -> EmptyDIPart {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
[10/27] Compiling SwiftDI AnyDIPart.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DSL/DIBuilder.swift:10:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
8 | import Foundation
9 |
10 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
11 | public struct DIBuilder {
12 | public static func buildBlock() -> EmptyDIPart {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
[11/27] Compiling SwiftDI DIBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/DSL/DIBuilder.swift:10:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
8 | import Foundation
9 |
10 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
11 | public struct DIBuilder {
12 | public static func buildBlock() -> EmptyDIPart {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
[12/27] Compiling SwiftDI EnvironmentInject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:18:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | public var wrappedValue: Value {
20 | _wrappedValue
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:20:9: warning: main actor-isolated property '_wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| `- note: property declared here
19 | public var wrappedValue: Value {
20 | _wrappedValue
| `- warning: main actor-isolated property '_wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:26:51: warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | let bundle = Bundle(for: Value.self)
25 | let resolvedValue = Environment(\.container).wrappedValue.resolve(bundle: bundle) as Value
26 | self.__wrappedValue = ObservedObject<Value>(initialValue: resolvedValue)
| `- warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 |
SwiftUICore.ObservedObject:6:39: note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
4 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
| `- note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:31:31: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// The binding value, as "unwrapped" by accessing `$foo` on a `@Binding` property.
30 | public var projectedValue: ObservedObject<Value>.Wrapper {
31 | return __wrappedValue.projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | }
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:18:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
19 | public var wrappedValue: Value {
20 | _wrappedValue
[13/27] Compiling SwiftDI EnvironmentObservedInject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:18:6: warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| `- warning: call to main actor-isolated initializer 'init(wrappedValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | public var wrappedValue: Value {
20 | _wrappedValue
SwiftUICore.ObservedObject:7:39: note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
| `- note: calls to initializer 'init(wrappedValue:)' from outside of its actor context are implicitly asynchronous
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:20:9: warning: main actor-isolated property '_wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| `- note: property declared here
19 | public var wrappedValue: Value {
20 | _wrappedValue
| `- warning: main actor-isolated property '_wrappedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
21 | }
22 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:26:51: warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | let bundle = Bundle(for: Value.self)
25 | let resolvedValue = Environment(\.container).wrappedValue.resolve(bundle: bundle) as Value
26 | self.__wrappedValue = ObservedObject<Value>(initialValue: resolvedValue)
| `- warning: call to main actor-isolated initializer 'init(initialValue:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 |
SwiftUICore.ObservedObject:6:39: note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
4 | @MainActor @preconcurrency public subscript<Subject>(dynamicMember keyPath: ReferenceWritableKeyPath<ObjectType, Subject>) -> Binding<Subject> { get }
5 | }
6 | @MainActor @preconcurrency public init(initialValue: ObjectType)
| `- note: calls to initializer 'init(initialValue:)' from outside of its actor context are implicitly asynchronous
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:31:31: warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
29 | /// The binding value, as "unwrapped" by accessing `$foo` on a `@Binding` property.
30 | public var projectedValue: ObservedObject<Value>.Wrapper {
31 | return __wrappedValue.projectedValue
| `- warning: main actor-isolated property 'projectedValue' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
32 | }
33 | }
SwiftUICore.ObservedObject:9:43: note: property declared here
7 | @MainActor @preconcurrency public init(wrappedValue: ObjectType)
8 | @MainActor @preconcurrency public var wrappedValue: ObjectType
9 | @MainActor @preconcurrency public var projectedValue: ObservedObject<ObjectType>.Wrapper { get }
| `- note: property declared here
10 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/EnvironmentObservedInject.swift:18:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
16 | public struct EnvironmentObservedInject<Value: ObservableObject>: DynamicProperty {
17 |
18 | @ObservedObject private var _wrappedValue: Value
| |- warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated '$input_value' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
19 | public var wrappedValue: Value {
20 | _wrappedValue
[14/27] Compiling SwiftDI DIPart.swift
[15/27] Compiling SwiftDI DIPartBuildable.swift
[16/27] Compiling SwiftDI DIRegister.swift
[17/27] Compiling SwiftDI DITuplePart.swift
[18/27] Compiling SwiftDI EmptyDIPart.swift
[19/27] Compiling SwiftDI Resolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
[20/27] Compiling SwiftDI SwiftDI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:8:27: warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
6 | public enum Defaults {
7 | /// Set life time for you instantces. By default is `DILifeCycle.objectGraph`
8 | public static var lifeCycle = DILifeCycle.objectGraph
| |- warning: static property 'lifeCycle' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'lifeCycle' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'lifeCycle' 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
9 | }
10 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
[21/27] Compiling SwiftDI Never.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
[22/27] Compiling SwiftDI Inject.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
[23/27] Compiling SwiftDI DIGroup.swift
[24/27] Compiling SwiftDI DIObject+DIPartBuildable.swift
[25/27] Compiling SwiftDI DIPart+DIPartBuildable.swift
[26/27] Compiling SwiftDI View+SwiftDI.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/View+SwiftDI.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
28 | struct DIContainerEnvironmentKey: EnvironmentKey {
29 | static var defaultValue: DIContainer = SwiftDI.sharedContainer
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
[27/27] Compiling SwiftDI Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftUI/View+SwiftDI.swift:29:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | @available(iOS 13.0, OSX 10.15, tvOS 13.0, watchOS 6.0, *)
28 | struct DIContainerEnvironmentKey: EnvironmentKey {
29 | static var defaultValue: DIContainer = SwiftDI.sharedContainer
| |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
30 | }
31 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftDI/SwiftDI.swift:11:38: warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 | }
10 |
11 | internal private(set) static var sharedContainer: DIContainer = DIContainer()
| |- warning: static property 'sharedContainer' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'sharedContainer' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'sharedContainer' 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 | /// Use container for inject dependencies.
BUILD FAILURE 6.0 macosSpm