The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Kronos, reference main (543cae), with Swift 6.1 for macOS (SPM) on 12 Jun 2025 23:27:57 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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/MobileNativeFoundation/Kronos.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/MobileNativeFoundation/Kronos
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 543cae0 Fix Package.swift typo (#120)
Cloned https://github.com/MobileNativeFoundation/Kronos.git
Revision (git rev-parse @):
543cae037bfc13a7d722e233a92a212b42d9e750
SUCCESS checkout https://github.com/MobileNativeFoundation/Kronos.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": "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.75s)
Creating working copy for https://github.com/MobileNativeFoundation/Kronos.git
Working copy of https://github.com/MobileNativeFoundation/Kronos.git resolved at main (543cae0)
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] Write sources
[1/3] Copying PrivacyInfo.xcprivacy
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/14] Compiling Kronos NTPProtocol.swift
[5/15] Compiling Kronos TimeStorage.swift
[6/15] Compiling Kronos InternetAddress.swift
[7/15] Compiling Kronos TimeFreeze.swift
[8/15] Compiling Kronos Data+Bytes.swift
[9/15] Compiling Kronos NTPClient.swift
[10/15] Compiling Kronos NTPPacket.swift
[11/15] 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)
[12/15] 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)
[13/15] 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)
[14/15] Compiling Kronos NSTimer+ClosureKit.swift
[15/15] Compiling Kronos resource_bundle_accessor.swift
Build complete! (4.98s)
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.