The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftUI-AdaptiveGrid, reference 0.1.0 (de309d), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 00:05:51 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LiYanan2004/AdaptiveGrid.git
Reference: 0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/LiYanan2004/AdaptiveGrid
 * tag               0.1.0      -> FETCH_HEAD
HEAD is now at de309d4 Initial Commit
Cloned https://github.com/LiYanan2004/AdaptiveGrid.git
Revision (git rev-parse @):
de309d487c30fc32babd93d3471897dcbfa62c0b
SUCCESS checkout https://github.com/LiYanan2004/AdaptiveGrid.git at 0.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/LiYanan2004/AdaptiveGrid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/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.task:2:36: note: found this candidate in module 'SwiftUI'
1 | protocol View {
2 | @inlinable nonisolated 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'
3 |   }
4 |
[4/8] Compiling AdaptiveGrid GridContainers.swift
[5/8] Compiling AdaptiveGrid AdaptiveGridRow.swift
[6/8] Compiling AdaptiveGrid SizeReader.swift
[7/8] Emitting module AdaptiveGrid
[8/8] Compiling AdaptiveGrid AdaptiveGrid.swift
BUILD FAILURE 6.2 macosSpm