Build Information
Successful build of ContextKit with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 2
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nerdsupremacist/ContextKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/nerdsupremacist/ContextKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at d68c64d Making mutable context use dynamic member lookup
Cloned https://github.com/nerdsupremacist/ContextKit.git
Revision (git rev-parse @):
d68c64dd4ed4c616bb5fd58f9d19d939a1735f20
SUCCESS checkout https://github.com/nerdsupremacist/ContextKit.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/nerdsupremacist/ContextKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/12] Compiling ContextKit Array+ContextProtocol.swift
[4/12] Compiling ContextKit ContextElement.swift
[5/12] Compiling ContextKit ContextFactory.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/ContextFactory.swift:5:16: warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public class ContextKeyPaths {
| `- note: class 'ContextKeyPaths' does not conform to the 'Sendable' protocol
5 | static let factory = ContextKeyPaths()
| |- warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'factory' 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
6 |
7 | private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[6/12] Compiling ContextKit MutableContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | @dynamicMemberLookup
5 | public struct Context {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
6 | public class AnyKey: NSObject {
7 | fileprivate override init() {
:
40 | extension Context {
41 |
42 | public static let empty = Context(dictionary: [:])
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
43 |
44 | }
[7/12] Compiling ContextKit ContextKeyAssignment.swift
[8/12] Compiling ContextKit Context.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | @dynamicMemberLookup
5 | public struct Context {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
6 | public class AnyKey: NSObject {
7 | fileprivate override init() {
:
40 | extension Context {
41 |
42 | public static let empty = Context(dictionary: [:])
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
43 |
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/ContextFactory.swift:5:16: warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public class ContextKeyPaths {
| `- note: class 'ContextKeyPaths' does not conform to the 'Sendable' protocol
5 | static let factory = ContextKeyPaths()
| |- warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'factory' 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
6 |
7 | private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[9/12] Emitting module ContextKit
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/ContextBuilder.swift:4:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | import Foundation
3 |
4 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
5 | public struct ContextBuilder {
6 |
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | @dynamicMemberLookup
5 | public struct Context {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
6 | public class AnyKey: NSObject {
7 | fileprivate override init() {
:
40 | extension Context {
41 |
42 | public static let empty = Context(dictionary: [:])
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
43 |
44 | }
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/ContextFactory.swift:5:16: warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
2 | import Foundation
3 |
4 | public class ContextKeyPaths {
| `- note: class 'ContextKeyPaths' does not conform to the 'Sendable' protocol
5 | static let factory = ContextKeyPaths()
| |- warning: static property 'factory' is not concurrency-safe because non-'Sendable' type 'ContextKeyPaths' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'factory' 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
6 |
7 | private var keys = [KeyPath<ContextKeyPaths, Context.AnyKey> : Context.AnyKey]()
[10/12] Compiling ContextKit AnyContextProtocol.swift
[11/12] Compiling ContextKit ContextBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/ContextBuilder.swift:4:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
2 | import Foundation
3 |
4 | @_functionBuilder
| `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
5 | public struct ContextBuilder {
6 |
/Users/admin/builder/spi-builder-workspace/Sources/ContextKit/Context.swift:42:23: warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
3 |
4 | @dynamicMemberLookup
5 | public struct Context {
| `- note: consider making struct 'Context' conform to the 'Sendable' protocol
6 | public class AnyKey: NSObject {
7 | fileprivate override init() {
:
40 | extension Context {
41 |
42 | public static let empty = Context(dictionary: [:])
| |- warning: static property 'empty' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'empty' 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
43 |
44 | }
[12/12] Compiling ContextKit ContextProtocol.swift
Build complete! (22.94s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "ContextKit",
"name" : "ContextKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "ContextKit",
"targets" : [
"ContextKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "ContextKit",
"module_type" : "SwiftTarget",
"name" : "ContextKit",
"path" : "Sources/ContextKit",
"product_memberships" : [
"ContextKit"
],
"sources" : [
"AnyContextProtocol.swift",
"Array+ContextProtocol.swift",
"Context.swift",
"ContextBuilder.swift",
"ContextElement.swift",
"ContextFactory.swift",
"ContextKeyAssignment.swift",
"ContextProtocol.swift",
"MutableContext.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.