The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PDFPagePicker, reference main (3fda93), with Swift 6.2 for macOS (SPM) on 31 Aug 2025 06:59:02 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/omv-libs/PDFPagePicker.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/omv-libs/PDFPagePicker
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3fda93e Newer swiftformat.
Cloned https://github.com/omv-libs/PDFPagePicker.git
Revision (git rev-parse @):
3fda93e3e069df4b35cc7c599986b6dff3584c36
SUCCESS checkout https://github.com/omv-libs/PDFPagePicker.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/omv-libs/PDFPagePicker.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[1/6] Copying Info.plist
[1/6] Copying SingleImageImportViewController.xib
[2/6] Copying PDFPagePicker.xib
[2/6] Copying PDFPageItem.xib
[5/6] Write swift-version-1EA4D86E10B52AF.txt
[7/18] Compiling PDFPagePicker SingleImageImportViewController.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFPagePicker/SingleImageImportViewController.swift:79:49: error: main actor-isolated property 'urls' can not be referenced from a Sendable closure
 77 |             switch modalResponse {
 78 |             case .OK:
 79 |                 if let imageFileURL = openPanel.urls.first {
    |                                                 `- error: main actor-isolated property 'urls' can not be referenced from a Sendable closure
 80 |                     Task {
 81 |                         if let imageImport = try await self.importImageFrom(fileURL: imageFileURL, verb: .importVerb) {
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:24:46: note: property declared here
22 | + (NSOpenPanel *)openPanel;
23 |
24 | @property (readonly, copy) NSArray<NSURL *> *URLs;
   |                                              `- note: property declared here
25 |
26 | @property BOOL resolvesAliases;
/Users/admin/builder/spi-builder-workspace/Sources/PDFPagePicker/SingleImageImportViewController.swift:82:34: error: main actor-isolated property 'imageImport' can not be mutated from a nonisolated context
 35 |
 36 |     /// Can be set for initialization.
 37 |     public var imageImport: ImageImport? {
    |                `- note: mutation of this property is only permitted within the actor
 38 |         get {
 39 |             imageImportSubject.value
    :
 80 |                     Task {
 81 |                         if let imageImport = try await self.importImageFrom(fileURL: imageFileURL, verb: .importVerb) {
 82 |                             self.imageImport = imageImport
    |                                  |- error: main actor-isolated property 'imageImport' can not be mutated from a nonisolated context
    |                                  `- note: consider declaring an isolated method on 'MainActor' to perform the mutation
 83 |                         }
 84 |                     }
[8/19] Compiling PDFPagePicker Logger+PDFPagePicker.swift
[9/19] Compiling PDFPagePicker ImageWellImport.swift
[10/19] Compiling PDFPagePicker LocalizedStringResource+PDFPagePicker.swift
[11/19] Compiling PDFPagePicker ImageImport.swift
[12/19] Compiling PDFPagePicker ImageWell.swift
[13/19] Compiling PDFPagePicker PDFPageItem.swift
[14/19] Emitting module PDFPagePicker
[15/19] Compiling PDFPagePicker PDFDocumentView.swift
[16/19] Compiling PDFPagePicker PDFPagePicker.swift
[17/19] Compiling PDFPagePicker NSResponder+PDFPagePicker.swift
[18/19] Compiling PDFPagePicker SingleImageImport.swift
/Users/admin/builder/spi-builder-workspace/Sources/PDFPagePicker/SingleImageImport.swift:56:53: error: main actor-isolated property 'urls' can not be referenced from a Sendable closure
 54 |                 switch modalResponse {
 55 |                 case .OK:
 56 |                     if let imageFileURL = openPanel.urls.first {
    |                                                     `- error: main actor-isolated property 'urls' can not be referenced from a Sendable closure
 57 |                         Task {
 58 |                             try await self.importImageFrom(fileURL: imageFileURL, verb: .importVerb)
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenPanel.h:24:46: note: property declared here
22 | + (NSOpenPanel *)openPanel;
23 |
24 | @property (readonly, copy) NSArray<NSURL *> *URLs;
   |                                              `- note: property declared here
25 |
26 | @property BOOL resolvesAliases;
[19/19] Compiling PDFPagePicker resource_bundle_accessor.swift
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/PDFPagePicker/Resources/Localizable.xcstrings
BUILD FAILURE 6.2 macosSpm