Build Information
Failed to build CardStack, reference master (33d7d1
), with Swift 6.0 for macOS (SPM) on 11 Feb 2025 11:52:46 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
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
[1/12826] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.35s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.7.2 (0.59s)
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.0",
"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.1",
"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": "600.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.55s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git from cache
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (0.53s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.0 (0.42s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4535] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.01s)
[1/68350] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (3.72s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.45s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5198] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.94s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (0.62s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.1 (0.43s)
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.0
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.1
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/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/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
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.0
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.2.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-5BDAB9E9C0126B9D.txt
[3/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: 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
6 |
7 | let maxVisibleCards: Int
[4/7] Compiling CardStack CardStack.swift
[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: 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
6 |
7 | let maxVisibleCards: Int
[6/7] Compiling CardStack CardSwipeDirection.swift
[7/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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-5BDAB9E9C0126B9D.txt
[2/6] Compiling CardStack CardSwipeDirection.swift
[3/6] Compiling CardStack CardStackConfiguration.swift
[4/6] Compiling CardStack CardStack.swift
[5/6] Emitting module CardStack
[6/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
BUILD FAILURE 6.0 macosSpm