This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 Commands with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/q231950/commands.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/q231950/commands
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 94921f2 Remove old and unused  resources
Cloned https://github.com/q231950/commands.git
Revision (git rev-parse @):
94921f2de9262a74e8abe2d218242214df00a2ef
SUCCESS checkout https://github.com/q231950/commands.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/q231950/commands.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write CommandsExample-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.txt
[5/10] Emitting module Commands
[6/10] Compiling Commands CommandExecutor.swift
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandExecutor.swift:40:13: warning: capture of 'self' with non-sendable type 'CommandExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class CommandExecutor {
   |              `- note: class 'CommandExecutor' does not conform to the 'Sendable' protocol
11 |
12 |     public init() {}
   :
38 |         process.standardInput = inputPipe
39 |         process.terminationHandler = { process in
40 |             self.terminationHandler?(process.terminationStatus)
   |             `- warning: capture of 'self' with non-sendable type 'CommandExecutor' in a `@Sendable` closure; this is an error in the Swift 6 language mode
41 |         }
42 |
/Users/admin/builder/spi-builder-workspace/Sources/Commands/CommandExecutor.swift:61:17: warning: capture of 'self' with non-sendable type 'CommandExecutor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 8 | import Foundation
 9 |
10 | public class CommandExecutor {
   |              `- note: class 'CommandExecutor' does not conform to the 'Sendable' protocol
11 |
12 |     public init() {}
   :
59 |             let data = handle.availableData
60 |             if data.count > 0, let output = String(data: data, encoding: .utf8) {
61 |                 self?.outputHandler?(output)
   |                 `- warning: capture of 'self' with non-sendable type 'CommandExecutor?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 |             }
63 |         }
[7/10] Compiling Commands Command.swift
[8/12] Emitting module CommandsExample
[9/12] Compiling CommandsExample main.swift
[9/12] Write Objects.LinkFileList
[10/12] Linking CommandsExample
[11/12] Applying CommandsExample
Build complete! (19.64s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Commands",
  "name" : "Commands",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommandsExample",
      "targets" : [
        "CommandsExample"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Commands",
      "targets" : [
        "Commands"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandsTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandsTests",
      "path" : "Tests/CommandsTests",
      "sources" : [
        "CommandExecutorTests.swift",
        "TestHelper.swift"
      ],
      "target_dependencies" : [
        "Commands"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandsExample",
      "module_type" : "SwiftTarget",
      "name" : "CommandsExample",
      "path" : "Sources/CommandsExample",
      "product_memberships" : [
        "CommandsExample"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "Commands"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "Commands",
      "module_type" : "SwiftTarget",
      "name" : "Commands",
      "path" : "Sources/Commands",
      "product_memberships" : [
        "CommandsExample",
        "Commands"
      ],
      "sources" : [
        "Command.swift",
        "CommandExecutor.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.