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 LoggerKit with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 8

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/pvieito/LoggerKit.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/pvieito/LoggerKit
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 32680ce [LoggerKit] Updated Rainbow package
Cloned https://github.com/pvieito/LoggerKit.git
Revision (git rev-parse @):
32680ce247721c879d3797c329904d3db720e551
SUCCESS checkout https://github.com/pvieito/LoggerKit.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/pvieito/LoggerKit.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/4] Write sources
[3/4] Write swift-version-6F35C1178C84523A.txt
[5/17] Compiling Rainbow Color.swift
[6/18] Compiling Rainbow Style.swift
[7/18] Compiling Rainbow String+Rainbow.swift
[8/18] Compiling Rainbow ControlCode.swift
[9/18] Compiling Rainbow ModesExtractor.swift
[10/18] Compiling Rainbow OutputTarget.swift
[11/18] Compiling Rainbow StringGenerator.swift
[12/18] Compiling Rainbow Rainbow.swift
[13/18] Emitting module Rainbow
[14/18] Compiling Rainbow ColorApproximation.swift
[15/18] Compiling Rainbow BackgroundColor.swift
[16/18] Compiling Rainbow CodesParser.swift
[17/18] Compiling LoggerKitMac Logger.swift
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 '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
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' 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
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 '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
 70 | }
 71 |
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' 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
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[18/18] Emitting module LoggerKitMac
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 '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
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' 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
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 '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
 70 | }
 71 |
/Users/admin/builder/spi-builder-workspace/LoggerKitMac/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' 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
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[19/20] Compiling LoggerKit Logger.swift
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 '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
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' 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
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 '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
 70 | }
 71 |
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' 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
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
[20/20] Emitting module LoggerKit
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:41:23: warning: static property 'logLevel' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |     /// The Logger will only log messages with a level equal or higher than this.
 40 |     #if DEBUG
 41 |     public static var logLevel: LogLevel = .debug
    |                       |- warning: static property 'logLevel' 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 '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
 42 |     #else
 43 |     public static var logLevel: LogLevel = .warning
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:46:24: warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 18 |
 19 |     /// Possible levels of the log.
 20 |     public enum LogLevel: Int, Comparable, CaseIterable {
    |                 `- note: consider making enum 'LogLevel' conform to the 'Sendable' protocol
 21 |         case silence = 0
 22 |         case error
    :
 44 |     #endif
 45 |
 46 |     private static let _maxLogLevel = LogLevel.allCases.max()!
    |                        |- warning: static property '_maxLogLevel' is not concurrency-safe because non-'Sendable' type 'Logger.LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate '_maxLogLevel' 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
 47 |     private static var _logLevel: LogLevel {
 48 |         if self.isExtendedLogEnabled {
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:69:23: warning: static property 'logMode' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |
 68 |     /// The mode of the Logger.
 69 |     public static var logMode: LogMode = .logger
    |                       |- warning: static property 'logMode' 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 '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
 70 | }
 71 |
/Users/admin/builder/spi-builder-workspace/LoggerKit/Logger.swift:75:24: warning: static property 'isExtendedLogEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 73 |     // MARK: Private Log Functions
 74 |     private static let extendedLogEnvironmentVariableName = "LOGGERKIT_EXTENDED_LOG"
 75 |     private static var isExtendedLogEnabled: Bool = {
    |                        |- warning: static property 'isExtendedLogEnabled' 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 'isExtendedLogEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'isExtendedLogEnabled' 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
 76 |         return ProcessInfo.processInfo.environment[Logger.extendedLogEnvironmentVariableName] != nil
 77 |     }()
Build complete! (26.37s)
Fetching https://github.com/onevcat/Rainbow
[1/1118] Fetching rainbow
Fetched https://github.com/onevcat/Rainbow from cache (1.00s)
Computing version for https://github.com/onevcat/Rainbow
Computed https://github.com/onevcat/Rainbow at 4.0.1 (2.62s)
Creating working copy for https://github.com/onevcat/Rainbow
Working copy of https://github.com/onevcat/Rainbow resolved at 4.0.1
Build complete.
{
  "dependencies" : [
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.0.0",
            "upper_bound" : "5.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"
        ]
      }
    },
    {
      "name" : "LoggerKitMac",
      "targets" : [
        "LoggerKitMac"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggerKitTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitTests",
      "path" : "Tests/LoggerKitTests",
      "sources" : [
        "LoggerKitTests.swift"
      ],
      "target_dependencies" : [
        "LoggerKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggerKitMac",
      "module_type" : "SwiftTarget",
      "name" : "LoggerKitMac",
      "path" : "LoggerKitMac",
      "product_memberships" : [
        "LoggerKitMac"
      ],
      "sources" : [
        "Logger.swift"
      ],
      "type" : "library"
    },
    {
      "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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.