Build Information
Failed to build PresentView, reference 1.0.2 (0a8cb0), with Swift 5.10 for macOS (SPM) on 17 Dec 2025 01:56:58 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jokerphuongnam/PresentView.git
Reference: 1.0.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/jokerphuongnam/PresentView
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at 0a8cb0c release: patch (#4)
Cloned https://github.com/jokerphuongnam/PresentView.git
Revision (git rev-parse @):
0a8cb0cdbb049a522a87a5e0be1f74a12bfaa19d
SUCCESS checkout https://github.com/jokerphuongnam/PresentView.git at 1.0.2
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.10
Building package at path: $PWD
https://github.com/jokerphuongnam/PresentView.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-33747A42983211AE.txt
[3/9] Compiling PresentView PresentedViewModifier.swift
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:41:145: error: cannot convert value of type 'Edge?' to expected argument type 'Edge'
.popover(isPresented: isPresented(.popover), attachmentAnchor: presented?.attachmentAnchor ?? .rect(.bounds), arrowEdge: presented?.arrowEdge) {
^
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:41:145: note: construct 'Edge' from unwrapped 'Edge' value
.popover(isPresented: isPresented(.popover), attachmentAnchor: presented?.attachmentAnchor ?? .rect(.bounds), arrowEdge: presented?.arrowEdge) {
~~~~~~~~~~~^~~~~~~~~
Edge(rawValue: ( )!) ?? <#default value#>
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:79:18: error: call to main actor-isolated initializer 'init(isPresented:presented:presentedContent:)' in a synchronous nonisolated context
modifier(PresentedViewModifier(isPresented: isPresented, presented: presented, presentedContent: presentedContent))
^
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:17:5: note: calls to initializer 'init(isPresented:presented:presentedContent:)' from outside of its actor context are implicitly asynchronous
init(isPresented: @escaping (PresentedType) -> Binding<Bool>, presented: Presented<Item>?, @ViewBuilder presentedContent: @escaping (Item) -> PresentedContent) {
^
/Users/admin/builder/spi-builder-workspace/Sources/PresentView/PresentedViewModifier.swift:74:10: note: add '@MainActor' to make instance method 'presented(isPresented:presented:presentedContent:)' part of global actor 'MainActor'
func presented<PresentedContent, Item>(
^
@MainActor
[4/9] Compiling PresentView Presented.swift
[5/9] Compiling PresentView NodeView.swift
[6/9] Emitting module PresentView
[7/9] Compiling PresentView Array+Presented.swift
[8/9] Compiling PresentView PresentView.swift
[9/9] Compiling PresentView DismissPresentedAction.swift
error: fatalError
BUILD FAILURE 5.10 macosSpm