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

Swift 6 data race errors: 10

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/mhdhejazi/Dynamic.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mhdhejazi/Dynamic
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7728830 Create LICENSE
Cloned https://github.com/mhdhejazi/Dynamic.git
Revision (git rev-parse @):
772883073d044bc754d401cabb6574624eb3778f
SUCCESS checkout https://github.com/mhdhejazi/Dynamic.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/mhdhejazi/Dynamic.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/7] Compiling Dynamic TypeMapping.swift
[4/7] Compiling Dynamic Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:35:16: warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     }
 34 |
 35 |     static let dummy = DummyLogger()
    |                |- warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'dummy' 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
 36 |     static var enabled = true
 37 |
    :
 94 | }
 95 |
 96 | class DummyLogger: Logger {
    |       `- note: class 'DummyLogger' does not conform to the 'Sendable' protocol
 97 |     @discardableResult
 98 |     override func log(_ items: [Any], withBullet: Bool = true) -> Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:36:16: warning: static property 'enabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 |     static let dummy = DummyLogger()
 36 |     static var enabled = true
    |                |- warning: static property 'enabled' 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 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'enabled' 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 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:38:24: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     static var enabled = true
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
    |                        |- warning: static property 'loggers' 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 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'loggers' 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
 39 |     private static var level: Int = 0
 40 |
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:39:24: warning: static property 'level' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
 39 |     private static var level: Int = 0
    |                        |- warning: static property 'level' 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 'level' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'level' 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 |     static func logger(for object: AnyObject) -> Logger {
[5/7] Compiling Dynamic Dynamic.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:14:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
 14 |     public static var loggingEnabled: Bool = false {
    |                       |- warning: static property 'loggingEnabled' 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 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loggingEnabled' 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
 15 |         didSet {
 16 |             Invocation.loggingEnabled = loggingEnabled
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | class Invocation: Loggable {
 10 |     public static var loggingEnabled: Bool = false
    |                       |- warning: static property 'loggingEnabled' 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 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loggingEnabled' 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
 11 |     var loggingEnabled: Bool { Self.loggingEnabled }
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:21:23: warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | @dynamicCallable
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
    |              `- note: class 'Dynamic' does not conform to the 'Sendable' protocol
 14 |     public static var loggingEnabled: Bool = false {
 15 |         didSet {
    :
 19 |     var loggingEnabled: Bool { Self.loggingEnabled }
 20 |
 21 |     public static let `nil` = Dynamic(nil)
    |                       |- warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'nil' 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
 22 |
 23 |     private let object: AnyObject?
[6/7] Compiling Dynamic Invocation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | class Invocation: Loggable {
 10 |     public static var loggingEnabled: Bool = false
    |                       |- warning: static property 'loggingEnabled' 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 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loggingEnabled' 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
 11 |     var loggingEnabled: Bool { Self.loggingEnabled }
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:10: warning: associated value 'unrecognizedSelector' of 'Sendable'-conforming enum 'InvocationError' has non-sendable type 'Selector'; this is an error in the Swift 6 language mode
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |          `- warning: associated value 'unrecognizedSelector' of 'Sendable'-conforming enum 'InvocationError' has non-sendable type 'Selector'; this is an error in the Swift 6 language mode
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  5 | //
  6 |
  7 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  8 |
  9 | class Invocation: Loggable {
[7/7] Emitting module Dynamic
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:14:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
 14 |     public static var loggingEnabled: Bool = false {
    |                       |- warning: static property 'loggingEnabled' 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 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loggingEnabled' 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
 15 |         didSet {
 16 |             Invocation.loggingEnabled = loggingEnabled
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:10:23: warning: static property 'loggingEnabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
  8 |
  9 | class Invocation: Loggable {
 10 |     public static var loggingEnabled: Bool = false
    |                       |- warning: static property 'loggingEnabled' 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 'loggingEnabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'loggingEnabled' 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
 11 |     var loggingEnabled: Bool { Self.loggingEnabled }
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Dynamic.swift:21:23: warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
 11 | @dynamicCallable
 12 | @dynamicMemberLookup
 13 | public class Dynamic: CustomDebugStringConvertible, Loggable {
    |              `- note: class 'Dynamic' does not conform to the 'Sendable' protocol
 14 |     public static var loggingEnabled: Bool = false {
 15 |         didSet {
    :
 19 |     var loggingEnabled: Bool { Self.loggingEnabled }
 20 |
 21 |     public static let `nil` = Dynamic(nil)
    |                       |- warning: static property 'nil' is not concurrency-safe because non-'Sendable' type 'Dynamic' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'nil' 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
 22 |
 23 |     private let object: AnyObject?
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:218:10: warning: associated value 'unrecognizedSelector' of 'Sendable'-conforming enum 'InvocationError' has non-sendable type 'Selector'; this is an error in the Swift 6 language mode
216 |
217 | public enum InvocationError: CustomNSError {
218 |     case unrecognizedSelector(_ classType: AnyClass, _ selector: Selector)
    |          `- warning: associated value 'unrecognizedSelector' of 'Sendable'-conforming enum 'InvocationError' has non-sendable type 'Selector'; this is an error in the Swift 6 language mode
219 |
220 |     public static var errorDomain: String { String(describing: Invocation.self) }
ObjectiveC.Selector:1:23: note: struct 'Selector' does not conform to the 'Sendable' protocol
1 | @frozen public struct Selector : ExpressibleByStringLiteral {
  |                       `- note: struct 'Selector' does not conform to the 'Sendable' protocol
2 |     public init(_ str: String)
3 |     public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Invocation.swift:7:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  5 | //
  6 |
  7 | import Foundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'ObjectiveC'
  8 |
  9 | class Invocation: Loggable {
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:35:16: warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
 33 |     }
 34 |
 35 |     static let dummy = DummyLogger()
    |                |- warning: static property 'dummy' is not concurrency-safe because non-'Sendable' type 'DummyLogger' may have shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: annotate 'dummy' 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
 36 |     static var enabled = true
 37 |
    :
 94 | }
 95 |
 96 | class DummyLogger: Logger {
    |       `- note: class 'DummyLogger' does not conform to the 'Sendable' protocol
 97 |     @discardableResult
 98 |     override func log(_ items: [Any], withBullet: Bool = true) -> Logger {
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:36:16: warning: static property 'enabled' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 |     static let dummy = DummyLogger()
 36 |     static var enabled = true
    |                |- warning: static property 'enabled' 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 'enabled' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: annotate 'enabled' 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 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:38:24: warning: static property 'loggers' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 36 |     static var enabled = true
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
    |                        |- warning: static property 'loggers' 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 'loggers' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'loggers' 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
 39 |     private static var level: Int = 0
 40 |
/Users/admin/builder/spi-builder-workspace/Sources/Dynamic/Logger.swift:39:24: warning: static property 'level' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |
 38 |     private static var loggers: [ObjectIdentifier: Logger] = [:]
 39 |     private static var level: Int = 0
    |                        |- warning: static property 'level' 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 'level' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'level' 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 |     static func logger(for object: AnyObject) -> Logger {
Build complete! (17.77s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Dynamic",
  "name" : "Dynamic",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Dynamic",
      "targets" : [
        "Dynamic"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "DynamicTests",
      "module_type" : "SwiftTarget",
      "name" : "DynamicTests",
      "path" : "Tests/DynamicTests",
      "sources" : [
        "DynamicTests.swift"
      ],
      "target_dependencies" : [
        "Dynamic"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Dynamic",
      "module_type" : "SwiftTarget",
      "name" : "Dynamic",
      "path" : "Sources/Dynamic",
      "product_memberships" : [
        "Dynamic"
      ],
      "sources" : [
        "Dynamic.swift",
        "Invocation.swift",
        "Logger.swift",
        "TypeMapping.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.