The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of Logg, reference master (0e056b), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 02:35:45 UTC.

Swift 6 data race errors: 7

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/JuanjoArreola/Logg.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/JuanjoArreola/Logg
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0e056b6 New emojis. README updated
Cloned https://github.com/JuanjoArreola/Logg.git
Revision (git rev-parse @):
0e056b6a8e028a0b8070892059656586dcaad673
SUCCESS checkout https://github.com/JuanjoArreola/Logg.git at master
========================================
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": "logg",
      "name": "Logg",
      "url": "https://github.com/JuanjoArreola/Logg.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Logg",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/JuanjoArreola/Logg.git
[1/159] Fetching logg
Fetched https://github.com/JuanjoArreola/Logg.git from cache (0.58s)
Creating working copy for https://github.com/JuanjoArreola/Logg.git
Working copy of https://github.com/JuanjoArreola/Logg.git resolved at master (0e056b6)
warning: '.resolve-product-dependencies': dependency 'logg' 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/JuanjoArreola/Logg.git
https://github.com/JuanjoArreola/Logg.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Logg",
  "name" : "Logg",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Logg",
      "targets" : [
        "Logg"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggTests",
      "path" : "Tests/LoggTests",
      "sources" : [
        "LoggTests.swift"
      ],
      "target_dependencies" : [
        "Logg"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Logg",
      "module_type" : "SwiftTarget",
      "name" : "Logg",
      "path" : "Sources/Logg",
      "product_memberships" : [
        "Logg"
      ],
      "sources" : [
        "CompositeLogger.swift",
        "ConsoleFormatter.swift",
        "ConsoleLogger.swift",
        "DefaultFormatter.swift",
        "FileLogger.swift",
        "LogContext.swift",
        "LogFormatter.swift",
        "LogLevel.swift",
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
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/12] Compiling Logg LogContext.swift
[4/12] Compiling Logg Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
[5/12] Compiling Logg LogLevel.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
   |                       |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
   |                       |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
   |                       |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
12 |     public static let none: LogLevel = []
   |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     public init(rawValue: Int) {
[6/12] Compiling Logg FileLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:57:21: warning: capture of 'self' with non-sendable type 'FileLogger' in a '@Sendable' closure
 8 | }
 9 |
10 | public class FileLogger: Logger {
   |              `- note: class 'FileLogger' does not conform to the 'Sendable' protocol
11 |
12 |     public var formatter: LogFormatter
   :
55 |         logQueue.async {
56 |             do {
57 |                 try self.append(string: string)
   |                     `- warning: capture of 'self' with non-sendable type 'FileLogger' in a '@Sendable' closure
58 |             } catch {
59 |                 self.fallback(error: error)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:44: warning: capture of 'object' with non-sendable type 'Any?' in a '@Sendable' closure
58 |             } catch {
59 |                 self.fallback(error: error)
60 |                 self.fallbackLogger?.debug(object, context: context, userInfo: nil)
   |                                            `- warning: capture of 'object' with non-sendable type 'Any?' in a '@Sendable' closure
61 |             }
62 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:61: warning: capture of 'context' with non-sendable type 'LogContext' in a '@Sendable' closure
58 |             } catch {
59 |                 self.fallback(error: error)
60 |                 self.fallbackLogger?.debug(object, context: context, userInfo: nil)
   |                                                             `- warning: capture of 'context' with non-sendable type 'LogContext' in a '@Sendable' closure
61 |             }
62 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogContext.swift:3:15: note: consider making struct 'LogContext' conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | public struct LogContext {
   |               `- note: consider making struct 'LogContext' conform to the 'Sendable' protocol
 4 |     public var file: String
 5 |     public var function: String
/Users/admin/builder/spi-builder-workspace/Sources/Logg/FileLogger.swift:60:44: warning: implicit capture of 'object' requires that 'Any?' conforms to 'Sendable'; this is an error in the Swift 6 language mode
58 |             } catch {
59 |                 self.fallback(error: error)
60 |                 self.fallbackLogger?.debug(object, context: context, userInfo: nil)
   |                                            `- warning: implicit capture of 'object' requires that 'Any?' conforms to 'Sendable'; this is an error in the Swift 6 language mode
61 |             }
62 |         }
[7/12] Compiling Logg CompositeLogger.swift
[8/12] Compiling Logg DefaultFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | open class DefaultFormatter: LogFormatter {
 4 |
 5 |     public static var shared = DefaultFormatter()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 6 |
 7 |     public var formatter: DateFormatter
[9/12] Compiling Logg LogFormatter.swift
[10/12] Emitting module Logg
/Users/admin/builder/spi-builder-workspace/Sources/Logg/DefaultFormatter.swift:5:23: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 | open class DefaultFormatter: LogFormatter {
 4 |
 5 |     public static var shared = DefaultFormatter()
   |                       |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- 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
 6 |
 7 |     public var formatter: DateFormatter
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:6:23: warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
   |                       |- warning: static property 'debug' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'debug' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:7:23: warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
   |                       |- warning: static property 'info' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'info' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:8:23: warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
 6 |     public static let debug = LogLevel(rawValue:  1 << 0)
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
   |                       |- warning: static property 'error' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'error' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:9:23: warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 7 |     public static let info = LogLevel(rawValue:  1 << 1)
 8 |     public static let error = LogLevel(rawValue:  1 << 2)
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
   |                       |- warning: static property 'fault' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'fault' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:11:23: warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
 9 |     public static let fault = LogLevel(rawValue:  1 << 3)
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
   |                       |- warning: static property 'all' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let none: LogLevel = []
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Logg/LogLevel.swift:12:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public struct LogLevel: OptionSet {
   |               `- note: consider making struct 'LogLevel' conform to the 'Sendable' protocol
 4 |     public let rawValue: Int
 5 |
   :
10 |
11 |     public static let all: LogLevel = [.debug, .info, .error, .fault]
12 |     public static let none: LogLevel = []
   |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'LogLevel' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |
14 |     public init(rawValue: Int) {
/Users/admin/builder/spi-builder-workspace/Sources/Logg/Logger.swift:3:25: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 1 | import Foundation
 2 |
 3 | public protocol Logger: class {
   |                         `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
 4 |
 5 |     var level: LogLevel { get set }
[11/12] Compiling Logg ConsoleLogger.swift
[12/12] Compiling Logg ConsoleFormatter.swift
Build complete! (5.98s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Logg",
  "name" : "Logg",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Logg",
      "targets" : [
        "Logg"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggTests",
      "path" : "Tests/LoggTests",
      "sources" : [
        "LoggTests.swift"
      ],
      "target_dependencies" : [
        "Logg"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Logg",
      "module_type" : "SwiftTarget",
      "name" : "Logg",
      "path" : "Sources/Logg",
      "product_memberships" : [
        "Logg"
      ],
      "sources" : [
        "CompositeLogger.swift",
        "ConsoleFormatter.swift",
        "ConsoleLogger.swift",
        "DefaultFormatter.swift",
        "FileLogger.swift",
        "LogContext.swift",
        "LogFormatter.swift",
        "LogLevel.swift",
        "Logger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.