Build Information
Successful build of LogKit with Swift 6.0 (beta) 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/marekpridal/LogKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marekpridal/LogKit
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 69c61dc Add dependency injection category to LogKit
Cloned https://github.com/marekpridal/LogKit.git
Revision (git rev-parse @):
69c61dc9d0d4513f51bd1a8b423b858f063e09fb
SUCCESS checkout https://github.com/marekpridal/LogKit.git at master
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $workDir
https://github.com/marekpridal/LogKit.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/6] Write sources
[1/6] Write swift-version-6F35C1178C84523A.txt
[3/8] Emitting module LogKit
/Users/admin/builder/spi-builder-workspace/Sources/LogKit/LogKit.swift:26:23: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | }
25 |
26 | public static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
27 | public static var enabledLogging: [Category] = Category.allCases
28 |
/Users/admin/builder/spi-builder-workspace/Sources/LogKit/LogKit.swift:27:23: warning: static property 'enabledLogging' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public static var subsystem = Bundle.main.bundleIdentifier!
27 | public static var enabledLogging: [Category] = Category.allCases
| |- warning: static property 'enabledLogging' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabledLogging' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enabledLogging' 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
28 |
29 | public static func `deinit`(of object: AnyObject) {
[4/8] Compiling LogKit LogKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogKit/LogKit.swift:26:23: warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
24 | }
25 |
26 | public static var subsystem = Bundle.main.bundleIdentifier!
| |- warning: static property 'subsystem' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'subsystem' 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
27 | public static var enabledLogging: [Category] = Category.allCases
28 |
/Users/admin/builder/spi-builder-workspace/Sources/LogKit/LogKit.swift:27:23: warning: static property 'enabledLogging' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
25 |
26 | public static var subsystem = Bundle.main.bundleIdentifier!
27 | public static var enabledLogging: [Category] = Category.allCases
| |- warning: static property 'enabledLogging' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'enabledLogging' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'enabledLogging' 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
28 |
29 | public static func `deinit`(of object: AnyObject) {
[4/8] Write Objects.LinkFileList
[6/8] Archiving libLogKit-static.a
[7/8] Linking libLogKit-dynamic.dylib
Build complete! (26.92s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "LogKit",
"name" : "LogKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LogKit-static",
"targets" : [
"LogKit"
],
"type" : {
"library" : [
"static"
]
}
},
{
"name" : "LogKit-dynamic",
"targets" : [
"LogKit"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "LogKitTests",
"module_type" : "SwiftTarget",
"name" : "LogKitTests",
"path" : "Tests/LogKitTests",
"sources" : [
"LogKitTests.swift"
],
"target_dependencies" : [
"LogKit"
],
"type" : "test"
},
{
"c99name" : "LogKit",
"module_type" : "SwiftTarget",
"name" : "LogKit",
"path" : "Sources/LogKit",
"product_memberships" : [
"LogKit-static",
"LogKit-dynamic"
],
"sources" : [
"LogKit.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.