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 Signals, reference master (a5ce52), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 09:34:41 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Kitura/BlueSignals.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Kitura/BlueSignals
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at a5ce527 Add SIGCHLD and other signals
Cloned https://github.com/Kitura/BlueSignals.git
Revision (git rev-parse @):
a5ce52795af4d91b3ff5dfb484ee3e45d9ed3d44
SUCCESS checkout https://github.com/Kitura/BlueSignals.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": "bluesignals",
      "name": "Signals",
      "url": "https://github.com/Kitura/BlueSignals.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/BlueSignals",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Kitura/BlueSignals.git
[1/654] Fetching bluesignals
Fetched https://github.com/Kitura/BlueSignals.git from cache (0.71s)
Creating working copy for https://github.com/Kitura/BlueSignals.git
Working copy of https://github.com/Kitura/BlueSignals.git resolved at master (a5ce527)
warning: '.resolve-product-dependencies': dependency 'bluesignals' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Kitura/BlueSignals.git
https://github.com/Kitura/BlueSignals.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Signals",
  "name" : "Signals",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Signals",
      "targets" : [
        "Signals"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Signals",
      "module_type" : "SwiftTarget",
      "name" : "Signals",
      "path" : "Sources/Signals",
      "product_memberships" : [
        "Signals"
      ],
      "sources" : [
        "SignalWatch.swift",
        "SignalWatchHandler.swift",
        "Signals.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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-2F0A5646E1D333AE.txt
[3/6] Compiling Signals SignalWatchHandler.swift
[4/6] Compiling Signals Signals.swift
[5/6] Emitting module Signals
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
 11 | public class SignalWatch {
    |              `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
 12 |     public static let shared = SignalWatch()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 |     typealias SignalNumber = Int32
[6/6] Compiling Signals SignalWatch.swift
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:12:23: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
  9 |
 10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
 11 | public class SignalWatch {
    |              `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
 12 |     public static let shared = SignalWatch()
    |                       |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SignalWatch' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 13 |
 14 |     typealias SignalNumber = Int32
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:90:48: warning: capture of 'self' with non-sendable type 'SignalWatch' in a '@Sendable' closure
  9 |
 10 | /// ``SignalWatch`` provides an interface around ``Signals`` that allows for multiple handlers to be registered for any given signal.
 11 | public class SignalWatch {
    |              `- note: class 'SignalWatch' does not conform to the 'Sendable' protocol
 12 |     public static let shared = SignalWatch()
 13 |
    :
 88 |     private func didRecieve(signal: Signals.Signal) {
 89 |         return self.queue.async {
 90 |             guard let signalWatchHandlerList = self.signalsWatched[signal.rawValue] else { return }
    |                                                `- warning: capture of 'self' with non-sendable type 'SignalWatch' in a '@Sendable' closure
 91 |
 92 |             for signalHandler in signalWatchHandlerList {
/Users/admin/builder/spi-builder-workspace/Sources/Signals/SignalWatch.swift:90:68: warning: capture of 'signal' with non-sendable type 'Signals.Signal' in a '@Sendable' closure
 88 |     private func didRecieve(signal: Signals.Signal) {
 89 |         return self.queue.async {
 90 |             guard let signalWatchHandlerList = self.signalsWatched[signal.rawValue] else { return }
    |                                                                    `- warning: capture of 'signal' with non-sendable type 'Signals.Signal' in a '@Sendable' closure
 91 |
 92 |             for signalHandler in signalWatchHandlerList {
/Users/admin/builder/spi-builder-workspace/Sources/Signals/Signals.swift:39:14: note: consider making enum 'Signal' conform to the 'Sendable' protocol
 37 | 	/// Common OS Signals
 38 | 	///
 39 | 	public enum Signal {
    |              `- note: consider making enum 'Signal' conform to the 'Sendable' protocol
 40 | 		case hup
 41 | 		case int
Build complete! (4.02s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Signals",
  "name" : "Signals",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Signals",
      "targets" : [
        "Signals"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Signals",
      "module_type" : "SwiftTarget",
      "name" : "Signals",
      "path" : "Sources/Signals",
      "product_memberships" : [
        "Signals"
      ],
      "sources" : [
        "SignalWatch.swift",
        "SignalWatchHandler.swift",
        "Signals.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.