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 SimplyLogger, reference main (c602cb), with Swift 6.0 for macOS (SPM) on 12 Sep 2024 15:38:41 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CodeNationDev/SimplyLogger.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CodeNationDev/SimplyLogger
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at c602cb4 Update readme.
Cloned https://github.com/CodeNationDev/SimplyLogger.git
Revision (git rev-parse @):
c602cb4a02eae4a3d098ff39ab02ea212a4ab675
SUCCESS checkout https://github.com/CodeNationDev/SimplyLogger.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/CodeNationDev/SimplyLogger.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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-117DEE11B69C53C9.txt
[3/6] Compiling SimplyLogger OSLog+Subsystem.swift
/Users/admin/builder/spi-builder-workspace/Sources/SimplyLogger/OSLog+Subsystem.swift:6: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
4 |
5 | extension OSLog {
6 |     private static var subsystem = Bundle.main.bundleIdentifier!
  |                        |- 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
7 | }
8 |
[4/6] Compiling SimplyLogger Date+Local.swift
[5/6] Compiling SimplyLogger SimplyLogger.swift
[6/6] Emitting module SimplyLogger
/Users/admin/builder/spi-builder-workspace/Sources/SimplyLogger/OSLog+Subsystem.swift:6: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
4 |
5 | extension OSLog {
6 |     private static var subsystem = Bundle.main.bundleIdentifier!
  |                        |- 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
7 | }
8 |
Build complete! (6.39s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimplyLogger",
  "name" : "SimplyLogger",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    }
  ],
  "products" : [
    {
      "name" : "SimplyLogger",
      "targets" : [
        "SimplyLogger"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SimplyLogger",
      "module_type" : "SwiftTarget",
      "name" : "SimplyLogger",
      "path" : "Sources/SimplyLogger",
      "product_memberships" : [
        "SimplyLogger"
      ],
      "sources" : [
        "Date+Local.swift",
        "OSLog+Subsystem.swift",
        "SimplyLogger.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.