This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of LoggingKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 3

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/alexanderwe/LoggingKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/alexanderwe/LoggingKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
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 master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/alexanderwe/LoggingKit.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/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 non-isolated 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 non-isolated 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 |
[4/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 non-isolated 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 non-isolated 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 |
[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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 LogType.swift
[7/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 non-isolated 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 non-isolated 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]) {
[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! (17.97s)
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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.