Build Information
Successful build of LoggerKit, reference 0.0.0 (9b5462
), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 03:20:19 UTC.
Swift 6 data race errors: 2
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
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kongzii/LoggerKit.git
Reference: 0.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kongzii/LoggerKit
* tag 0.0.0 -> FETCH_HEAD
HEAD is now at 9b54626 [Project] Updated project
Cloned https://github.com/kongzii/LoggerKit.git
Revision (git rev-parse @):
9b54626f49f97c38227009762cce4156dfa313a5
SUCCESS checkout https://github.com/kongzii/LoggerKit.git at 0.0.0
Fetching https://github.com/onevcat/Rainbow
[1/1126] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (0.99s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (2.53s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.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": "loggerkit",
"name": "LoggerKit",
"url": "https://github.com/kongzii/LoggerKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggerKit",
"dependencies": [
{
"identity": "rainbow",
"name": "Rainbow",
"url": "https://github.com/onevcat/Rainbow",
"version": "3.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Rainbow",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/kongzii/LoggerKit.git
[1/369] Fetching loggerkit
Fetched https://github.com/kongzii/LoggerKit.git from cache (0.73s)
Fetching https://github.com/onevcat/Rainbow from cache
Fetched https://github.com/onevcat/Rainbow from cache (0.50s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 3.2.0 (0.03s)
Creating working copy for https://github.com/kongzii/LoggerKit.git
Working copy of https://github.com/kongzii/LoggerKit.git resolved at 0.0.0 (9b54626)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 3.2.0
warning: '.resolve-product-dependencies': dependency 'loggerkit' is not used by any target
Found 1 product dependencies
- Rainbow
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/kongzii/LoggerKit.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
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/14] Compiling Rainbow StringGenerator.swift
[5/14] Compiling Rainbow Style.swift
[6/15] Compiling Rainbow XcodeColorsSupport.swift
[7/15] Compiling Rainbow String+Rainbow.swift
[8/15] Compiling Rainbow OutputTarget.swift
[9/15] Compiling Rainbow ControlCode.swift
[10/15] Compiling Rainbow ModesExtractor.swift
[11/15] Compiling Rainbow BackgroundColor.swift
[12/15] Compiling Rainbow CodesParser.swift
[13/15] Compiling Rainbow Color.swift
[14/15] Compiling Rainbow Rainbow.swift
[15/15] Emitting module Rainbow
[16/17] Compiling LoggerKit Logger.swift
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:38:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | /// The Logger will only log messages with a level equal or higher than this.
37 | #if DEBUG
38 | public static var logLevel: LogLevel = .debug
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
39 | #else
40 | public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:58:23: warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// The mode of the Logger.
58 | public static var logMode: LogMode = .logger
| |- warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logMode' 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
59 | }
60 |
[17/17] Emitting module LoggerKit
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:38:23: warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
36 | /// The Logger will only log messages with a level equal or higher than this.
37 | #if DEBUG
38 | public static var logLevel: LogLevel = .debug
| |- warning: static property 'logLevel' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logLevel' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logLevel' 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
39 | #else
40 | public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:58:23: warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
56 |
57 | /// The mode of the Logger.
58 | public static var logMode: LogMode = .logger
| |- warning: static property 'logMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'logMode' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'logMode' 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
59 | }
60 |
Build complete! (14.06s)
Build complete.
{
"dependencies" : [
{
"identity" : "rainbow",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/onevcat/Rainbow"
}
],
"manifest_display_name" : "LoggerKit",
"name" : "LoggerKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "LoggerKit",
"targets" : [
"LoggerKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggerKitTests",
"module_type" : "SwiftTarget",
"name" : "LoggerKitTests",
"path" : "Tests/LoggerKitTests",
"sources" : [
"LoggerKitTests.swift"
],
"target_dependencies" : [
"LoggerKit"
],
"type" : "test"
},
{
"c99name" : "LoggerKit",
"module_type" : "SwiftTarget",
"name" : "LoggerKit",
"path" : "LoggerKit",
"product_dependencies" : [
"Rainbow"
],
"product_memberships" : [
"LoggerKit"
],
"sources" : [
"Logger.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.