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 t, reference main (c11167), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 07:42:11 UTC.

Swift 6 data race errors: 6

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xOpenBytes/t.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xOpenBytes/t
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c111675 Correctly pass error to suite and expect (#4)
Cloned https://github.com/0xOpenBytes/t.git
Revision (git rev-parse @):
c111675ac4d84af23d2d9b65bffaf1829c376986
SUCCESS checkout https://github.com/0xOpenBytes/t.git at main
========================================
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": "t",
      "name": "t",
      "url": "https://github.com/0xOpenBytes/t.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/t",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/0xOpenBytes/t.git
[1/368] Fetching t
Fetched https://github.com/0xOpenBytes/t.git from cache (0.98s)
Creating working copy for https://github.com/0xOpenBytes/t.git
Working copy of https://github.com/0xOpenBytes/t.git resolved at main (c111675)
warning: '.resolve-product-dependencies': dependency 't' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/0xOpenBytes/t.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "t",
  "name" : "t",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "t",
      "targets" : [
        "t"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "tTests",
      "module_type" : "SwiftTarget",
      "name" : "tTests",
      "path" : "Tests/tTests",
      "sources" : [
        "tTests.swift"
      ],
      "target_dependencies" : [
        "t"
      ],
      "type" : "test"
    },
    {
      "c99name" : "t",
      "module_type" : "SwiftTarget",
      "name" : "t",
      "path" : "Sources/t",
      "product_memberships" : [
        "t"
      ],
      "sources" : [
        "Assertion/t+Assertion.swift",
        "Factories/t+Factories.swift",
        "Logging/t+Logging.swift",
        "Structure/t+Structure.swift",
        "t.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.txt
[3/8] Compiling t t+Structure.swift
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:11:27: warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |         public static var error = "❗️"
10 |         /// String used for any Success
11 |         public static var success = "✅"
   |                           |- warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'success' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'success' 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
12 |         /// String used for Failures
13 |         public static var failure = "❌"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:7:27: warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     struct Emojis {
 6 |         /// String used for Tests
 7 |         public static var testing = "🧪"
   |                           |- warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'testing' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'testing' 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
 8 |         /// String used for Errors
 9 |         public static var error = "❗️"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:13:27: warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |         public static var success = "✅"
12 |         /// String used for Failures
13 |         public static var failure = "❌"
   |                           |- warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'failure' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'failure' 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
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:15:27: warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |         public static var failure = "❌"
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
   |                           |- warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'expectation' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'expectation' 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
16 |     }
17 |
[4/8] Compiling t t.swift
[5/8] Compiling t t+Factories.swift
[6/8] Emitting module t
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:7:27: warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     struct Emojis {
 6 |         /// String used for Tests
 7 |         public static var testing = "🧪"
   |                           |- warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'testing' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'testing' 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
 8 |         /// String used for Errors
 9 |         public static var error = "❗️"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:9:27: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public static var testing = "🧪"
 8 |         /// String used for Errors
 9 |         public static var error = "❗️"
   |                           |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'error' 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
10 |         /// String used for any Success
11 |         public static var success = "✅"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:11:27: warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |         public static var error = "❗️"
10 |         /// String used for any Success
11 |         public static var success = "✅"
   |                           |- warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'success' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'success' 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
12 |         /// String used for Failures
13 |         public static var failure = "❌"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:13:27: warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |         public static var success = "✅"
12 |         /// String used for Failures
13 |         public static var failure = "❌"
   |                           |- warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'failure' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'failure' 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
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:15:27: warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |         public static var failure = "❌"
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
   |                           |- warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'expectation' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'expectation' 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
16 |     }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:19:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |     /// Static logging function used for all logging in `t`
19 |     static var logger: (String) -> Void = { print($0) }
   |                |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
20 |
21 |     /// Log a message using the `logger`
[7/8] Compiling t t+Assertion.swift
[8/8] Compiling t t+Logging.swift
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:7:27: warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 5 |     struct Emojis {
 6 |         /// String used for Tests
 7 |         public static var testing = "🧪"
   |                           |- warning: static property 'testing' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'testing' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'testing' 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
 8 |         /// String used for Errors
 9 |         public static var error = "❗️"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:9:27: warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |         public static var testing = "🧪"
 8 |         /// String used for Errors
 9 |         public static var error = "❗️"
   |                           |- warning: static property 'error' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'error' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'error' 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
10 |         /// String used for any Success
11 |         public static var success = "✅"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:11:27: warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 9 |         public static var error = "❗️"
10 |         /// String used for any Success
11 |         public static var success = "✅"
   |                           |- warning: static property 'success' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'success' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'success' 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
12 |         /// String used for Failures
13 |         public static var failure = "❌"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:13:27: warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 |         public static var success = "✅"
12 |         /// String used for Failures
13 |         public static var failure = "❌"
   |                           |- warning: static property 'failure' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'failure' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'failure' 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
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:15:27: warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |         public static var failure = "❌"
14 |         /// String used for any Expectation
15 |         public static var expectation = "🔘"
   |                           |- warning: static property 'expectation' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                           |- note: convert 'expectation' to a 'let' constant to make 'Sendable' shared state immutable
   |                           |- note: annotate 'expectation' 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
16 |     }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/t/Logging/t+Logging.swift:19:16: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 |     /// Static logging function used for all logging in `t`
19 |     static var logger: (String) -> Void = { print($0) }
   |                |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'logger' 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
20 |
21 |     /// Log a message using the `logger`
Build complete! (5.88s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "t",
  "name" : "t",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "t",
      "targets" : [
        "t"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "tTests",
      "module_type" : "SwiftTarget",
      "name" : "tTests",
      "path" : "Tests/tTests",
      "sources" : [
        "tTests.swift"
      ],
      "target_dependencies" : [
        "t"
      ],
      "type" : "test"
    },
    {
      "c99name" : "t",
      "module_type" : "SwiftTarget",
      "name" : "t",
      "path" : "Sources/t",
      "product_memberships" : [
        "t"
      ],
      "sources" : [
        "Assertion/t+Assertion.swift",
        "Factories/t+Factories.swift",
        "Logging/t+Logging.swift",
        "Structure/t+Structure.swift",
        "t.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.