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 CustomOperation, reference master (ad390a), with Swift 6.0 for macOS (SPM) on 14 Sep 2024 04:31:44 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.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.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Cozmonate/CustomOperation.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Cozmonate/CustomOperation
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ad390aa Refactoring
Cloned https://github.com/Cozmonate/CustomOperation.git
Revision (git rev-parse @):
ad390aa08e7177243ea093677179d39d8060c31c
SUCCESS checkout https://github.com/Cozmonate/CustomOperation.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Cozmonate/CustomOperation.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-117DEE11B69C53C9.txt
[3/6] Emitting module CustomOperation
/Users/admin/builder/spi-builder-workspace/CustomOperation/AsyncOperation.swift:34:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
32 | import Foundation
33 |
34 | public class AsyncOperation: CustomOperation {
   |              `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
35 |
36 |     public typealias Done = () -> Void
/Users/admin/builder/spi-builder-workspace/CustomOperation/CustomOperation.swift:34:12: warning: class 'CustomOperation' must restate inherited '@unchecked Sendable' conformance
 32 | import Foundation
 33 |
 34 | open class CustomOperation: Operation {
    |            `- warning: class 'CustomOperation' must restate inherited '@unchecked Sendable' conformance
 35 |
 36 |     public enum State {
[4/6] Compiling CustomOperation OperationQueue+AsyncOperation.swift
/Users/admin/builder/spi-builder-workspace/CustomOperation/OperationQueue+AsyncOperation.swift:55:17: warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 53 |         let operation = AsyncOperation { completion in
 54 |             queue.async {
 55 |                 action()
    |                 |- warning: capture of 'action' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 56 |                 completion()
 57 |             }
/Users/admin/builder/spi-builder-workspace/CustomOperation/OperationQueue+AsyncOperation.swift:56:17: warning: capture of 'completion' with non-sendable type 'AsyncOperation.Done' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 54 |             queue.async {
 55 |                 action()
 56 |                 completion()
    |                 |- warning: capture of 'completion' with non-sendable type 'AsyncOperation.Done' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 57 |             }
 58 |         }
/Users/admin/builder/spi-builder-workspace/CustomOperation/OperationQueue+AsyncOperation.swift:72:27: warning: capture of 'action' with non-sendable type 'AsyncOperation.Action' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 70 |
 71 |         let operation = AsyncOperation { completion in
 72 |             queue.async { action(completion) }
    |                           |- warning: capture of 'action' with non-sendable type 'AsyncOperation.Action' (aka '(@escaping () -> ()) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                           `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 73 |         }
 74 |
/Users/admin/builder/spi-builder-workspace/CustomOperation/OperationQueue+AsyncOperation.swift:72:34: warning: capture of 'completion' with non-sendable type 'AsyncOperation.Done' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 70 |
 71 |         let operation = AsyncOperation { completion in
 72 |             queue.async { action(completion) }
    |                                  |- warning: capture of 'completion' with non-sendable type 'AsyncOperation.Done' (aka '() -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 73 |         }
 74 |
[5/6] Compiling CustomOperation CustomOperation.swift
/Users/admin/builder/spi-builder-workspace/CustomOperation/CustomOperation.swift:34:12: warning: class 'CustomOperation' must restate inherited '@unchecked Sendable' conformance
 32 | import Foundation
 33 |
 34 | open class CustomOperation: Operation {
    |            `- warning: class 'CustomOperation' must restate inherited '@unchecked Sendable' conformance
 35 |
 36 |     public enum State {
[6/6] Compiling CustomOperation AsyncOperation.swift
/Users/admin/builder/spi-builder-workspace/CustomOperation/AsyncOperation.swift:34:14: warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
32 | import Foundation
33 |
34 | public class AsyncOperation: CustomOperation {
   |              `- warning: class 'AsyncOperation' must restate inherited '@unchecked Sendable' conformance
35 |
36 |     public typealias Done = () -> Void
Build complete! (5.81s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CustomOperation",
  "name" : "CustomOperation",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "CustomOperation",
      "targets" : [
        "CustomOperation"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "CustomOperation",
      "module_type" : "SwiftTarget",
      "name" : "CustomOperation",
      "path" : "CustomOperation",
      "product_memberships" : [
        "CustomOperation"
      ],
      "sources" : [
        "AsyncOperation.swift",
        "CustomOperation.swift",
        "OperationQueue+AsyncOperation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.