The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SwiftlyImageLoader, reference 1.1.0 (b5609b), with Swift 6.0 for macOS (SPM) on 10 May 2025 21:05:59 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.3
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.0
Building package at path:  $PWD
https://github.com/mohsinbmwm3/SwiftlyImageLoader.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-5BDAB9E9C0126B9D.txt
[6/13] Compiling SwiftlyImageLoader ImageResizer.swift
[7/13] Compiling SwiftlyImageLoader ImageCache.swift
[8/13] Compiling SwiftlyImageLoader LogLevel.swift
[9/13] Compiling SwiftlyImageLoader DiskCache.swift
[10/13] Compiling SwiftlyImageLoader SwiftlyImageLoader.swift
[11/13] Compiling SwiftlyImageLoader SwiftlyImageLoaderConfiguration.swift
[12/13] Emitting module SwiftlyImageLoader
[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 'Optional<NSImage>')
 69 |                     }
 70 |
 71 |                     self.callCompletions(for: url, with: finalImage)
    |                                                          `- error: cannot convert value of type 'NSObject' to expected argument type 'CrossPlatformImage?' (aka 'Optional<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
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
134 |             }
135 |         }
Swift.Optional:1:21: note: generic enum 'Optional' does not conform to the 'Sendable' protocol
1 | @frozen public enum Optional<Wrapped> : ~Copyable where Wrapped : ~Copyable {
  |                     `- note: generic enum 'Optional' does not conform to the 'Sendable' protocol
2 |     case none
3 |     case some(Wrapped)
BUILD FAILURE 6.0 macosSpm