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 main (a18a6f), with Swift 6.1 for macOS (SPM) on 30 Apr 2025 09:23:57 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SunKit-Swift/SunKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a18a6f7 Created SunKit.yml (#56)
Cloned https://github.com/SunKit-Swift/SunKit.git
Revision (git rev-parse @):
a18a6f780770680f4f2ffe3488a1f3b335ec5ff6
SUCCESS checkout https://github.com/SunKit-Swift/SunKit.git at main
========================================
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 Sun.swift
[4/12] Compiling SunKit Extensions.swift
[5/12] Compiling SunKit EclipticCoordinates.swift
[6/12] Compiling SunKit HorizonCoordinates.swift
[7/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() {
[8/12] Compiling SunKit HMS.swift
[9/12] Compiling SunKit SunElevationEvents.swift
[10/12] Compiling SunKit DMS.swift
[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() {
[12/12] Compiling SunKit EquatorialCoordinates.swift
[13/13] Compiling SunKit Utils.swift
Build complete! (5.79s)
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.