Build Information
Successful build of LoggingKit, reference v3.0.0 (1f4e4b
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 05:39:49 UTC.
Swift 6 data race errors: 3
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.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
[6/277] Fetching loggingkit
Fetched https://github.com/alexanderwe/LoggingKit.git from cache (0.93s)
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.1
Building package at path: $PWD
https://github.com/alexanderwe/LoggingKit.git
https://github.com/alexanderwe/LoggingKit.git
{
"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"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/8] Compiling LoggingKit LogType.swift
[4/8] Compiling LoggingKit OSLogProvider.swift
[5/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: add '@MainActor' to make static property 'providers' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | private init(providers: [LogProvider]) {
[6/8] Compiling LoggingKit Combine+LoggingKit.swift
[7/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: add '@MainActor' to make var 'LoggingCategories' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'providers' part of global actor 'MainActor'
| `- 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | private init(providers: [LogProvider]) {
[8/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: add '@MainActor' to make var 'LoggingCategories' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 | //swiftlint:enable identifier_name
18 |
Build complete! (4.04s)
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.