This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 AdaptiveGrid with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LiYanan2004/AdaptiveGrid.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LiYanan2004/AdaptiveGrid
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 268afde Add SPI badges
Cloned https://github.com/LiYanan2004/AdaptiveGrid.git
Revision (git rev-parse @):
268afde8bb0dd11b6faf2ddef34a66139b67e923
SUCCESS checkout https://github.com/LiYanan2004/AdaptiveGrid.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/LiYanan2004/AdaptiveGrid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[3/8] Emitting module AdaptiveGrid
[4/8] Compiling AdaptiveGrid AdaptiveGridRow.swift
[5/8] Compiling AdaptiveGrid SizeReader.swift
[6/8] Compiling AdaptiveGrid GridContainers.swift
[7/8] Compiling AdaptiveGrid AdaptiveGrid.swift
[8/8] Compiling AdaptiveGrid Utilities+SwiftUI.swift
/Users/admin/builder/spi-builder-workspace/Sources/AdaptiveGrid/Utilities+SwiftUI.swift:25:21: error: ambiguous use of 'task(id:priority:_:)'
11 |     ///   - action: A closure that SwiftUI calls as an asynchronous task before the view appears. SwiftUI can automatically cancel the task after the view disappears before the action completes. If the id value changes, SwiftUI cancels and restarts the task.
12 |     /// - Returns: A view that runs the specified action asynchronously before the view appears, or restarts the task with the id value changes.
13 |     func task<E: Equatable>(id: E, priority: TaskPriority = .userInitiated, _ action: @escaping () async -> Void) -> some View {
   |          `- note: found this candidate
14 |         modifier(_TaskModifier(id: id, priority: priority, action: action))
15 |     }
   :
23 |     func body(content: Content) -> some View {
24 |         if #available(macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0, macCatalyst 15.0, *) {
25 |             content.task(id: id, priority: priority) {
   |                     `- error: ambiguous use of 'task(id:priority:_:)'
26 |                 await action()
27 |             }
SwiftUI.View:5:28: note: found this candidate in module 'SwiftUI'
3 |     @inlinable public func task(priority: TaskPriority = .userInitiated, _ action: @escaping @Sendable () async -> Void) -> some View
4 |
5 |     @inlinable public func task<T>(id value: T, priority: TaskPriority = .userInitiated, _ action: @escaping @Sendable () async -> Void) -> some View where T : Equatable
  |                            `- note: found this candidate in module 'SwiftUI'
6 |
7 | }
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.