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 ProgressReporter, reference 1.3.6 (c7bc68), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 05:19: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 -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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sam-Spencer/ProgressReporter.git
Reference: 1.3.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/ProgressReporter
 * tag               1.3.6      -> FETCH_HEAD
HEAD is now at c7bc68b Update platform compatibility
Cloned https://github.com/Sam-Spencer/ProgressReporter.git
Revision (git rev-parse @):
c7bc68baec2a3bc08800df9a06cf5074004c025c
SUCCESS checkout https://github.com/Sam-Spencer/ProgressReporter.git at 1.3.6
========================================
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": "progressreporter",
      "name": "ProgressReporter",
      "url": "https://github.com/Sam-Spencer/ProgressReporter.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/ProgressReporter",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Sam-Spencer/ProgressReporter.git
[1/148] Fetching progressreporter
Fetched https://github.com/Sam-Spencer/ProgressReporter.git from cache (0.67s)
Creating working copy for https://github.com/Sam-Spencer/ProgressReporter.git
Working copy of https://github.com/Sam-Spencer/ProgressReporter.git resolved at 1.3.6 (c7bc68b)
warning: '.resolve-product-dependencies': dependency 'progressreporter' 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/Sam-Spencer/ProgressReporter.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 -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/4] Compiling ProgressReporter ProgressReporter.swift
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:105:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
101 | ///
102 | @available(iOS 13.0, *)
103 | open class ProgressCoordinator: ProgressCensus {
    |            `- note: class 'ProgressCoordinator' does not conform to the 'Sendable' protocol
104 |
105 |     public static let shared = ProgressCoordinator()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' 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
106 |     public var watcher: ProgressWatcher?
107 |
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:192:17: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
190 |         } else {
191 |             DispatchQueue.main.async {
192 |                 self.watcher?.hasProgressToReport(report: self.progress)
    |                 |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
193 |                 self.rawProgress = self.progress.progress
194 |             }
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:207:17: warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
205 |         } else {
206 |             DispatchQueue.main.async {
207 |                 task()
    |                 |- warning: sending 'task' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'task' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
208 |             }
209 |         }
[4/4] Emitting module ProgressReporter
/Users/admin/builder/spi-builder-workspace/Sources/ProgressReporter/ProgressReporter.swift:105:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' may have shared mutable state; this is an error in the Swift 6 language mode
101 | ///
102 | @available(iOS 13.0, *)
103 | open class ProgressCoordinator: ProgressCensus {
    |            `- note: class 'ProgressCoordinator' does not conform to the 'Sendable' protocol
104 |
105 |     public static let shared = ProgressCoordinator()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'ProgressCoordinator' 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
106 |     public var watcher: ProgressWatcher?
107 |
Build complete! (5.15s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "ProgressReporter",
  "name" : "ProgressReporter",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "ProgressReporter",
      "targets" : [
        "ProgressReporter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ProgressReporterTests",
      "module_type" : "SwiftTarget",
      "name" : "ProgressReporterTests",
      "path" : "Tests/ProgressReporterTests",
      "sources" : [
        "ProgressReporterTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "ProgressReporter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ProgressReporter",
      "module_type" : "SwiftTarget",
      "name" : "ProgressReporter",
      "path" : "Sources/ProgressReporter",
      "product_memberships" : [
        "ProgressReporter"
      ],
      "sources" : [
        "ProgressReporter.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.