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 SunKit, reference 2.8.1 (086d34), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:23:49 UTC.

Swift 6 data race errors: 1

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.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SunKit-Swift/SunKit.git
Reference: 2.8.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SunKit-Swift/SunKit
 * tag               2.8.1      -> FETCH_HEAD
HEAD is now at 086d345 fix-wrong-solar-midnight (#53)
Cloned https://github.com/SunKit-Swift/SunKit.git
Revision (git rev-parse @):
086d345cd9886b037ae0af0db49fcaf849acb887
SUCCESS checkout https://github.com/SunKit-Swift/SunKit.git at 2.8.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/SunKit-Swift/SunKit.git
https://github.com/SunKit-Swift/SunKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SunKit",
  "name" : "SunKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SunKit",
      "targets" : [
        "SunKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SunKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SunKitTests",
      "path" : "Tests/SunKitTests",
      "sources" : [
        "UT_DMS.swift",
        "UT_EclipticCoordinates.swift",
        "UT_EquatorialCoordinates.swift",
        "UT_HMS.swift",
        "UT_HorizonCoordinates.swift",
        "UT_Sun.swift",
        "UT_Utils.swift"
      ],
      "target_dependencies" : [
        "SunKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SunKit",
      "module_type" : "SwiftTarget",
      "name" : "SunKit",
      "path" : "Sources/SunKit",
      "product_memberships" : [
        "SunKit"
      ],
      "sources" : [
        "Angle.swift",
        "DMS.swift",
        "EclipticCoordinates.swift",
        "EquatorialCoordinates.swift",
        "Extensions.swift",
        "HMS.swift",
        "HorizonCoordinates.swift",
        "Sun.swift",
        "SunElevationEvents.swift",
        "Utils.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/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/12] Compiling SunKit Extensions.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:1: warning: extension declares a conformance of imported type 'Date' to imported protocol 'Strideable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
20 |
21 | //It consents us too loop between two dates for n as interval time
22 | extension Date: Strideable {
   | |- warning: extension declares a conformance of imported type 'Date' to imported protocol 'Strideable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
23 |     public func distance(to other: Date) -> TimeInterval {
24 |         return other.timeIntervalSinceReferenceDate - self.timeIntervalSinceReferenceDate
[4/12] Compiling SunKit EclipticCoordinates.swift
[5/12] Compiling SunKit HMS.swift
[6/12] Compiling SunKit HorizonCoordinates.swift
[7/12] Compiling SunKit EquatorialCoordinates.swift
[8/12] Compiling SunKit SunElevationEvents.swift
[9/12] Compiling SunKit Sun.swift
[10/12] Compiling SunKit Angle.swift
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Angle.swift:24:23: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | public struct Angle: Equatable, Hashable, Codable, Sendable {
23 |
24 |     public static var zero: Angle = .init()
   |                       |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     public init() {
[11/12] Emitting module SunKit
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Angle.swift:24:23: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
22 | public struct Angle: Equatable, Hashable, Codable, Sendable {
23 |
24 |     public static var zero: Angle = .init()
   |                       |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: add '@MainActor' to make static property 'zero' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 |
26 |     public init() {
/Users/admin/builder/spi-builder-workspace/Sources/SunKit/Extensions.swift:22:1: warning: extension declares a conformance of imported type 'Date' to imported protocol 'Strideable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
20 |
21 | //It consents us too loop between two dates for n as interval time
22 | extension Date: Strideable {
   | |- warning: extension declares a conformance of imported type 'Date' to imported protocol 'Strideable'; this will not behave correctly if the owners of 'Foundation' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
23 |     public func distance(to other: Date) -> TimeInterval {
24 |         return other.timeIntervalSinceReferenceDate - self.timeIntervalSinceReferenceDate
[12/12] Compiling SunKit DMS.swift
[13/13] Compiling SunKit Utils.swift
Build complete! (6.26s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SunKit",
  "name" : "SunKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "SunKit",
      "targets" : [
        "SunKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SunKitTests",
      "module_type" : "SwiftTarget",
      "name" : "SunKitTests",
      "path" : "Tests/SunKitTests",
      "sources" : [
        "UT_DMS.swift",
        "UT_EclipticCoordinates.swift",
        "UT_EquatorialCoordinates.swift",
        "UT_HMS.swift",
        "UT_HorizonCoordinates.swift",
        "UT_Sun.swift",
        "UT_Utils.swift"
      ],
      "target_dependencies" : [
        "SunKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SunKit",
      "module_type" : "SwiftTarget",
      "name" : "SunKit",
      "path" : "Sources/SunKit",
      "product_memberships" : [
        "SunKit"
      ],
      "sources" : [
        "Angle.swift",
        "DMS.swift",
        "EclipticCoordinates.swift",
        "EquatorialCoordinates.swift",
        "Extensions.swift",
        "HMS.swift",
        "HorizonCoordinates.swift",
        "Sun.swift",
        "SunElevationEvents.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.