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 1.3.0 (cf77c2), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 10:38:09 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: 1.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/exyte/FloatingButton
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at cf77c2f Fix naming
Cloned https://github.com/exyte/FloatingButton.git
Revision (git rev-parse @):
cf77c2f124df1423d90a9a1985e9b9ccfa4b9b3e
SUCCESS checkout https://github.com/exyte/FloatingButton.git at 1.3.0
========================================
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
[1/374] Fetching floatingbutton
Fetched https://github.com/exyte/FloatingButton.git from cache (1.15s)
Creating working copy for https://github.com/exyte/FloatingButton.git
Working copy of https://github.com/exyte/FloatingButton.git resolved at 1.3.0 (cf77c2f)
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] 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) {
[4/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) {
[5/5] Compiling FloatingButton FloatingButton.swift
Build complete! (11.78s)
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.