Build Information
Failed to build SwiftUI-AdaptiveGrid, reference 0.1.0 (de309d
), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 09:21:55 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.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
========================================
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": "adaptivegrid",
"name": "SwiftUI-AdaptiveGrid",
"url": "https://github.com/LiYanan2004/AdaptiveGrid.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/AdaptiveGrid",
"dependencies": [
]
}
]
}
Fetching https://github.com/LiYanan2004/AdaptiveGrid.git
[1/48] Fetching adaptivegrid
Fetched https://github.com/LiYanan2004/AdaptiveGrid.git from cache (0.56s)
Creating working copy for https://github.com/LiYanan2004/AdaptiveGrid.git
Working copy of https://github.com/LiYanan2004/AdaptiveGrid.git resolved at 0.1.0 (de309d4)
warning: '.resolve-product-dependencies': dependency 'adaptivegrid' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/LiYanan2004/AdaptiveGrid.git
https://github.com/LiYanan2004/AdaptiveGrid.git
{
"dependencies" : [
],
"manifest_display_name" : "SwiftUI-AdaptiveGrid",
"name" : "SwiftUI-AdaptiveGrid",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "11.0"
},
{
"name" : "watchos",
"version" : "7.0"
},
{
"name" : "ios",
"version" : "14.0"
},
{
"name" : "tvos",
"version" : "14.0"
}
],
"products" : [
{
"name" : "AdaptiveGrid",
"targets" : [
"AdaptiveGrid"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "AdaptiveGrid",
"module_type" : "SwiftTarget",
"name" : "AdaptiveGrid",
"path" : "Sources/AdaptiveGrid",
"product_memberships" : [
"AdaptiveGrid"
],
"sources" : [
"AdaptiveGrid.swift",
"AdaptiveGridRow.swift",
"GridContainers.swift",
"SizeReader.swift",
"Utilities+SwiftUI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/8] Compiling AdaptiveGrid SizeReader.swift
[4/8] Compiling AdaptiveGrid GridContainers.swift
[5/8] Compiling AdaptiveGrid AdaptiveGrid.swift
[6/8] Emitting module AdaptiveGrid
[7/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 |
[8/8] Compiling AdaptiveGrid AdaptiveGridRow.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/7] 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 |
[3/7] Compiling AdaptiveGrid GridContainers.swift
[4/7] Compiling AdaptiveGrid SizeReader.swift
[5/7] Compiling AdaptiveGrid AdaptiveGridRow.swift
[6/7] Emitting module AdaptiveGrid
[7/7] Compiling AdaptiveGrid AdaptiveGrid.swift
BUILD FAILURE 6.1 macosSpm