The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PDFPagePicker, reference 2.0.1 (dcd340), with Swift 6.2 for macOS (SPM) on 31 Aug 2025 06:53:52 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: 2.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/omv-libs/PDFPagePicker
 * tag               2.0.1      -> FETCH_HEAD
HEAD is now at dcd3408 Should have remembered that @PUblished is bad and should feel bad.
Cloned https://github.com/omv-libs/PDFPagePicker.git
Revision (git rev-parse @):
dcd34083033e55dfe079fae39abf8df26987564d
SUCCESS checkout https://github.com/omv-libs/PDFPagePicker.git at 2.0.1
========================================
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 SingleImageImportViewController.xib
[1/6] Copying Info.plist
[1/6] Copying PDFPageItem.xib
[3/6] Copying PDFPagePicker.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/18] 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;
[9/19] Compiling PDFPagePicker PDFPagePicker.swift
[10/19] Compiling PDFPagePicker PDFDocumentView.swift
[11/19] Compiling PDFPagePicker ImageImport.swift
[12/19] Compiling PDFPagePicker ImageWell.swift
[13/19] Compiling PDFPagePicker NSResponder+PDFPagePicker.swift
[14/19] Compiling PDFPagePicker ImageWellImport.swift
[15/19] Compiling PDFPagePicker LocalizedStringResource+PDFPagePicker.swift
[16/19] Emitting module PDFPagePicker
[17/19] Compiling PDFPagePicker Logger+PDFPagePicker.swift
[18/19] Compiling PDFPagePicker PDFPageItem.swift
[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