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 PKLogManager, reference main (591140), with Swift 6.0 for macOS (SPM) on 14 Oct 2024 02:05:39 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/prabhatk/PKLogManager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/prabhatk/PKLogManager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5911408 PKLogManager first commit v 1.0.0
Cloned https://github.com/prabhatk/PKLogManager.git
Revision (git rev-parse @):
591140832517d1056b48a9c2e97cb5531e9669ba
SUCCESS checkout https://github.com/prabhatk/PKLogManager.git at main
Fetching https://github.com/marmelroy/Zip.git
[1/1972] Fetching zip
Fetched https://github.com/marmelroy/Zip.git from cache (1.32s)
Creating working copy for https://github.com/marmelroy/Zip.git
Working copy of https://github.com/marmelroy/Zip.git resolved at 2.1.2
========================================
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": "pklogmanager",
      "name": "PKLogManager",
      "url": "https://github.com/prabhatk/PKLogManager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/PKLogManager",
      "dependencies": [
        {
          "identity": "zip",
          "name": "Zip",
          "url": "https://github.com/marmelroy/Zip.git",
          "version": "2.1.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Zip",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/prabhatk/PKLogManager.git
[1/12] Fetching pklogmanager
Fetched https://github.com/prabhatk/PKLogManager.git from cache (0.56s)
Fetching https://github.com/marmelroy/Zip.git from cache
Fetched https://github.com/marmelroy/Zip.git from cache (0.46s)
Computing version for https://github.com/marmelroy/Zip.git
Computed https://github.com/marmelroy/Zip.git at 2.1.2 (0.65s)
Creating working copy for https://github.com/marmelroy/Zip.git
Working copy of https://github.com/marmelroy/Zip.git resolved at 2.1.2
Creating working copy for https://github.com/prabhatk/PKLogManager.git
Working copy of https://github.com/prabhatk/PKLogManager.git resolved at main (5911408)
warning: '.resolve-product-dependencies': dependency 'pklogmanager' is not used by any target
Found 1 product dependencies
  - Zip
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/prabhatk/PKLogManager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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/6] Write sources
[2/6] Write swift-version--4A847ED0836F2485.txt
[3/6] Compiling Minizip ioapi.c
[4/6] Compiling Minizip unzip.c
[5/6] Compiling Minizip zip.c
[7/10] Compiling Zip QuickZip.swift
[8/10] Compiling Zip ZipUtilities.swift
[9/10] Emitting module Zip
[10/10] Compiling Zip Zip.swift
[11/12] Emitting module PKLogManager
/Users/admin/builder/spi-builder-workspace/Sources/PKLogManager/PKLogManager.swift:7:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PKLogManager' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | import Zip
  5 |
  6 | public class PKLogManager {
    |              `- note: class 'PKLogManager' does not conform to the 'Sendable' protocol
  7 |     public static let shared = PKLogManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PKLogManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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 |
  9 |     private let fileManager = FileManager.default
[12/12] Compiling PKLogManager PKLogManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/PKLogManager/PKLogManager.swift:7:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PKLogManager' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | import Zip
  5 |
  6 | public class PKLogManager {
    |              `- note: class 'PKLogManager' does not conform to the 'Sendable' protocol
  7 |     public static let shared = PKLogManager()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'PKLogManager' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'shared' 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 |
  9 |     private let fileManager = FileManager.default
Build complete! (8.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "zip",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/marmelroy/Zip.git"
    }
  ],
  "manifest_display_name" : "PKLogManager",
  "name" : "PKLogManager",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "PKLogManager",
      "targets" : [
        "PKLogManager"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PKLogManager",
      "module_type" : "SwiftTarget",
      "name" : "PKLogManager",
      "path" : "Sources/PKLogManager",
      "product_dependencies" : [
        "Zip"
      ],
      "product_memberships" : [
        "PKLogManager"
      ],
      "sources" : [
        "PKLogManager.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
Done.