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 CardStack, reference master (33d7d1), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 22:42:33 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dadalar/SwiftUI-CardStackView.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/dadalar/SwiftUI-CardStackView
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 33d7d14 Merge pull request #14 from Eugene-Kugut/fix/card-stack-gesture-and-animation-issues
Cloned https://github.com/dadalar/SwiftUI-CardStackView.git
Revision (git rev-parse @):
33d7d1425407546045bac6e04cd7309a738c1ae3
SUCCESS checkout https://github.com/dadalar/SwiftUI-CardStackView.git at master
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git from cache
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (0.57s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.7.2 (1.22s)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.7.2
========================================
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": "swiftui-cardstackview",
      "name": "CardStack",
      "url": "https://github.com/dadalar/SwiftUI-CardStackView.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUI-CardStackView",
      "dependencies": [
        {
          "identity": "swift-snapshot-testing",
          "name": "swift-snapshot-testing",
          "url": "https://github.com/pointfreeco/swift-snapshot-testing.git",
          "version": "1.18.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-snapshot-testing",
          "dependencies": [
            {
              "identity": "swift-custom-dump",
              "name": "swift-custom-dump",
              "url": "https://github.com/pointfreeco/swift-custom-dump",
              "version": "1.3.3",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-custom-dump",
              "dependencies": [
                {
                  "identity": "xctest-dynamic-overlay",
                  "name": "xctest-dynamic-overlay",
                  "url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
                  "version": "1.5.2",
                  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
                  "dependencies": [
                  ]
                }
              ]
            },
            {
              "identity": "swift-syntax",
              "name": "swift-syntax",
              "url": "https://github.com/swiftlang/swift-syntax",
              "version": "601.0.1",
              "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
              "dependencies": [
              ]
            }
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/dadalar/SwiftUI-CardStackView.git
[1/197] Fetching swiftui-cardstackview
Fetched https://github.com/dadalar/SwiftUI-CardStackView.git from cache (1.17s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git from cache
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (0.48s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.3 (1.02s)
Fetching https://github.com/pointfreeco/swift-custom-dump from cache
Fetching https://github.com/swiftlang/swift-syntax from cache
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.43s)
Fetched https://github.com/swiftlang/swift-syntax from cache (1.08s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (1.63s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.44s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (1.19s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.53s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/dadalar/SwiftUI-CardStackView.git
Working copy of https://github.com/dadalar/SwiftUI-CardStackView.git resolved at master (33d7d14)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.3
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
warning: '.resolve-product-dependencies': dependency 'swiftui-cardstackview' is not used by any target
Found 1 product dependencies
  - swift-snapshot-testing
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/dadalar/SwiftUI-CardStackView.git
https://github.com/dadalar/SwiftUI-CardStackView.git
{
  "dependencies" : [
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.7.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing.git"
    }
  ],
  "manifest_display_name" : "CardStack",
  "name" : "CardStack",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "CardStack",
      "targets" : [
        "CardStack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CardStackTests",
      "module_type" : "SwiftTarget",
      "name" : "CardStackTests",
      "path" : "Tests/CardStackTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "CardStackTests.swift",
        "DirectionTests.swift",
        "SnapshotTestingHelper.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "CardStack"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CardStack",
      "module_type" : "SwiftTarget",
      "name" : "CardStack",
      "path" : "Sources/CardStack",
      "product_memberships" : [
        "CardStack"
      ],
      "sources" : [
        "CardStack.swift",
        "CardStackConfiguration.swift",
        "CardSwipeDirection.swift",
        "CardView.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/7] Compiling CardStack CardSwipeDirection.swift
[4/7] Compiling CardStack CardView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardView.swift:53:8: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
  2 | import Combine
  3 |
  4 | struct CardView<Direction, Content: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
  5 |   @Environment(\.cardStackConfiguration) private var configuration: CardStackConfiguration
  6 |   @State private var translation: CGSize = .zero
    :
 48 |   }
 49 |
 50 |   var body: some View {
    |       `- note: add @available attribute to enclosing property
 51 |     if #available(iOS 14.0, *) {
 52 |       cardView
 53 |       .onChange(of: isDragging) { newValue in
    |        |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
    |        `- note: add 'if #available' version check
 54 |         if !newValue && draggingState == .dragging {
 55 |           cancelDragging()
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardView.swift:51:32: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
  2 | import Combine
  3 |
  4 | struct CardView<Direction, Content: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
  5 |   @Environment(\.cardStackConfiguration) private var configuration: CardStackConfiguration
  6 |   @State private var translation: CGSize = .zero
    :
 48 |   }
 49 |
 50 |   var body: some View {
    |       `- note: add @available attribute to enclosing property
 51 |     if #available(iOS 14.0, *) {
    |                                |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
    |                                `- note: add 'if #available' version check
 52 |       cardView
 53 |       .onChange(of: isDragging) { newValue in
[5/7] Compiling CardStack CardStackConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStackConfiguration.swift:5:21: 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
 3 | public struct CardStackConfiguration: EnvironmentKey {
 4 |
 5 |   public static var defaultValue = CardStackConfiguration()
   |                     |- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |   let maxVisibleCards: Int
[6/7] Emitting module CardStack
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardStackConfiguration.swift:5:21: 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
 3 | public struct CardStackConfiguration: EnvironmentKey {
 4 |
 5 |   public static var defaultValue = CardStackConfiguration()
   |                     |- 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: add '@MainActor' to make static property 'defaultValue' part of global actor 'MainActor'
   |                     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |   let maxVisibleCards: Int
[7/7] Compiling CardStack CardStack.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/6] Compiling CardStack CardSwipeDirection.swift
[3/6] Compiling CardStack CardStackConfiguration.swift
[4/6] Compiling CardStack CardView.swift
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardView.swift:53:8: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
  2 | import Combine
  3 |
  4 | struct CardView<Direction, Content: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
  5 |   @Environment(\.cardStackConfiguration) private var configuration: CardStackConfiguration
  6 |   @State private var translation: CGSize = .zero
    :
 48 |   }
 49 |
 50 |   var body: some View {
    |       `- note: add @available attribute to enclosing property
 51 |     if #available(iOS 14.0, *) {
 52 |       cardView
 53 |       .onChange(of: isDragging) { newValue in
    |        |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
    |        `- note: add 'if #available' version check
 54 |         if !newValue && draggingState == .dragging {
 55 |           cancelDragging()
/Users/admin/builder/spi-builder-workspace/Sources/CardStack/CardView.swift:51:32: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
  2 | import Combine
  3 |
  4 | struct CardView<Direction, Content: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
  5 |   @Environment(\.cardStackConfiguration) private var configuration: CardStackConfiguration
  6 |   @State private var translation: CGSize = .zero
    :
 48 |   }
 49 |
 50 |   var body: some View {
    |       `- note: add @available attribute to enclosing property
 51 |     if #available(iOS 14.0, *) {
    |                                |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
    |                                `- note: add 'if #available' version check
 52 |       cardView
 53 |       .onChange(of: isDragging) { newValue in
[5/6] Emitting module CardStack
[6/6] Compiling CardStack CardStack.swift
BUILD FAILURE 6.1 macosSpm