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 Kronos, reference 4.3.1 (f33182), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 21:34:14 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.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.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MobileNativeFoundation/Kronos.git
Reference: 4.3.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MobileNativeFoundation/Kronos
 * tag               4.3.1      -> FETCH_HEAD
HEAD is now at f331821 Include PrivacyInfo.xcprivacy manifest on Krono's target from Kronos.xcodeproj (#117)
Cloned https://github.com/MobileNativeFoundation/Kronos.git
Revision (git rev-parse @):
f331821314f9b35867a18c5c8fc2f918536d79ac
SUCCESS checkout https://github.com/MobileNativeFoundation/Kronos.git at 4.3.1
========================================
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": "kronos",
      "name": "Kronos",
      "url": "https://github.com/MobileNativeFoundation/Kronos.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Kronos",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/MobileNativeFoundation/Kronos.git
[1/1179] Fetching kronos
Fetched https://github.com/MobileNativeFoundation/Kronos.git from cache (0.77s)
Creating working copy for https://github.com/MobileNativeFoundation/Kronos.git
Working copy of https://github.com/MobileNativeFoundation/Kronos.git resolved at 4.3.1 (f331821)
warning: '.resolve-product-dependencies': dependency 'kronos' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/MobileNativeFoundation/Kronos.git
https://github.com/MobileNativeFoundation/Kronos.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Kronos",
  "name" : "Kronos",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Kronos",
      "targets" : [
        "Kronos"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KronosTests",
      "module_type" : "SwiftTarget",
      "name" : "KronosTests",
      "path" : "Tests/KronosTests",
      "sources" : [
        "ClockTests.swift",
        "DNSResolverTests.swift",
        "NTPClientTests.swift",
        "NTPPacketTests.swift",
        "TimeStorageTests.swift"
      ],
      "target_dependencies" : [
        "Kronos"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Kronos",
      "module_type" : "SwiftTarget",
      "name" : "Kronos",
      "path" : "Sources",
      "product_memberships" : [
        "Kronos"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Clock.swift",
        "DNSResolver.swift",
        "Data+Bytes.swift",
        "InternetAddress.swift",
        "NSTimer+ClosureKit.swift",
        "NTPClient.swift",
        "NTPPacket.swift",
        "NTPProtocol.swift",
        "TimeFreeze.swift",
        "TimeStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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/3] Copying PrivacyInfo.xcprivacy
[1/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/14] Compiling Kronos TimeFreeze.swift
[5/14] Compiling Kronos NTPPacket.swift
[6/14] Compiling Kronos TimeStorage.swift
[7/14] Compiling Kronos NTPClient.swift
[8/14] Compiling Kronos InternetAddress.swift
[9/14] Compiling Kronos Clock.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
[10/14] Compiling Kronos DNSResolver.swift
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
[11/14] Compiling Kronos NSTimer+ClosureKit.swift
[12/14] Emitting module Kronos
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:28:24: warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 26 | /// ```
 27 | public struct Clock {
 28 |     private static var stableTime: TimeFreeze? {
    |                        |- warning: static property 'stableTime' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'stableTime' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'stableTime' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 29 |         didSet {
 30 |             self.storage.stableTime = self.stableTime
/Users/admin/builder/spi-builder-workspace/Sources/Clock.swift:36:23: warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |     /// Determines where the most current stable time is stored. Use TimeStoragePolicy.appGroup to share
 35 |     /// between your app and an extension.
 36 |     public static var storage = TimeStorage(storagePolicy: .standard)
    |                       |- warning: static property 'storage' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'storage' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: add '@MainActor' to make static property 'storage' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 |     /// The most accurate timestamp that we have so far (nil if no synchronization was done yet)
[13/14] Compiling Kronos Data+Bytes.swift
[14/14] Compiling Kronos NTPProtocol.swift
[15/15] Compiling Kronos resource_bundle_accessor.swift
Build complete! (6.01s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Kronos",
  "name" : "Kronos",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Kronos",
      "targets" : [
        "Kronos"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KronosTests",
      "module_type" : "SwiftTarget",
      "name" : "KronosTests",
      "path" : "Tests/KronosTests",
      "sources" : [
        "ClockTests.swift",
        "DNSResolverTests.swift",
        "NTPClientTests.swift",
        "NTPPacketTests.swift",
        "TimeStorageTests.swift"
      ],
      "target_dependencies" : [
        "Kronos"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Kronos",
      "module_type" : "SwiftTarget",
      "name" : "Kronos",
      "path" : "Sources",
      "product_memberships" : [
        "Kronos"
      ],
      "resources" : [
        {
          "path" : "/Users/admin/builder/spi-builder-workspace/Sources/PrivacyInfo.xcprivacy",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Clock.swift",
        "DNSResolver.swift",
        "Data+Bytes.swift",
        "InternetAddress.swift",
        "NSTimer+ClosureKit.swift",
        "NTPClient.swift",
        "NTPPacket.swift",
        "NTPProtocol.swift",
        "TimeFreeze.swift",
        "TimeStorage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.