The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Successful build of SlideButton, reference main (5eaceb), with Swift 6.1 for macOS (SPM) on 28 Apr 2025 03:05:29 UTC.

Swift 6 data race errors: 2

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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/no-comment/SlideButton.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/no-comment/SlideButton
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 5eacebb Fixes RTL support (#5)
Cloned https://github.com/no-comment/SlideButton.git
Revision (git rev-parse @):
5eacebba4d7deeb693592bc9a62ab2d2181e133b
SUCCESS checkout https://github.com/no-comment/SlideButton.git at main
Fetching https://github.com/nicklockwood/SwiftFormat
[1/46730] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (14.45s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.52.8 (15.42s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.52.8
========================================
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": "slidebutton",
      "name": "SlideButton",
      "url": "https://github.com/no-comment/SlideButton.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SlideButton",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/no-comment/SlideButton.git
[1/228] Fetching slidebutton
Fetched https://github.com/no-comment/SlideButton.git from cache (0.59s)
Creating working copy for https://github.com/no-comment/SlideButton.git
Working copy of https://github.com/no-comment/SlideButton.git resolved at main (5eacebb)
warning: '.resolve-product-dependencies': dependency 'slidebutton' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/no-comment/SlideButton.git
https://github.com/no-comment/SlideButton.git
{
  "dependencies" : [
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.50.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    }
  ],
  "manifest_display_name" : "SlideButton",
  "name" : "SlideButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SlideButton",
      "targets" : [
        "SlideButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SlideButton",
      "module_type" : "SwiftTarget",
      "name" : "SlideButton",
      "path" : "Sources/SlideButton",
      "product_memberships" : [
        "SlideButton"
      ],
      "sources" : [
        "ShimmerEffect.swift",
        "SlideButton.swift",
        "SlideButtonStyling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
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
[1/1] Compiling plugin SwiftFormatPlugin
Building for debugging...
[1/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.txt
[4/7] Compiling SlideButton SlideButtonStyling.swift
/Users/admin/builder/spi-builder-workspace/Sources/SlideButton/SlideButtonStyling.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlideButtonStyling' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | ///  A struct that defines the styling options for a `SlideButton`.
  9 | public struct SlideButtonStyling {
    |               `- note: consider making struct 'SlideButtonStyling' conform to the 'Sendable' protocol
 10 |     /// Initializes a new `Styling` instance with the given options.
 11 |     /// - Parameters:
    :
 76 |     var textShimmers: Bool
 77 |
 78 |     public static let `default`: Self = .init()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlideButtonStyling' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 | }
 80 |
[5/7] Compiling SlideButton SlideButton.swift
[6/7] Emitting module SlideButton
/Users/admin/builder/spi-builder-workspace/Sources/SlideButton/ShimmerEffect.swift:26:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated requirement from protocol 'Animatable'; this is an error in the Swift 6 language mode
24 |     var phase: CGFloat = 0
25 |
26 |     var animatableData: CGFloat {
   |         `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated requirement from protocol 'Animatable'; this is an error in the Swift 6 language mode
27 |         get { phase }
28 |         set { phase = newValue }
/Users/admin/builder/spi-builder-workspace/Sources/SlideButton/SlideButtonStyling.swift:78:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlideButtonStyling' may have shared mutable state; this is an error in the Swift 6 language mode
  7 |
  8 | ///  A struct that defines the styling options for a `SlideButton`.
  9 | public struct SlideButtonStyling {
    |               `- note: consider making struct 'SlideButtonStyling' conform to the 'Sendable' protocol
 10 |     /// Initializes a new `Styling` instance with the given options.
 11 |     /// - Parameters:
    :
 76 |     var textShimmers: Bool
 77 |
 78 |     public static let `default`: Self = .init()
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'SlideButtonStyling' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: add '@MainActor' to make static property 'default' part of global actor 'MainActor'
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 79 | }
 80 |
[7/7] Compiling SlideButton ShimmerEffect.swift
/Users/admin/builder/spi-builder-workspace/Sources/SlideButton/ShimmerEffect.swift:26:9: warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated requirement from protocol 'Animatable'; this is an error in the Swift 6 language mode
24 |     var phase: CGFloat = 0
25 |
26 |     var animatableData: CGFloat {
   |         `- warning: main actor-isolated property 'animatableData' cannot be used to satisfy nonisolated requirement from protocol 'Animatable'; this is an error in the Swift 6 language mode
27 |         get { phase }
28 |         set { phase = newValue }
Build complete! (9.83s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.50.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    }
  ],
  "manifest_display_name" : "SlideButton",
  "name" : "SlideButton",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "SlideButton",
      "targets" : [
        "SlideButton"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SlideButton",
      "module_type" : "SwiftTarget",
      "name" : "SlideButton",
      "path" : "Sources/SlideButton",
      "product_memberships" : [
        "SlideButton"
      ],
      "sources" : [
        "ShimmerEffect.swift",
        "SlideButton.swift",
        "SlideButtonStyling.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.