Build Information
Failed to build SwiftUI-AdaptiveGrid, reference 0.1.0 (de309d
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 06:24:06 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.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.67s)
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.0
Building package at path: $PWD
https://github.com/LiYanan2004/AdaptiveGrid.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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--7754E27361AE5C74.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:5:40: note: found this candidate in module 'SwiftUI'
3 | @inlinable nonisolated public func task(priority: TaskPriority = .userInitiated, _ action: @escaping @Sendable () async -> Void) -> some View
4 |
5 | @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'
6 |
7 | }
[4/8] Compiling AdaptiveGrid GridContainers.swift
[5/8] Compiling AdaptiveGrid AdaptiveGridRow.swift
[6/8] Compiling AdaptiveGrid AdaptiveGrid.swift
[7/8] Emitting module AdaptiveGrid
[8/8] Compiling AdaptiveGrid SizeReader.swift
BUILD FAILURE 6.0 macosSpm