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 Timers, reference main (d77a85), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 17:06:02 UTC.

Swift 6 data race errors: 0

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dreymonde/Timers.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dreymonde/Timers
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d77a85c update README
Cloned https://github.com/dreymonde/Timers.git
Revision (git rev-parse @):
d77a85ca78b724d8f444fb0d9f6ddb33d0acc06e
SUCCESS checkout https://github.com/dreymonde/Timers.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": "timers",
      "name": "Timers",
      "url": "https://github.com/dreymonde/Timers.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Timers",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/dreymonde/Timers.git
[1/46] Fetching timers
Fetched https://github.com/dreymonde/Timers.git from cache (0.93s)
Creating working copy for https://github.com/dreymonde/Timers.git
Working copy of https://github.com/dreymonde/Timers.git resolved at main (d77a85c)
warning: '.resolve-product-dependencies': dependency 'timers' 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/dreymonde/Timers.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Timers",
  "name" : "Timers",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Timers",
      "targets" : [
        "Timers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TimersTests",
      "module_type" : "SwiftTarget",
      "name" : "TimersTests",
      "path" : "Tests/TimersTests",
      "sources" : [
        "TimersTests.swift"
      ],
      "target_dependencies" : [
        "Timers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Timers",
      "module_type" : "SwiftTarget",
      "name" : "Timers",
      "path" : "Sources/Timers",
      "product_memberships" : [
        "Timers"
      ],
      "sources" : [
        "Timers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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] Emitting module Timers
[4/4] Compiling Timers Timers.swift
/Users/admin/builder/spi-builder-workspace/Sources/Timers/Timers.swift:65:81: warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
 62 |         handler: @escaping (TargetType, Timer) -> Void
 63 |     ) {
 64 |         addCustomTimer(withTarget: target, handler: handler) { timerBlock in
    |                                                                `- note: parameter 'timerBlock' is implicitly non-sendable
 65 |             let timer = Timer(timeInterval: timeInterval, repeats: true, block: timerBlock)
    |                                                                                 `- warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
 66 |             timer.tolerance = tolerance
 67 |             return timer
/Users/admin/builder/spi-builder-workspace/Sources/Timers/Timers.swift:102:28: warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
 95 |             withTarget: target,
 96 |             handler: handler,
 97 |             makeTimer: { timerBlock in
    |                          `- note: parameter 'timerBlock' is implicitly non-sendable
 98 |                 let timer = Timer(
 99 |                     fire: fireAt,
100 |                     interval: timeInterval,
101 |                     repeats: true,
102 |                     block: timerBlock
    |                            `- warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
103 |                 )
104 |                 timer.tolerance = tolerance
/Users/admin/builder/spi-builder-workspace/Sources/Timers/Timers.swift:138:73: warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
135 |             withTarget: target,
136 |             handler: { target, _ in handler(target) },
137 |             makeTimer: { timerBlock in
    |                          `- note: parameter 'timerBlock' is implicitly non-sendable
138 |                 Timer(fire: fireAt, interval: 0, repeats: false, block: timerBlock)
    |                                                                         `- warning: passing non-sendable parameter 'timerBlock' to function expecting a @Sendable closure
139 |             }
140 |         )
Build complete! (5.40s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Timers",
  "name" : "Timers",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Timers",
      "targets" : [
        "Timers"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TimersTests",
      "module_type" : "SwiftTarget",
      "name" : "TimersTests",
      "path" : "Tests/TimersTests",
      "sources" : [
        "TimersTests.swift"
      ],
      "target_dependencies" : [
        "Timers"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Timers",
      "module_type" : "SwiftTarget",
      "name" : "Timers",
      "path" : "Sources/Timers",
      "product_memberships" : [
        "Timers"
      ],
      "sources" : [
        "Timers.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.