Build Information
Failed to build AdaptiveGrid with Swift 5.8 for macOS (SPM).
Build Command
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.28.9
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LiYanan2004/AdaptiveGrid.git
Reference: main
Initialized empty Git repository in /Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-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: 5.8
Building package at path: $workDir
https://github.com/LiYanan2004/AdaptiveGrid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-14.3.1.app xcrun swift build --arch arm64
Building for debugging...
[1/5] Emitting module AdaptiveGrid
[2/5] Compiling AdaptiveGrid GridContainers.swift
[3/6] Compiling AdaptiveGrid SizeReader.swift
[4/6] Compiling AdaptiveGrid AdaptiveGrid.swift
[5/6] Compiling AdaptiveGrid AdaptiveGridRow.swift
[6/6] Compiling AdaptiveGrid Utilities+SwiftUI.swift
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/AdaptiveGrid/Utilities+SwiftUI.swift:25:13: error: ambiguous use of 'task(id:priority:_:)'
content.task(id: id, priority: priority) {
^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/AdaptiveGrid/Utilities+SwiftUI.swift:13:10: note: found this candidate
func task<E: Equatable>(id: E, priority: TaskPriority = .userInitiated, _ action: @escaping () async -> Void) -> some View {
^
SwiftUI.View:5:28: note: found this candidate
@inlinable public func task<T>(id value: T, priority: TaskPriority = .userInitiated, _ action: @escaping @Sendable () async -> Void) -> some View where T : Equatable
^
[0/1] Planning build
Building for debugging...
[1/2] Compiling AdaptiveGrid Utilities+SwiftUI.swift
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/AdaptiveGrid/Utilities+SwiftUI.swift:25:13: error: ambiguous use of 'task(id:priority:_:)'
content.task(id: id, priority: priority) {
^
/Users/admin/builds/vMd7uqzK/1/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/AdaptiveGrid/Utilities+SwiftUI.swift:13:10: note: found this candidate
func task<E: Equatable>(id: E, priority: TaskPriority = .userInitiated, _ action: @escaping () async -> Void) -> some View {
^
SwiftUI.View:5:28: note: found this candidate
@inlinable public func task<T>(id value: T, priority: TaskPriority = .userInitiated, _ action: @escaping @Sendable () async -> Void) -> some View where T : Equatable
^
[2/2] Emitting module AdaptiveGrid
BUILD FAILURE 5.8 macosSpm