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 Schedule, reference master (e388fc), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 08:42:08 UTC.

Swift 6 data race errors: 2

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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/luoxiu/Schedule.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/luoxiu/Schedule
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e388fca Merge branch 'master' of https://github.com/luoxiu/Schedule
Cloned https://github.com/luoxiu/Schedule.git
Revision (git rev-parse @):
e388fcab1d870f32c0359a414fda81b8e81b98c9
SUCCESS checkout https://github.com/luoxiu/Schedule.git at master
========================================
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": "schedule",
      "name": "Schedule",
      "url": "https://github.com/luoxiu/Schedule.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Schedule",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/luoxiu/Schedule.git
[1/1448] Fetching schedule
Fetched https://github.com/luoxiu/Schedule.git from cache (1.24s)
Creating working copy for https://github.com/luoxiu/Schedule.git
Working copy of https://github.com/luoxiu/Schedule.git resolved at master (e388fca)
warning: '.resolve-product-dependencies': dependency 'schedule' 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/luoxiu/Schedule.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/14] Compiling Schedule Task.swift
[4/15] Compiling Schedule RunLoopTask.swift
[5/15] Compiling Schedule Time.swift
[6/15] Compiling Schedule TaskCenter.swift
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/TaskCenter.swift:28:13: warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | }
 27 |
 28 | private let _default = TaskCenter()
    |             |- warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate '_default' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |
 30 | /// A task center that enables batch operation.
 31 | open class TaskCenter {
    |            `- note: class 'TaskCenter' does not conform to the 'Sendable' protocol
 32 |
 33 |     private let lock = NSLock()
[7/15] Compiling Schedule Monthday.swift
[8/15] Emitting module Schedule
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/Period.swift:45:24: warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     private static let quantifiers: Atomic<[String: Int]> = Atomic([
    |                        |- warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'quantifiers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |         "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6,
 47 |         "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/Atomic.swift:4:13: note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 2 |
 3 | /// An atomic box that can read and write the underlying value atomically.
 4 | final class Atomic<T> {
   |             `- note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 5 |
 6 |     private var val: T
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/TaskCenter.swift:28:13: warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
 26 | }
 27 |
 28 | private let _default = TaskCenter()
    |             |- warning: let '_default' is not concurrency-safe because non-'Sendable' type 'TaskCenter' may have shared mutable state; this is an error in the Swift 6 language mode
    |             |- note: annotate '_default' with '@MainActor' if property should only be accessed from the main actor
    |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |
 30 | /// A task center that enables batch operation.
 31 | open class TaskCenter {
    |            `- note: class 'TaskCenter' does not conform to the 'Sendable' protocol
 32 |
 33 |     private let lock = NSLock()
[9/15] Compiling Schedule Plan.swift
[10/15] Compiling Schedule Extensions.swift
[11/15] Compiling Schedule Interval.swift
[12/15] Compiling Schedule Atomic.swift
[13/15] Compiling Schedule Bag.swift
[14/15] Compiling Schedule Period.swift
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/Period.swift:45:24: warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
 43 |     }
 44 |
 45 |     private static let quantifiers: Atomic<[String: Int]> = Atomic([
    |                        |- warning: static property 'quantifiers' is not concurrency-safe because non-'Sendable' type 'Atomic<[String : Int]>' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: annotate 'quantifiers' with '@MainActor' if property should only be accessed from the main actor
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 46 |         "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6,
 47 |         "seven": 7, "eight": 8, "nine": 9, "ten": 10, "eleven": 11, "twelve": 12
/Users/admin/builder/spi-builder-workspace/Sources/Schedule/Atomic.swift:4:13: note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 2 |
 3 | /// An atomic box that can read and write the underlying value atomically.
 4 | final class Atomic<T> {
   |             `- note: generic class 'Atomic' does not conform to the 'Sendable' protocol
 5 |
 6 |     private var val: T
[15/15] Compiling Schedule Weekday.swift
Build complete! (14.44s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Schedule",
  "name" : "Schedule",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.11"
    },
    {
      "name" : "ios",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "9.0"
    },
    {
      "name" : "watchos",
      "version" : "2.0"
    }
  ],
  "products" : [
    {
      "name" : "Schedule",
      "targets" : [
        "Schedule"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "ScheduleTests",
      "module_type" : "SwiftTarget",
      "name" : "ScheduleTests",
      "path" : "Tests/ScheduleTests",
      "sources" : [
        "AtomicTests.swift",
        "BagTests.swift",
        "ExtensionsTests.swift",
        "Helpers.swift",
        "IntervalTests.swift",
        "MonthdayTests.swift",
        "PeriodTests.swift",
        "PlanTests.swift",
        "TaskCenterTests.swift",
        "TaskTests.swift",
        "TimeTests.swift",
        "WeekdayTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Schedule"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Schedule",
      "module_type" : "SwiftTarget",
      "name" : "Schedule",
      "path" : "Sources/Schedule",
      "product_memberships" : [
        "Schedule"
      ],
      "sources" : [
        "Atomic.swift",
        "Bag.swift",
        "Extensions.swift",
        "Interval.swift",
        "Monthday.swift",
        "Period.swift",
        "Plan.swift",
        "RunLoopTask.swift",
        "Task.swift",
        "TaskCenter.swift",
        "Time.swift",
        "Weekday.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.