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 TriforkSwiftLogger, reference master (20e1a1), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 20:04:27 UTC.

Swift 6 data race errors: 1

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trifork/TriforkSwiftLogger.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/trifork/TriforkSwiftLogger
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 20e1a1c Removed unused os.logs
Cloned https://github.com/trifork/TriforkSwiftLogger.git
Revision (git rev-parse @):
20e1a1cc17e9d2659a7e6a1a283dd5aab64ea3cd
SUCCESS checkout https://github.com/trifork/TriforkSwiftLogger.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": "triforkswiftlogger",
      "name": "TriforkSwiftLogger",
      "url": "https://github.com/trifork/TriforkSwiftLogger.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TriforkSwiftLogger",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/trifork/TriforkSwiftLogger.git
[1/166] Fetching triforkswiftlogger
Fetched https://github.com/trifork/TriforkSwiftLogger.git from cache (0.69s)
Creating working copy for https://github.com/trifork/TriforkSwiftLogger.git
Working copy of https://github.com/trifork/TriforkSwiftLogger.git resolved at master (20e1a1c)
warning: '.resolve-product-dependencies': dependency 'triforkswiftlogger' 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/trifork/TriforkSwiftLogger.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/8] Compiling TriforkSwiftLogger LogLevel.swift
[4/8] Emitting module TriforkSwiftLogger
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftLogger/OSLogger.swift:50:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | private extension OSLog {
50 |     private static var subsystem = Bundle.main.bundleIdentifier ?? "<missing bundleId>"
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
51 |
52 |     static func log(category: String) -> OSLog {
[5/8] Compiling TriforkSwiftLogger MultiLogger.swift
[6/8] Compiling TriforkSwiftLogger OSLoggerConfig.swift
[7/8] Compiling TriforkSwiftLogger Logger.swift
[8/8] Compiling TriforkSwiftLogger OSLogger.swift
/Users/admin/builder/spi-builder-workspace/Sources/TriforkSwiftLogger/OSLogger.swift:50:24: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
48 |
49 | private extension OSLog {
50 |     private static var subsystem = Bundle.main.bundleIdentifier ?? "<missing bundleId>"
   |                        |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                        |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
   |                        |- note: annotate 'subsystem' 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
51 |
52 |     static func log(category: String) -> OSLog {
Build complete! (7.92s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TriforkSwiftLogger",
  "name" : "TriforkSwiftLogger",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.14"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "TriforkSwiftLogger",
      "targets" : [
        "TriforkSwiftLogger"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TriforkSwiftLoggerTests",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftLoggerTests",
      "path" : "Tests/TriforkSwiftLoggerTests",
      "sources" : [
        "LogLevelTests.swift",
        "MultiLoggerTests.swift",
        "OSLoggerTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "TriforkSwiftLogger"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TriforkSwiftLogger",
      "module_type" : "SwiftTarget",
      "name" : "TriforkSwiftLogger",
      "path" : "Sources/TriforkSwiftLogger",
      "product_memberships" : [
        "TriforkSwiftLogger"
      ],
      "sources" : [
        "LogLevel.swift",
        "Logger.swift",
        "MultiLogger.swift",
        "OSLogger.swift",
        "OSLoggerConfig.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Done.