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 FloatingButton, reference master (997780), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 10:38:55 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/FloatingButton.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/FloatingButton
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9977801 Update README.md
Cloned https://github.com/exyte/FloatingButton.git
Revision (git rev-parse @):
997780187dad081f9891576d654f7b2a672f6e04
SUCCESS checkout https://github.com/exyte/FloatingButton.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": "floatingbutton",
      "name": "FloatingButton",
      "url": "https://github.com/exyte/FloatingButton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/FloatingButton",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/exyte/FloatingButton.git
[8/374] Fetching floatingbutton
Fetched https://github.com/exyte/FloatingButton.git from cache (1.17s)
Creating working copy for https://github.com/exyte/FloatingButton.git
Working copy of https://github.com/exyte/FloatingButton.git resolved at master (9977801)
warning: '.resolve-product-dependencies': dependency 'floatingbutton' 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/exyte/FloatingButton.git
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Emitting module FloatingButton
/Users/admin/builder/spi-builder-workspace/Sources/FloatingButton/Utils.swift:45:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |     typealias Value = [CGSize]
44 |
45 |     static var defaultValue: Value = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'defaultValue' 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
46 |
47 |     static func reduce(value: inout Value, nextValue: () -> Value) {
[4/5] Compiling FloatingButton FloatingButton.swift
[5/5] Compiling FloatingButton Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/FloatingButton/Utils.swift:45:16: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
43 |     typealias Value = [CGSize]
44 |
45 |     static var defaultValue: Value = []
   |                |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: annotate 'defaultValue' 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
46 |
47 |     static func reduce(value: inout Value, nextValue: () -> Value) {
Build complete! (11.39s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "FloatingButton",
  "name" : "FloatingButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "FloatingButton",
      "targets" : [
        "FloatingButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FloatingButton",
      "module_type" : "SwiftTarget",
      "name" : "FloatingButton",
      "path" : "Sources/FloatingButton",
      "product_memberships" : [
        "FloatingButton"
      ],
      "sources" : [
        "FloatingButton.swift",
        "Utils.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.