Build Information
Failed to build AppDependency, reference 1.1.0 (d973ca
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 17:28:54 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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xLeif/AppDependency.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xLeif/AppDependency
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at d973ca2 Change logger for linux and windows to var (#7)
Cloned https://github.com/0xLeif/AppDependency.git
Revision (git rev-parse @):
d973ca2e26a7f4aaa205c41a2551c51f492fec50
SUCCESS checkout https://github.com/0xLeif/AppDependency.git at 1.1.0
Fetching https://github.com/0xLeif/Cache
[1/400] Fetching cache
Fetched https://github.com/0xLeif/Cache from cache (0.78s)
Computing version for https://github.com/0xLeif/Cache
Computed https://github.com/0xLeif/Cache at 2.1.0 (3.24s)
Creating working copy for https://github.com/0xLeif/Cache
Working copy of https://github.com/0xLeif/Cache resolved at 2.1.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "appdependency",
"name": "AppDependency",
"url": "https://github.com/0xLeif/AppDependency.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AppDependency",
"dependencies": [
{
"identity": "cache",
"name": "Cache",
"url": "https://github.com/0xLeif/Cache",
"version": "2.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Cache",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/0xLeif/AppDependency.git
[1/177] Fetching appdependency
Fetched https://github.com/0xLeif/AppDependency.git from cache (0.76s)
Fetching https://github.com/0xLeif/Cache from cache
Fetched https://github.com/0xLeif/Cache from cache (0.47s)
Computing version for https://github.com/0xLeif/Cache
Computed https://github.com/0xLeif/Cache at 2.1.0 (0.02s)
Creating working copy for https://github.com/0xLeif/AppDependency.git
Working copy of https://github.com/0xLeif/AppDependency.git resolved at 1.1.0 (d973ca2)
Creating working copy for https://github.com/0xLeif/Cache
Working copy of https://github.com/0xLeif/Cache resolved at 2.1.0
warning: '.resolve-product-dependencies': dependency 'appdependency' is not used by any target
Found 1 product dependencies
- Cache
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/0xLeif/AppDependency.git
{
"dependencies" : [
{
"identity" : "cache",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/0xLeif/Cache"
}
],
"manifest_display_name" : "AppDependency",
"name" : "AppDependency",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
},
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "visionos",
"version" : "1.0"
}
],
"products" : [
{
"name" : "AppDependency",
"targets" : [
"AppDependency"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AppDependencyTests",
"module_type" : "SwiftTarget",
"name" : "AppDependencyTests",
"path" : "Tests/AppDependencyTests",
"sources" : [
"AppDependencyTests.swift",
"DependencySliceTests.swift",
"ObservedDependencyTests.swift"
],
"target_dependencies" : [
"AppDependency"
],
"type" : "test"
},
{
"c99name" : "AppDependency",
"module_type" : "SwiftTarget",
"name" : "AppDependency",
"path" : "Sources/AppDependency",
"product_dependencies" : [
"Cache"
],
"product_memberships" : [
"AppDependency"
],
"sources" : [
"Application/Application+internal.swift",
"Application/Application+public.swift",
"Application/Application.swift",
"Application/Helper/ApplicationLogger.swift",
"Application/Types/Dependency/Application+Dependency.swift",
"Application/Types/Dependency/Slice/Application+DependencySlice.swift",
"Application/Types/Helper/Application+ApplicationPreview.swift",
"Application/Types/Helper/Application+Scope.swift",
"PropertyWrappers/AppDependency.swift",
"PropertyWrappers/ObservedDependency.swift",
"PropertyWrappers/Slice/DependencyConstant.swift",
"PropertyWrappers/Slice/DependencySlice.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/28] Emitting module Cache
[5/30] Compiling Cache OptionallyCached.swift
[6/30] Compiling Cache Resolved.swift
[7/30] Compiling Cache AnyCacheable.swift
[8/30] Compiling Cache Cache+subscript.swift
[9/30] Compiling Cache Cache.swift
[10/30] Compiling Cache JSON+subscript.swift
[11/30] Compiling Cache JSON.swift
[12/30] Compiling Cache LRUCache.swift
[13/30] Compiling Cache PersistableCache.swift
[14/30] Compiling Cache RequiredKeysCache+subscript.swift
[15/30] Compiling Cache Dictionary+Cacheable.swift
[16/30] Compiling Cache InvalidTypeError.swift
[17/30] Compiling Cache MissingRequiredKeysError.swift
[18/30] Compiling Cache Global+loggers.swift
[19/30] Compiling Cache Global.swift
[20/30] Compiling Cache ComposableCache.swift
[21/30] Compiling Cache ExpiringCache+subscript.swift
[22/30] Compiling Cache ExpiringCache.swift
[23/30] Compiling Cache Cached.swift
[24/30] Compiling Cache Logging.swift
[25/30] Compiling Cache RequiredKeysCache.swift
[26/30] Compiling Cache CacheInitializable.swift
[27/30] Compiling Cache Cacheable.swift
[28/30] Compiling Cache Global+cache.swift
[29/30] Compiling Cache Global+dependencies.swift
[30/30] Compiling Cache Global+images.swift
[31/42] Compiling AppDependency AppDependency.swift
[32/43] Compiling AppDependency DependencyConstant.swift
[33/43] Compiling AppDependency ObservedDependency.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/ObservedDependency.swift:9: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
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: 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
10 |
11 | private let fileID: StaticString
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/AppDependency/PropertyWrappers/ObservedDependency.swift:26:16: warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: Value
| `- note: property declared here
10 |
11 | private let fileID: StaticString
:
24 | )
25 |
26 | return observedObject
| `- warning: main actor-isolated property 'observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
27 | }
28 |
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/ObservedDependency.swift:39:16: warning: main actor-isolated property '$observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: Value
| `- note: property declared here
10 |
11 | private let fileID: StaticString
:
37 | )
38 |
39 | return $observedObject
| `- warning: main actor-isolated property '$observedObject' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
40 | }
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/ObservedDependency.swift:60:14: warning: main actor-isolated property 'observedObject' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: Value
| `- note: mutation of this property is only permitted within the actor
10 |
11 | private let fileID: StaticString
:
58 | self.column = column
59 |
60 | self.observedObject = Application.dependency(
| `- warning: main actor-isolated property 'observedObject' can not be mutated from a nonisolated context; this is an error in the Swift 6 language mode
61 | keyPath,
62 | fileID,
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/ObservedDependency.swift:9:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: 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
10 |
11 | private let fileID: StaticString
[34/43] Compiling AppDependency Application+ApplicationPreview.swift
[35/43] Compiling AppDependency Application+Dependency.swift
[36/43] Compiling AppDependency Application+DependencySlice.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
[37/43] Compiling AppDependency Application+Scope.swift
[38/43] Compiling AppDependency Application.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:22:16: warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | #endif
21 |
22 | static var isLoggingEnabled: Bool = false
| |- warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isLoggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isLoggingEnabled' 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
23 |
24 | let lock: NSRecursiveLock
[39/43] Compiling AppDependency ApplicationLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:22:16: warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | #endif
21 |
22 | static var isLoggingEnabled: Bool = false
| |- warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isLoggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isLoggingEnabled' 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
23 |
24 | let lock: NSRecursiveLock
[40/43] Compiling AppDependency Application+internal.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:22:16: warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | #endif
21 |
22 | static var isLoggingEnabled: Bool = false
| |- warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isLoggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isLoggingEnabled' 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
23 |
24 | let lock: NSRecursiveLock
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: call to main actor-isolated initializer 'init(dependencyOverrides:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | */
276 | @ViewBuilder
277 | static func preview<Content: View>(
| `- note: add '@MainActor' to make static method 'preview(_:content:)' part of global actor 'MainActor'
278 | _ dependencyOverrides: DependencyOverride...,
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| `- warning: call to main actor-isolated initializer 'init(dependencyOverrides:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Types/Helper/Application+ApplicationPreview.swift:9:9: note: calls to initializer 'init(dependencyOverrides:content:)' from outside of its actor context are implicitly asynchronous
7 | let content: () -> Content
8 |
9 | init(
| `- note: calls to initializer 'init(dependencyOverrides:content:)' from outside of its actor context are implicitly asynchronous
10 | dependencyOverrides: [DependencyOverride],
11 | content: @escaping () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: sending 'dependencyOverrides' risks causing data races; this is an error in the Swift 6 language mode
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| |- warning: sending 'dependencyOverrides' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'dependencyOverrides' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| |- warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'content' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
[41/43] Compiling AppDependency Application+public.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:22:16: warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | #endif
21 |
22 | static var isLoggingEnabled: Bool = false
| |- warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isLoggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isLoggingEnabled' 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
23 |
24 | let lock: NSRecursiveLock
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: call to main actor-isolated initializer 'init(dependencyOverrides:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
275 | */
276 | @ViewBuilder
277 | static func preview<Content: View>(
| `- note: add '@MainActor' to make static method 'preview(_:content:)' part of global actor 'MainActor'
278 | _ dependencyOverrides: DependencyOverride...,
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| `- warning: call to main actor-isolated initializer 'init(dependencyOverrides:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Types/Helper/Application+ApplicationPreview.swift:9:9: note: calls to initializer 'init(dependencyOverrides:content:)' from outside of its actor context are implicitly asynchronous
7 | let content: () -> Content
8 |
9 | init(
| `- note: calls to initializer 'init(dependencyOverrides:content:)' from outside of its actor context are implicitly asynchronous
10 | dependencyOverrides: [DependencyOverride],
11 | content: @escaping () -> Content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: sending 'dependencyOverrides' risks causing data races; this is an error in the Swift 6 language mode
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| |- warning: sending 'dependencyOverrides' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'dependencyOverrides' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application+public.swift:281:9: warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
279 | content: @escaping () -> Content
280 | ) -> some View {
281 | ApplicationPreview(
| |- warning: sending 'content' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'content' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
282 | dependencyOverrides: dependencyOverrides,
283 | content: content
[42/43] Emitting module AppDependency
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:22:16: warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
20 | #endif
21 |
22 | static var isLoggingEnabled: Bool = false
| |- warning: static property 'isLoggingEnabled' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'isLoggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'isLoggingEnabled' 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
23 |
24 | let lock: NSRecursiveLock
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/ObservedDependency.swift:9: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
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: 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
10 |
11 | private let fileID: StaticString
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/AppDependency/PropertyWrappers/ObservedDependency.swift:9:6: warning: sending '$input_value' risks causing data races; this is an error in the Swift 6 language mode
7 | private let keyPath: KeyPath<Application, Application.Dependency<Value>>
8 |
9 | @ObservedObject private var observedObject: 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
10 |
11 | private let fileID: StaticString
[43/43] Compiling AppDependency DependencySlice.swift
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/Application/Application.swift:12:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
10 | open class Application: NSObject {
11 | /// Singleton shared instance of `Application`
12 | static var shared: Application = Application()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 | #if !os(Linux) && !os(Windows)
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/Slice/DependencySlice.swift:49:30: warning: main actor-isolated property 'app' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
8 | #if !os(Linux) && !os(Windows)
9 | /// Holds the singleton instance of `Application`.
10 | @ObservedObject private var app: Application = Application.shared
| `- note: property declared here
11 | #else
12 | /// Holds the singleton instance of `Application`.
:
47 | )
48 |
49 | var dependency = app.value(keyPath: dependencyKeyPath)
| `- warning: main actor-isolated property 'app' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
50 | #if !os(Linux) && !os(Windows)
51 | Application.shared.objectWillChange.send()
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/Slice/DependencySlice.swift:61:20: warning: capture of 'self' with non-sendable type 'DependencySlice<Value, SliceValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 |
6 | /// A property wrapper that provides access to a specific part of the AppDependency's dependencies.
7 | @propertyWrapper public struct DependencySlice<Value, SliceValue> {
| `- note: consider making generic struct 'DependencySlice' conform to the 'Sendable' protocol
8 | #if !os(Linux) && !os(Windows)
9 | /// Holds the singleton instance of `Application`.
:
59 | public var projectedValue: Binding<SliceValue> {
60 | Binding(
61 | get: { wrappedValue },
| `- warning: capture of 'self' with non-sendable type 'DependencySlice<Value, SliceValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | set: { wrappedValue = $0 }
63 | )
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/Slice/DependencySlice.swift:62:20: warning: capture of 'self' with non-sendable type 'DependencySlice<Value, SliceValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
5 |
6 | /// A property wrapper that provides access to a specific part of the AppDependency's dependencies.
7 | @propertyWrapper public struct DependencySlice<Value, SliceValue> {
| `- note: consider making generic struct 'DependencySlice' conform to the 'Sendable' protocol
8 | #if !os(Linux) && !os(Windows)
9 | /// Holds the singleton instance of `Application`.
:
60 | Binding(
61 | get: { wrappedValue },
62 | set: { wrappedValue = $0 }
| `- warning: capture of 'self' with non-sendable type 'DependencySlice<Value, SliceValue>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
63 | )
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/AppDependency/PropertyWrappers/Slice/DependencySlice.swift:96:5: error: return from initializer without initializing all stored properties
94 |
95 | self.sliceKeyPath = "\(dependencyKeyPathString)\(valueKeyPathString)"
96 | }
| |- error: return from initializer without initializing all stored properties
| `- note: 'self.app' not initialized
97 | }
98 |
BUILD FAILURE 6.0 macosSpm