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

Failed to build Animatable, reference 0.2.0 (4ba963), with Swift 6.0 for macOS (SPM) on 1 Dec 2024 04:08:55 UTC.

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/c-villain/Animatable.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c-villain/Animatable
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at 4ba9631 no message
Cloned https://github.com/c-villain/Animatable.git
Revision (git rev-parse @):
4ba96313d4fde8ed5aae65992da42a84bddab5d7
SUCCESS checkout https://github.com/c-villain/Animatable.git at 0.2.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": "animatable",
      "name": "Animatable",
      "url": "https://github.com/c-villain/Animatable.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Animatable",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/c-villain/Animatable.git
[1/230] Fetching animatable
Fetched https://github.com/c-villain/Animatable.git from cache (1.36s)
Creating working copy for https://github.com/c-villain/Animatable.git
Working copy of https://github.com/c-villain/Animatable.git resolved at 0.2.0 (4ba9631)
warning: '.resolve-product-dependencies': dependency 'animatable' 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/c-villain/Animatable.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Animatable",
  "name" : "Animatable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Animatable",
      "targets" : [
        "Animatable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Animatable",
      "module_type" : "SwiftTarget",
      "name" : "Animatable",
      "path" : "Sources/Animatable",
      "product_memberships" : [
        "Animatable"
      ],
      "sources" : [
        "Animatable.swift",
        "Core/CoveredModifier.swift",
        "Core/ValueChangedModifier.swift",
        "Modifiers/Blinking.swift",
        "Modifiers/Explosion.swift",
        "Modifiers/Fireworks.swift",
        "Modifiers/LiveComments.swift",
        "Modifiers/Rotating.swift",
        "Modifiers/Scaling.swift",
        "Modifiers/Shimmerable.swift",
        "Modifiers/Tweaking.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
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/13] Compiling Animatable Rotating.swift
[4/13] Compiling Animatable Scaling.swift
[5/13] Compiling Animatable LiveComments.swift
[6/13] Compiling Animatable Shimmerable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Shimmerable.swift:11:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ShimmerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct ShimmerConfiguration {
   |               `- note: consider making struct 'ShimmerConfiguration' conform to the 'Sendable' protocol
 4 |
 5 |     public let gradient: Gradient
   :
 9 |     public let opacity: Double
10 |
11 |     public static let `default` = ShimmerConfiguration(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ShimmerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
12 |         gradient: Gradient(stops: [
13 |             .init(color: .clear, location: 0),
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Shimmerable.swift:40:18: error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
23 | }
24 |
25 | struct ShimmeringView<Content: View>: View {
   |        `- note: add @available attribute to enclosing generic struct
26 |     private let content: () -> Content
27 |     private let configuration: ShimmerConfiguration
   :
35 |     }
36 |
37 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
38 |         if #available(iOS 15, *) {
39 |             content()
40 |                 .overlay { shimmer }
   |                  |- error: 'overlay(alignment:content:)' is only available in macOS 12.0 or newer
   |                  `- note: add 'if #available' version check
41 |         } else {
42 |             content()
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Shimmerable.swift:38:34: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
23 | }
24 |
25 | struct ShimmeringView<Content: View>: View {
   |        `- note: add @available attribute to enclosing generic struct
26 |     private let content: () -> Content
27 |     private let configuration: ShimmerConfiguration
   :
35 |     }
36 |
37 |     var body: some View {
   |         `- note: add @available attribute to enclosing property
38 |         if #available(iOS 15, *) {
   |                                  |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
   |                                  `- note: add 'if #available' version check
39 |             content()
40 |                 .overlay { shimmer }
[7/14] Compiling Animatable Fireworks.swift
[8/14] Compiling Animatable Explosion.swift
[9/14] Compiling Animatable ValueChangedModifier.swift
[10/14] Compiling Animatable Blinking.swift
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Blinking.swift:8:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BlinkConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct BlinkConfiguration {
   |               `- note: consider making struct 'BlinkConfiguration' conform to the 'Sendable' protocol
 4 |
 5 |     public let duration: TimeInterval
 6 |     public let opacity: Double
 7 |
 8 |     public static let `default` = BlinkConfiguration(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BlinkConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
 9 |         duration: 1.0,
10 |         opacity: 0.2
[11/14] Compiling Animatable Animatable.swift
[12/14] Compiling Animatable CoveredModifier.swift
[13/14] Emitting module Animatable
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Blinking.swift:8:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BlinkConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct BlinkConfiguration {
   |               `- note: consider making struct 'BlinkConfiguration' conform to the 'Sendable' protocol
 4 |
 5 |     public let duration: TimeInterval
 6 |     public let opacity: Double
 7 |
 8 |     public static let `default` = BlinkConfiguration(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'BlinkConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
 9 |         duration: 1.0,
10 |         opacity: 0.2
/Users/admin/builder/spi-builder-workspace/Sources/Animatable/Modifiers/Shimmerable.swift:11:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ShimmerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | import SwiftUI
 2 |
 3 | public struct ShimmerConfiguration {
   |               `- note: consider making struct 'ShimmerConfiguration' conform to the 'Sendable' protocol
 4 |
 5 |     public let gradient: Gradient
   :
 9 |     public let opacity: Double
10 |
11 |     public static let `default` = ShimmerConfiguration(
   |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'ShimmerConfiguration' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'default' 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
12 |         gradient: Gradient(stops: [
13 |             .init(color: .clear, location: 0),
[14/14] Compiling Animatable Tweaking.swift
BUILD FAILURE 6.0 macosSpm