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 SwiftCron 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/rymcol/swiftcron.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rymcol/swiftcron
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at b2f1845 Merge branch 'master' of github.com:rymcol/Swift-Cron
Cloned https://github.com/rymcol/swiftcron.git
Revision (git rev-parse @):
b2f1845dd442c37928109f5d9125916f167e3982
SUCCESS checkout https://github.com/rymcol/swiftcron.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/rymcol/swiftcron.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/3] Write sources
[2/3] Write swift-version-6F35C1178C84523A.txt
[4/7] Compiling PerfectThread Threading.swift
[5/7] Compiling PerfectThread Promise.swift
[6/7] Emitting module PerfectThread
[7/7] Compiling PerfectThread ThreadQueue.swift
[8/11] Compiling SwiftCron CronStorage.swift
[9/11] Compiling SwiftCron CronJob.swift
[10/11] Compiling SwiftCron Cron.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCron/Cron.swift:45:24: warning: capture of 'self' with non-sendable type 'Cron' in a `@Sendable` closure; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public class Cron {
   |              `- note: class 'Cron' does not conform to the 'Sendable' protocol
18 |     private var _cronStore: CronStore
19 |     private var _runningJobs: [CronJob]
   :
43 |     func run() {
44 |         queue.async {
45 |             for job in self._cronStore.jobs {
   |                        `- warning: capture of 'self' with non-sendable type 'Cron' in a `@Sendable` closure; this is an error in the Swift 6 language mode
46 |                 if job.allowsSimultaneious || (!job.allowsSimultaneious && !self._runningJobs.contains(job)) {
47 |                     if job.date <= Date() {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCron/Cron.swift:46:77: warning: implicit capture of 'self' requires that 'Cron' conforms to `Sendable`; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public class Cron {
   |              `- note: class 'Cron' does not conform to the 'Sendable' protocol
18 |     private var _cronStore: CronStore
19 |     private var _runningJobs: [CronJob]
   :
44 |         queue.async {
45 |             for job in self._cronStore.jobs {
46 |                 if job.allowsSimultaneious || (!job.allowsSimultaneious && !self._runningJobs.contains(job)) {
   |                                                                             `- warning: implicit capture of 'self' requires that 'Cron' conforms to `Sendable`; this is an error in the Swift 6 language mode
47 |                     if job.date <= Date() {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCron/Cron.swift:46:77: warning: implicit capture of 'self' requires that 'Cron' conforms to `Sendable`; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public class Cron {
   |              `- note: class 'Cron' does not conform to the 'Sendable' protocol
18 |     private var _cronStore: CronStore
19 |     private var _runningJobs: [CronJob]
   :
44 |         queue.async {
45 |             for job in self._cronStore.jobs {
46 |                 if job.allowsSimultaneious || (!job.allowsSimultaneious && !self._runningJobs.contains(job)) {
   |                                                                             `- warning: implicit capture of 'self' requires that 'Cron' conforms to `Sendable`; this is an error in the Swift 6 language mode
47 |                     if job.date <= Date() {
48 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCron/Cron.swift:50:29: warning: capture of 'self' with non-sendable type 'Cron' in an isolated closure; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public class Cron {
   |              `- note: class 'Cron' does not conform to the 'Sendable' protocol
18 |     private var _cronStore: CronStore
19 |     private var _runningJobs: [CronJob]
   :
48 |
49 |                         let _ = Promise() {
50 |                             self._runningJobs.append(job)
   |                             `- warning: capture of 'self' with non-sendable type 'Cron' in an isolated closure; this is an error in the Swift 6 language mode
51 |                             job.method()
52 |                             }.then() {_ in
/Users/admin/builder/spi-builder-workspace/Sources/SwiftCron/Cron.swift:53:33: warning: capture of 'self' with non-sendable type 'Cron' in an isolated closure; this is an error in the Swift 6 language mode
15 | #endif
16 |
17 | public class Cron {
   |              `- note: class 'Cron' does not conform to the 'Sendable' protocol
18 |     private var _cronStore: CronStore
19 |     private var _runningJobs: [CronJob]
   :
51 |                             job.method()
52 |                             }.then() {_ in
53 |                                 self._runningJobs = self._runningJobs.filter() { $0 != job }
   |                                 `- warning: capture of 'self' with non-sendable type 'Cron' in an isolated closure; this is an error in the Swift 6 language mode
54 |                         }
55 |
[11/11] Emitting module SwiftCron
Build complete! (22.49s)
Fetching https://github.com/PerfectlySoft/Perfect-Thread.git
[1/379] Fetching perfect-thread
Fetched https://github.com/PerfectlySoft/Perfect-Thread.git from cache (0.93s)
Computing version for https://github.com/PerfectlySoft/Perfect-Thread.git
Computed https://github.com/PerfectlySoft/Perfect-Thread.git at 3.0.7 (2.64s)
Creating working copy for https://github.com/PerfectlySoft/Perfect-Thread.git
Working copy of https://github.com/PerfectlySoft/Perfect-Thread.git resolved at 3.0.7
Build complete.
{
  "dependencies" : [
    {
      "identity" : "perfect-thread",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.2",
            "upper_bound" : "3.1.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/PerfectlySoft/Perfect-Thread.git"
    }
  ],
  "manifest_display_name" : "SwiftCron",
  "name" : "SwiftCron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCron",
      "targets" : [
        "SwiftCron"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftCronTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCronTests",
      "path" : "Tests/Swift-CronTests",
      "product_dependencies" : [
        "PerfectThread"
      ],
      "sources" : [
        "Swift_CronTests.swift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCron",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCron",
      "path" : "Sources/SwiftCron",
      "product_dependencies" : [
        "PerfectThread"
      ],
      "product_memberships" : [
        "SwiftCron"
      ],
      "sources" : [
        "Cron.swift",
        "CronJob.swift",
        "CronStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.