Build Information
Failed to build FilePicker, reference 0.0.4 (b8a85b
), with Swift 5.9 for macOS (SPM) on 1 Mar 2025 13:00:19 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.60.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xWDG/FilePicker.git
Reference: 0.0.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xWDG/FilePicker
* tag 0.0.4 -> FETCH_HEAD
HEAD is now at b8a85bd Fix saving
Cloned https://github.com/0xWDG/FilePicker.git
Revision (git rev-parse @):
b8a85bdea42cb8992cc474850a66d2b8b3febf01
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/0xWDG/FilePicker.git at 0.0.4
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 5.9
Building package at path: $PWD
https://github.com/0xWDG/FilePicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/3] Compiling FilePicker FilePickerUIRepresentable.swift
[2/3] Emitting module FilePicker
[3/3] Compiling FilePicker View+filePicker.swift
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:72:21: warning: capture of 'files' with non-sendable type 'Binding<[URL]>' in a `@Sendable` closure
files.wrappedValue = await withCheckedContinuation { continuation in
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:85:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:85:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:73:37: error: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context
let panel = NSOpenPanel()
^
AppKit.NSOpenPanel:29:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
public convenience init()
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:74:31: error: main actor-isolated property 'allowsMultipleSelection' can not be mutated from a non-isolated context
panel.allowsMultipleSelection = allowMultiple
^
AppKit.NSOpenPanel:11:14: note: mutation of this property is only permitted within the actor
open var allowsMultipleSelection: Bool { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:75:31: error: main actor-isolated property 'canChooseDirectories' can not be mutated from a non-isolated context
panel.canChooseDirectories = false
^
AppKit.NSOpenPanel:10:14: note: mutation of this property is only permitted within the actor
open var canChooseDirectories: Bool { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:76:31: error: main actor-isolated property 'canChooseFiles' can not be mutated from a non-isolated context
panel.canChooseFiles = true
^
AppKit.NSOpenPanel:12:14: note: mutation of this property is only permitted within the actor
open var canChooseFiles: Bool { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:77:31: error: main actor-isolated property 'allowedContentTypes' can not be mutated from a non-isolated context
panel.allowedContentTypes = types
^
AppKit.NSSavePanel:13:14: note: mutation of this property is only permitted within the actor
open var allowedContentTypes: [UTType] { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:78:31: error: call to main actor-isolated instance method 'begin(completionHandler:)' in a synchronous nonisolated context
panel.begin { reponse in
^
AppKit.NSSavePanel:48:15: note: calls to instance method 'begin(completionHandler:)' from outside of its actor context are implicitly asynchronous
open func begin(completionHandler handler: @escaping (NSApplication.ModalResponse) -> Void)
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:85:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:80:70: warning: main actor-isolated property 'urls' can not be referenced from a non-isolated context; this is an error in Swift 6
continuation.resume(returning: panel.urls)
^
AppKit.NSOpenPanel:6:14: note: property declared here
open var urls: [URL] { get }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:150:25: warning: initialization of immutable value 'status' was never used; consider replacing with assignment to '_' or removing it
let status = await withCheckedContinuation { continuation in
~~~~^~~~~~
_
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:171:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:171:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:151:37: error: call to main actor-isolated initializer 'init()' in a synchronous nonisolated context
let panel = NSSavePanel()
^
AppKit.NSSavePanel:62:24: note: calls to initializer 'init()' from outside of its actor context are implicitly asynchronous
public convenience init()
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:152:31: error: main actor-isolated property 'nameFieldStringValue' can not be mutated from a non-isolated context
panel.nameFieldStringValue = fileName
^
AppKit.NSSavePanel:30:14: note: mutation of this property is only permitted within the actor
open var nameFieldStringValue: String { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:153:31: error: main actor-isolated property 'allowedContentTypes' can not be mutated from a non-isolated context
panel.allowedContentTypes = types
^
AppKit.NSSavePanel:13:14: note: mutation of this property is only permitted within the actor
open var allowedContentTypes: [UTType] { get set }
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:154:31: error: call to main actor-isolated instance method 'begin(completionHandler:)' in a synchronous nonisolated context
panel.begin { reponse in
^
AppKit.NSSavePanel:48:15: note: calls to instance method 'begin(completionHandler:)' from outside of its actor context are implicitly asynchronous
open func begin(completionHandler handler: @escaping (NSApplication.ModalResponse) -> Void)
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:171:29: warning: capture of 'isPresented' with non-sendable type 'Binding<Bool>' in a `@Sendable` closure
isPresented.wrappedValue = false
^
SwiftUI.Binding:2:61: note: generic struct 'Binding' does not conform to the 'Sendable' protocol
@frozen @propertyWrapper @dynamicMemberLookup public struct Binding<Value> {
^
/Users/admin/builder/spi-builder-workspace/Sources/FilePicker/View+filePicker.swift:156:52: warning: main actor-isolated property 'url' can not be referenced from a non-isolated context; this is an error in Swift 6
if let url = panel.url {
^
AppKit.NSSavePanel:6:14: note: property declared here
open var url: URL? { get }
^
error: fatalError
BUILD FAILURE 5.9 macosSpm