Build Information
Failed to build AdaptiveGrid, reference main (268afd
), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 00:05:53 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: 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.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 GridContainers.swift
[4/8] Compiling AdaptiveGrid AdaptiveGridRow.swift
[5/8] Compiling AdaptiveGrid SizeReader.swift
[6/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 |
[7/8] Emitting module AdaptiveGrid
[8/8] Compiling AdaptiveGrid AdaptiveGrid.swift
BUILD FAILURE 6.2 macosSpm