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 AnimationStack, reference main (096fd2), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 18:29:36 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlorianHubl/AnimationStack.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/FlorianHubl/AnimationStack
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 096fd21 updated
Cloned https://github.com/FlorianHubl/AnimationStack.git
Revision (git rev-parse @):
096fd211323e9231b713b0dd2144cb542f16eb13
SUCCESS checkout https://github.com/FlorianHubl/AnimationStack.git at main
========================================
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": "animationstack",
      "name": "AnimationStack",
      "url": "https://github.com/FlorianHubl/AnimationStack.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AnimationStack",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/FlorianHubl/AnimationStack.git
[1/40] Fetching animationstack
Fetched https://github.com/FlorianHubl/AnimationStack.git from cache (1.36s)
Creating working copy for https://github.com/FlorianHubl/AnimationStack.git
Working copy of https://github.com/FlorianHubl/AnimationStack.git resolved at main (096fd21)
warning: '.resolve-product-dependencies': dependency 'animationstack' 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/FlorianHubl/AnimationStack.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/6] Compiling AnimationStack TupleViewExtention.swift
[4/6] Compiling AnimationStack AnimationStack.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/AnimationStack.swift:79:13: warning: main actor-isolated property 'animations' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
 8 |     private let views: [AnyView]
 9 |
10 |     @State private var animations: [Bool]
   |                        `- note: mutation of this property is only permitted within the actor
11 |
12 |     let delay: Double
   :
77 |         guard index < animations.count else {return}
78 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
79 |             animations[index] = true
   |             `- warning: main actor-isolated property 'animations' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
80 |             index += 1
81 |             start()
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/AnimationStack.swift:79:24: warning: main actor-isolated property 'index' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
65 |     }
66 |
67 |     @State private var index = 0
   |                        `- note: property declared here
68 |
69 |     let opacity: Bool
   :
77 |         guard index < animations.count else {return}
78 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
79 |             animations[index] = true
   |                        `- warning: main actor-isolated property 'index' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
80 |             index += 1
81 |             start()
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/AnimationStack.swift:80:13: warning: main actor-isolated property 'index' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
65 |     }
66 |
67 |     @State private var index = 0
   |                        `- note: mutation of this property is only permitted within the actor
68 |
69 |     let opacity: Bool
   :
78 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
79 |             animations[index] = true
80 |             index += 1
   |             `- warning: main actor-isolated property 'index' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
81 |             start()
82 |         }
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/AnimationStack.swift:81:13: warning: call to main actor-isolated instance method 'start()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
74 |     let animation: Animation
75 |
76 |     private func start() {
   |                  `- note: calls to instance method 'start()' from outside of its actor context are implicitly asynchronous
77 |         guard index < animations.count else {return}
78 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
79 |             animations[index] = true
80 |             index += 1
81 |             start()
   |             `- warning: call to main actor-isolated instance method 'start()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
82 |         }
83 |     }
[5/6] Emitting module AnimationStack
[6/6] Compiling AnimationStack ForEachAnimation.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/ForEachAnimation.swift:46:13: warning: main actor-isolated property 'animations' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
34 |     }
35 |
36 |     @State private var animations: [Bool]
   |                        `- note: mutation of this property is only permitted within the actor
37 |
38 |     private func start() {
   :
44 |         }
45 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
46 |             animations[index] = true
   |             `- warning: main actor-isolated property 'animations' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
47 |             index += 1
48 |             start()
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/ForEachAnimation.swift:46:24: warning: main actor-isolated property 'index' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
44 |         }
45 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
46 |             animations[index] = true
   |                        `- warning: main actor-isolated property 'index' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
47 |             index += 1
48 |             start()
   :
50 |     }
51 |
52 |     @State private var index = 0
   |                        `- note: property declared here
53 |
54 |     let opacity: Bool
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/ForEachAnimation.swift:47:13: warning: main actor-isolated property 'index' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
45 |         Timer.scheduledTimer(withTimeInterval: delay, repeats: false) { _ in
46 |             animations[index] = true
47 |             index += 1
   |             `- warning: main actor-isolated property 'index' can not be mutated from a Sendable closure; this is an error in the Swift 6 language mode
48 |             start()
49 |         }
50 |     }
51 |
52 |     @State private var index = 0
   |                        `- note: mutation of this property is only permitted within the actor
53 |
54 |     let opacity: Bool
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/ForEachAnimation.swift:48:13: warning: call to main actor-isolated instance method 'start()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
36 |     @State private var animations: [Bool]
37 |
38 |     private func start() {
   |                  `- note: calls to instance method 'start()' from outside of its actor context are implicitly asynchronous
39 |         guard index < data.count else {
40 |             var ary = Array(repeating: true, count: data.count)
   :
46 |             animations[index] = true
47 |             index += 1
48 |             start()
   |             `- warning: call to main actor-isolated instance method 'start()' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
49 |         }
50 |     }
/Users/admin/builder/spi-builder-workspace/Sources/AnimationStack/ForEachAnimation.swift:63:16: error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
61 |
62 |     public var body: some View {
63 |         return Group {
   |                `- error: the compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
64 |             ForEach(data.indices, id: \.self) { i in
65 |                 content(data[i])
BUILD FAILURE 6.0 macosSpm