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 B9Action, reference main (32ccac), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 20:54:17 UTC.

Swift 6 data race errors: 0

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/b9swift/Action.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/b9swift/Action
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 32ccacb Correct spelling.
Cloned https://github.com/b9swift/Action.git
Revision (git rev-parse @):
32ccacba992b921e304438ca6d6cfa20fef6e840
SUCCESS checkout https://github.com/b9swift/Action.git at main
========================================
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": "action",
      "name": "B9Action",
      "url": "https://github.com/b9swift/Action.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Action",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/b9swift/Action.git
[1/45] Fetching action
Fetched https://github.com/b9swift/Action.git from cache (0.57s)
Creating working copy for https://github.com/b9swift/Action.git
Working copy of https://github.com/b9swift/Action.git resolved at main (32ccacb)
warning: '.resolve-product-dependencies': dependency 'action' 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/b9swift/Action.git
https://github.com/b9swift/Action.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "B9Action",
  "name" : "B9Action",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "B9Action",
      "targets" : [
        "B9Action"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "B9ActionTests",
      "module_type" : "SwiftTarget",
      "name" : "B9ActionTests",
      "path" : "Tests/B9ActionTests",
      "sources" : [
        "B9ActionTests.swift"
      ],
      "target_dependencies" : [
        "B9Action"
      ],
      "type" : "test"
    },
    {
      "c99name" : "B9Action",
      "module_type" : "SwiftTarget",
      "name" : "B9Action",
      "path" : "Sources/B9Action",
      "product_memberships" : [
        "B9Action"
      ],
      "sources" : [
        "B9Action.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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/4] Compiling B9Action B9Action.swift
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
108 |     ///
109 |     /// - Parameter sender: An object sent with the selector message to the target, ignored when the closure is called.
110 |     public func perform(sender: Any?) {
    |                 `- note: add '@MainActor' to make instance method 'perform(sender:)' part of global actor 'MainActor'
111 |         if #available(macOS 10.12, *) {
112 |             dispatchPrecondition(condition: .onQueue(.main))
    :
114 |         guard isValid else { return }
115 |         if let selector = selector {
116 |             NSApp.sendAction(selector, to: target, from: sender)
    |                   `- warning: call to main actor-isolated instance method 'sendAction(_:to:from:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
117 |         }
118 |         if let action = block {
AppKit.NSApplication.sendAction:2:22: note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
1 | class NSApplication {
2 | @MainActor open func sendAction(_ action: Selector, to target: Any?, from sender: Any?) -> Bool}
  |                      |- note: calls to instance method 'sendAction(_:to:from:)' from outside of its actor context are implicitly asynchronous
  |                      `- note: main actor isolation inferred from inheritance from class 'NSResponder'
3 |
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:13: warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
108 |     ///
109 |     /// - Parameter sender: An object sent with the selector message to the target, ignored when the closure is called.
110 |     public func perform(sender: Any?) {
    |                 `- note: add '@MainActor' to make instance method 'perform(sender:)' part of global actor 'MainActor'
111 |         if #available(macOS 10.12, *) {
112 |             dispatchPrecondition(condition: .onQueue(.main))
    :
114 |         guard isValid else { return }
115 |         if let selector = selector {
116 |             NSApp.sendAction(selector, to: target, from: sender)
    |             `- warning: main actor-isolated var 'NSApp' can not be referenced from a nonisolated context; this is an error in the Swift 6 language mode
117 |         }
118 |         if let action = block {
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSApplication.h:191:58: note: var declared here
189 | @interface NSApplication : NSResponder <NSUserInterfaceValidations, NSMenuItemValidation, NSAccessibilityElement, NSAccessibility>
190 |
191 | APPKIT_EXTERN __kindof NSApplication * _Null_unspecified NSApp NS_SWIFT_UI_ACTOR;
    |                                                          `- note: var declared here
192 |
193 | @property (class, readonly, strong) __kindof NSApplication *sharedApplication;
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
114 |         guard isValid else { return }
115 |         if let selector = selector {
116 |             NSApp.sendAction(selector, to: target, from: sender)
    |                   |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
117 |         }
118 |         if let action = block {
/Users/admin/builder/spi-builder-workspace/Sources/B9Action/B9Action.swift:116:19: warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
114 |         guard isValid else { return }
115 |         if let selector = selector {
116 |             NSApp.sendAction(selector, to: target, from: sender)
    |                   |- warning: sending value of non-Sendable type 'Any?' risks causing data races; this is an error in the Swift 6 language mode
    |                   `- note: sending task-isolated value of non-Sendable type 'Any?' to main actor-isolated instance method 'sendAction(_:to:from:)' risks causing races in between task-isolated and main actor-isolated uses
117 |         }
118 |         if let action = block {
[4/4] Emitting module B9Action
Build complete! (6.04s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "B9Action",
  "name" : "B9Action",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "B9Action",
      "targets" : [
        "B9Action"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "B9ActionTests",
      "module_type" : "SwiftTarget",
      "name" : "B9ActionTests",
      "path" : "Tests/B9ActionTests",
      "sources" : [
        "B9ActionTests.swift"
      ],
      "target_dependencies" : [
        "B9Action"
      ],
      "type" : "test"
    },
    {
      "c99name" : "B9Action",
      "module_type" : "SwiftTarget",
      "name" : "B9Action",
      "path" : "Sources/B9Action",
      "product_memberships" : [
        "B9Action"
      ],
      "sources" : [
        "B9Action.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.