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

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kiliankoe/swift-log-matrix.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/swift-log-matrix
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 660695f update readme screenshot
Cloned https://github.com/kiliankoe/swift-log-matrix.git
Revision (git rev-parse @):
660695f3632217986ca037457c8f22b1bc9c3c0a
SUCCESS checkout https://github.com/kiliankoe/swift-log-matrix.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/kiliankoe/swift-log-matrix.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/8] Compiling Logging MetadataProvider.swift
[5/8] Compiling Logging Logging.swift
[6/8] Compiling Logging Locks.swift
[7/8] Compiling Logging LogHandler.swift
[8/8] Emitting module Logging
[9/14] Compiling LoggingMatrix Metadata+merged.swift
[10/14] Compiling LoggingMatrix URLSession+async.swift
[11/14] Compiling LoggingMatrix Message.swift
[12/14] Compiling LoggingMatrix LoggingMatrixError.swift
[13/14] Compiling LoggingMatrix MatrixLogHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     private var dateFormatter: DateFormatter
 17 |
 18 |     public static var defaultDateFormatter: DateFormatter = {
    |                       |- warning: static property 'defaultDateFormatter' 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 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultDateFormatter' 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
 19 |         let dateFormatter = DateFormatter()
 20 |         dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: LogHandler {
    |              `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class MatrixLogHandler: LogHandler {
  9 |     private var homeserver: URL
    |                 `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
 10 |     private var roomID: String
 11 |     private var accessToken: String
[14/14] Emitting module LoggingMatrix
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:18:23: warning: static property 'defaultDateFormatter' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
 16 |     private var dateFormatter: DateFormatter
 17 |
 18 |     public static var defaultDateFormatter: DateFormatter = {
    |                       |- warning: static property 'defaultDateFormatter' 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 'defaultDateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'defaultDateFormatter' 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
 19 |         let dateFormatter = DateFormatter()
 20 |         dateFormatter.dateFormat = "E, d MMM yyyy HH:mm:ss Z"
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:8:14: warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  6 | #endif
  7 |
  8 | public class MatrixLogHandler: LogHandler {
    |              `- warning: non-final class 'MatrixLogHandler' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
  9 |     private var homeserver: URL
 10 |     private var roomID: String
/Users/admin/builder/spi-builder-workspace/Sources/LoggingMatrix/MatrixLogHandler.swift:9:17: warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
  7 |
  8 | public class MatrixLogHandler: LogHandler {
  9 |     private var homeserver: URL
    |                 `- warning: stored property 'homeserver' of 'Sendable'-conforming class 'MatrixLogHandler' is mutable; this is an error in the Swift 6 language mode
 10 |     private var roomID: String
 11 |     private var accessToken: String
Build complete! (20.64s)
Fetching https://github.com/apple/swift-log.git
[1/3353] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.13s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.2 (0.67s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "swift-log-matrix",
  "name" : "swift-log-matrix",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "LoggingMatrix",
      "targets" : [
        "LoggingMatrix"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "LoggingMatrixTests",
      "module_type" : "SwiftTarget",
      "name" : "LoggingMatrixTests",
      "path" : "Tests/LoggingMatrixTests",
      "sources" : [
        "LoggingMatrixTests.swift"
      ],
      "target_dependencies" : [
        "LoggingMatrix"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LoggingMatrix",
      "module_type" : "SwiftTarget",
      "name" : "LoggingMatrix",
      "path" : "Sources/LoggingMatrix",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "LoggingMatrix"
      ],
      "sources" : [
        "LoggingMatrixError.swift",
        "MatrixLogHandler.swift",
        "Message.swift",
        "Metadata+merged.swift",
        "URLSession+async.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.