The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftlyImageLoader, reference 1.1.0 (b5609b), with Swift 6.2 for macOS (SPM) on 24 Jun 2025 00:36:41 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mohsinbmwm3/SwiftlyImageLoader.git
Reference: 1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mohsinbmwm3/SwiftlyImageLoader
 * tag               1.1.0      -> FETCH_HEAD
HEAD is now at b5609bb Updated ImageTransforms to Apply custom resizing, cropping, grayscale, or circular masks before caching or display — with per-request flexibility.
Cloned https://github.com/mohsinbmwm3/SwiftlyImageLoader.git
Revision (git rev-parse @):
b5609bb888c7a4410abac6891b8874ae073be740
SUCCESS checkout https://github.com/mohsinbmwm3/SwiftlyImageLoader.git at 1.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mohsinbmwm3/SwiftlyImageLoader.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-1EA4D86E10B52AF.txt
[6/13] Compiling SwiftlyImageLoader ImageResizer.swift
[7/13] Compiling SwiftlyImageLoader LogLevel.swift
[8/13] Compiling SwiftlyImageLoader SwiftlyImageLoaderConfiguration.swift
[9/13] Compiling SwiftlyImageLoader ImageCache.swift
[10/13] Emitting module SwiftlyImageLoader
[11/13] Compiling SwiftlyImageLoader DiskCache.swift
[12/13] Compiling SwiftlyImageLoader SwiftlyImageLoader.swift
[13/13] Compiling SwiftlyImageLoader ImageLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyImageLoader/ImageLoader.swift:71:58: error: cannot convert value of type 'NSObject' to expected argument type 'CrossPlatformImage' (aka 'NSImage')
 69 |                     }
 70 |
 71 |                     self.callCompletions(for: url, with: finalImage)
    |                                                          `- error: cannot convert value of type 'NSObject' to expected argument type 'CrossPlatformImage' (aka 'NSImage')
 72 |                     return
 73 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftlyImageLoader/ImageLoader.swift:133:42: warning: capture of 'image' with non-sendable type 'CrossPlatformImage?' (aka 'Optional<NSImage>') in a '@Sendable' closure [#SendableClosureCaptures]
131 |             self.ongoingTasks[url] = nil
132 |             DispatchQueue.main.async {
133 |                 completions.forEach { $0(image) }
    |                                          `- warning: capture of 'image' with non-sendable type 'CrossPlatformImage?' (aka 'Optional<NSImage>') in a '@Sendable' closure [#SendableClosureCaptures]
134 |             }
135 |         }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable, ~Escapable where Wrapped : ~Copyable, Wrapped : ~Escapable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
BUILD FAILURE 6.2 macosSpm