Build Information
Successful build of LoggingKit, reference v3.0.0 (1f4e4b
), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 10:28:08 UTC.
Swift 6 data race errors: 3
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/alexanderwe/LoggingKit.git
Reference: v3.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexanderwe/LoggingKit
* tag v3.0.0 -> FETCH_HEAD
HEAD is now at 1f4e4b7 Merge branch 'release/v3.0.0'
Cloned https://github.com/alexanderwe/LoggingKit.git
Revision (git rev-parse @):
1f4e4b72b6ed04fb03b3aec0cdc14abd53499585
SUCCESS checkout https://github.com/alexanderwe/LoggingKit.git at v3.0.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": "loggingkit",
"name": "LoggingKit",
"url": "https://github.com/alexanderwe/LoggingKit.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/LoggingKit",
"dependencies": [
]
}
]
}
Fetching https://github.com/alexanderwe/LoggingKit.git
[1/277] Fetching loggingkit
Fetched https://github.com/alexanderwe/LoggingKit.git from cache (1.00s)
Creating working copy for https://github.com/alexanderwe/LoggingKit.git
Working copy of https://github.com/alexanderwe/LoggingKit.git resolved at v3.0.0 (1f4e4b7)
warning: '.resolve-product-dependencies': dependency 'loggingkit' 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/alexanderwe/LoggingKit.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling LoggingKit LogType.swift
[4/8] Compiling LoggingKit LogService.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogService.swift:36:24: warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public final class LogService {
35 |
36 | private static var providers = [LogProvider]()
| |- warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' 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
37 |
38 | /// Singleton instance of the log service
/Users/admin/builder/spi-builder-workspace/Sources/LogService.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
32 | ///
33 | /// Responsible for distributing the log messages to the log providers
34 | public final class LogService {
| `- note: class 'LogService' does not conform to the 'Sendable' protocol
35 |
36 | private static var providers = [LogProvider]()
37 |
38 | /// Singleton instance of the log service
39 | public static let shared = LogService(providers: providers)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
40 |
41 | private init(providers: [LogProvider]) {
[5/8] Emitting module LoggingKit
/Users/admin/builder/spi-builder-workspace/Sources/LogCategory.swift:16:12: warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | //swiftlint:disable identifier_name
15 | // Default log categories container
16 | public var LoggingCategories = LogCategories()
| |- warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggingCategories' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'LoggingCategories' 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
17 | //swiftlint:enable identifier_name
18 |
/Users/admin/builder/spi-builder-workspace/Sources/LogService.swift:36:24: warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
34 | public final class LogService {
35 |
36 | private static var providers = [LogProvider]()
| |- warning: static property 'providers' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'providers' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'providers' 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
37 |
38 | /// Singleton instance of the log service
/Users/admin/builder/spi-builder-workspace/Sources/LogService.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
32 | ///
33 | /// Responsible for distributing the log messages to the log providers
34 | public final class LogService {
| `- note: class 'LogService' does not conform to the 'Sendable' protocol
35 |
36 | private static var providers = [LogProvider]()
37 |
38 | /// Singleton instance of the log service
39 | public static let shared = LogService(providers: providers)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
40 |
41 | private init(providers: [LogProvider]) {
[6/8] Compiling LoggingKit OSLogProvider.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogCategory.swift:16:12: warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | //swiftlint:disable identifier_name
15 | // Default log categories container
16 | public var LoggingCategories = LogCategories()
| |- warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggingCategories' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'LoggingCategories' 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
17 | //swiftlint:enable identifier_name
18 |
[7/8] Compiling LoggingKit LogCategory.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogCategory.swift:16:12: warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
14 | //swiftlint:disable identifier_name
15 | // Default log categories container
16 | public var LoggingCategories = LogCategories()
| |- warning: var 'LoggingCategories' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'LoggingCategories' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'LoggingCategories' 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
17 | //swiftlint:enable identifier_name
18 |
[8/8] Compiling LoggingKit Combine+LoggingKit.swift
/Users/admin/builder/spi-builder-workspace/Sources/LogService.swift:39:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
32 | ///
33 | /// Responsible for distributing the log messages to the log providers
34 | public final class LogService {
| `- note: class 'LogService' does not conform to the 'Sendable' protocol
35 |
36 | private static var providers = [LogProvider]()
37 |
38 | /// Singleton instance of the log service
39 | public static let shared = LogService(providers: providers)
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'LogService' may have shared mutable state; this is an error in the Swift 6 language mode
| |- 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
40 |
41 | private init(providers: [LogProvider]) {
Build complete! (6.75s)
Build complete.
{
"dependencies" : [
],
"manifest_display_name" : "LoggingKit",
"name" : "LoggingKit",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "10.0"
},
{
"name" : "tvos",
"version" : "10.0"
},
{
"name" : "watchos",
"version" : "3.0"
},
{
"name" : "macos",
"version" : "10.12"
}
],
"products" : [
{
"name" : "LoggingKit",
"targets" : [
"LoggingKit"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "LoggingKitTests",
"module_type" : "SwiftTarget",
"name" : "LoggingKitTests",
"path" : "Tests",
"sources" : [
"LinuxMain.swift",
"LoggingKitTests.swift",
"OSLogProviderTests.swift"
],
"target_dependencies" : [
"LoggingKit"
],
"type" : "test"
},
{
"c99name" : "LoggingKit",
"module_type" : "SwiftTarget",
"name" : "LoggingKit",
"path" : "Sources",
"product_memberships" : [
"LoggingKit"
],
"sources" : [
"Combine/Combine+LoggingKit.swift",
"LogCategory.swift",
"LogService.swift",
"LogType.swift",
"Providers/OSLogProvider.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Done.