Build Information
Failed to build SwiftlyImageLoader, reference main (b5609b
), with Swift 6.0 for macOS (SPM) on 10 May 2025 21:05:52 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/mohsinbmwm3/SwiftlyImageLoader
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
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 LogLevel.swift
[7/13] Compiling SwiftlyImageLoader SwiftlyImageLoaderConfiguration.swift
[8/13] Compiling SwiftlyImageLoader ImageResizer.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 '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