Build Information
Failed to build PresentView, reference main (8bd61e), with Swift 6.1 for macOS (SPM) on 24 Apr 2026 13:37:03 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jokerphuongnam/PresentView.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jokerphuongnam/PresentView
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8bd61e8 release: patch (#21)
Cloned https://github.com/jokerphuongnam/PresentView.git
Revision (git rev-parse @):
8bd61e841a75ab65b95878ed8b3a94816e5bd450
SUCCESS checkout https://github.com/jokerphuongnam/PresentView.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/jokerphuongnam/PresentView.git
https://github.com/jokerphuongnam/PresentView.git
{
"dependencies" : [
],
"manifest_display_name" : "PresentView",
"name" : "PresentView",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "maccatalyst",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "16.0"
}
],
"products" : [
{
"name" : "PresentView",
"targets" : [
"PresentView"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "PresentView",
"module_type" : "SwiftTarget",
"name" : "PresentView",
"path" : "Sources/PresentView",
"product_memberships" : [
"PresentView"
],
"sources" : [
"Array+Presented.swift",
"DismissPresentedAction.swift",
"NodeView.swift",
"PresentView.swift",
"Presented.swift",
"PresentedViewModifier.swift",
"TransparentBackground.swift",
"View+Utils.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
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/11] Compiling PresentView TransparentBackground.swift
[4/11] Compiling PresentView Presented.swift
[5/11] Compiling PresentView NodeView.swift
[6/11] Compiling PresentView PresentView.swift
[7/11] Compiling PresentView View+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/View+Utils.swift:6:13: error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder @MainActor @preconcurrency public func getFrame(frame: Binding<CGRect>) -> some View {
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | onGeometryChange(
| |- error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
7 | for: CGRect.self) { proxy in
8 | proxy.frame(in: .global)
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/View+Utils.swift:5:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder @MainActor @preconcurrency public func getFrame(frame: Binding<CGRect>) -> some View {
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
6 | onGeometryChange(
7 | for: CGRect.self) { proxy in
[8/11] Compiling PresentView Array+Presented.swift
[9/11] Compiling PresentView DismissPresentedAction.swift
[10/11] Emitting module PresentView
[11/11] Compiling PresentView PresentedViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:71:72: warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
69 | #endif
70 | .onTapGesture {
71 | if presented.canCloseWhenTapBackground ?? false {
| `- warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
72 | withAnimation(.easeInOut(duration: 0.2)) {
73 | isOverlay.wrappedValue = false
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/10] Compiling PresentView TransparentBackground.swift
[3/10] Compiling PresentView View+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/View+Utils.swift:6:13: error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder @MainActor @preconcurrency public func getFrame(frame: Binding<CGRect>) -> some View {
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
6 | onGeometryChange(
| |- error: 'onGeometryChange(for:of:action:)' is only available in macOS 13.0 or newer
| `- note: add 'if #available' version check
7 | for: CGRect.self) { proxy in
8 | proxy.frame(in: .global)
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/View+Utils.swift:5:36: error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
1 | import SwiftUI
2 |
3 | extension View {
| `- note: add @available attribute to enclosing extension
4 | @ViewBuilder @MainActor @preconcurrency public func getFrame(frame: Binding<CGRect>) -> some View {
| `- note: add @available attribute to enclosing instance method
5 | if #available(iOS 16.0, *) {
| |- error: 'buildLimitedAvailability' is only available in macOS 11.0 or newer
| `- note: add 'if #available' version check
6 | onGeometryChange(
7 | for: CGRect.self) { proxy in
[4/10] Compiling PresentView Presented.swift
[5/10] Compiling PresentView PresentView.swift
[6/10] Emitting module PresentView
[7/10] Compiling PresentView NodeView.swift
[8/10] Compiling PresentView Array+Presented.swift
[9/10] Compiling PresentView PresentedViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:71:72: warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
69 | #endif
70 | .onTapGesture {
71 | if presented.canCloseWhenTapBackground ?? false {
| `- warning: left side of nil coalescing operator '??' has non-optional type 'Bool', so the right side is never used
72 | withAnimation(.easeInOut(duration: 0.2)) {
73 | isOverlay.wrappedValue = false
[10/10] Compiling PresentView DismissPresentedAction.swift
BUILD FAILURE 6.1 macosSpm