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 HorizonDefaults, reference master (ca7fdd), with Swift 6.0 for macOS (SPM) on 2 Dec 2024 07:25:21 UTC.

Swift 6 data race errors: 1

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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Sam-Spencer/HorizonDefaults.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/Sam-Spencer/HorizonDefaults
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ca7fddf Fix macOS build, logging, and Swift 6
Cloned https://github.com/Sam-Spencer/HorizonDefaults.git
Revision (git rev-parse @):
ca7fddfa79d4001b02697665d5fc24aa92111ede
SUCCESS checkout https://github.com/Sam-Spencer/HorizonDefaults.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": "horizondefaults",
      "name": "HorizonDefaults",
      "url": "https://github.com/Sam-Spencer/HorizonDefaults.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/HorizonDefaults",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/Sam-Spencer/HorizonDefaults.git
[4/60] Fetching horizondefaults
Fetched https://github.com/Sam-Spencer/HorizonDefaults.git from cache (0.65s)
Creating working copy for https://github.com/Sam-Spencer/HorizonDefaults.git
Working copy of https://github.com/Sam-Spencer/HorizonDefaults.git resolved at master (ca7fddf)
warning: '.resolve-product-dependencies': dependency 'horizondefaults' 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/Sam-Spencer/HorizonDefaults.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HorizonDefaults",
  "name" : "HorizonDefaults",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "HorizonDefaults",
      "targets" : [
        "HorizonDefaults"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HorizonDefaultsTests",
      "module_type" : "SwiftTarget",
      "name" : "HorizonDefaultsTests",
      "path" : "Tests/HorizonDefaultsTests",
      "sources" : [
        "HorizonDefaultsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HorizonDefaults"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HorizonDefaults",
      "module_type" : "SwiftTarget",
      "name" : "HorizonDefaults",
      "path" : "Sources/HorizonDefaults",
      "product_memberships" : [
        "HorizonDefaults"
      ],
      "sources" : [
        "HorizonDefaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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 -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--7754E27361AE5C74.txt
[3/4] Emitting module HorizonDefaults
/Users/admin/builder/spi-builder-workspace/Sources/HorizonDefaults/HorizonDefaults.swift:25:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'HorizonDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | ///
 13 | @available(iOS 10.0, tvOS 10.0, macOS 11.0, *)
 14 | public class HorizonDefaults: NSObject {
    |              `- note: class 'HorizonDefaults' does not conform to the 'Sendable' protocol
 15 |
 16 |     /// Set to `true` to enable debug statements printed to the console.
    :
 23 |     /// Generic default syncronization object.
 24 |     ///
 25 |     public static let standard: HorizonDefaults = HorizonDefaults()
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'HorizonDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'standard' 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
 26 |
 27 |     /// Acceptable keys to sync across iCloud.
[4/4] Compiling HorizonDefaults HorizonDefaults.swift
/Users/admin/builder/spi-builder-workspace/Sources/HorizonDefaults/HorizonDefaults.swift:25:23: warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'HorizonDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
 12 | ///
 13 | @available(iOS 10.0, tvOS 10.0, macOS 11.0, *)
 14 | public class HorizonDefaults: NSObject {
    |              `- note: class 'HorizonDefaults' does not conform to the 'Sendable' protocol
 15 |
 16 |     /// Set to `true` to enable debug statements printed to the console.
    :
 23 |     /// Generic default syncronization object.
 24 |     ///
 25 |     public static let standard: HorizonDefaults = HorizonDefaults()
    |                       |- warning: static property 'standard' is not concurrency-safe because non-'Sendable' type 'HorizonDefaults' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'standard' 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
 26 |
 27 |     /// Acceptable keys to sync across iCloud.
/Users/admin/builder/spi-builder-workspace/Sources/HorizonDefaults/HorizonDefaults.swift:120:30: warning: capture of 'self' with non-sendable type 'HorizonDefaults?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 12 | ///
 13 | @available(iOS 10.0, tvOS 10.0, macOS 11.0, *)
 14 | public class HorizonDefaults: NSObject {
    |              `- note: class 'HorizonDefaults' does not conform to the 'Sendable' protocol
 15 |
 16 |     /// Set to `true` to enable debug statements printed to the console.
    :
118 |     deinit {
119 |         backgroundQueue.async { [weak self] in
120 |             guard let self = self else { return }
    |                              `- warning: capture of 'self' with non-sendable type 'HorizonDefaults?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 |             NotificationCenter.default.removeObserver(self, name: UserDefaults.didChangeNotification, object: nil)
122 |             NotificationCenter.default.removeObserver(self, name: NSUbiquitousKeyValueStore.didChangeExternallyNotification, object: nil)
Build complete! (5.62s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "HorizonDefaults",
  "name" : "HorizonDefaults",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "HorizonDefaults",
      "targets" : [
        "HorizonDefaults"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HorizonDefaultsTests",
      "module_type" : "SwiftTarget",
      "name" : "HorizonDefaultsTests",
      "path" : "Tests/HorizonDefaultsTests",
      "sources" : [
        "HorizonDefaultsTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "HorizonDefaults"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HorizonDefaults",
      "module_type" : "SwiftTarget",
      "name" : "HorizonDefaults",
      "path" : "Sources/HorizonDefaults",
      "product_memberships" : [
        "HorizonDefaults"
      ],
      "sources" : [
        "HorizonDefaults.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.