The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncCachedImage, reference 2026.9.1 (908f99), with Swift 6.1 for macOS (SPM) on 31 Aug 2026 23:52:21 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uaremad/AsyncCachedImage.git
Reference: 2026.9.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/uaremad/AsyncCachedImage
 * tag               2026.9.1   -> FETCH_HEAD
HEAD is now at 908f996 Fix AsyncCachedImage reload when URL changes (#6)
Cloned https://github.com/uaremad/AsyncCachedImage.git
Revision (git rev-parse @):
908f9960303830768f191005d2749fecf406c092
SUCCESS checkout https://github.com/uaremad/AsyncCachedImage.git at 2026.9.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/uaremad/AsyncCachedImage.git
https://github.com/uaremad/AsyncCachedImage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "AsyncCachedImage",
  "name" : "AsyncCachedImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "17.0"
    },
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "AsyncCachedImage",
      "targets" : [
        "AsyncCachedImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "AsyncCachedImageTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncCachedImageTests",
      "path" : "Core/Tests",
      "sources" : [
        "Cache/DiskCacheTests.swift",
        "Cache/MemoryCacheStorageTests.swift",
        "Cache/MemoryCacheTests.swift",
        "Cache/RevalidationResultTests.swift",
        "Decoding/ImageDecoderTests.swift",
        "Environment/ImageLoadingOptionsEnvironmentTests.swift",
        "Environment/ScenePhaseObserverTests.swift",
        "Errors/DiskCacheErrorTests.swift",
        "Errors/ImageDecoderErrorTests.swift",
        "Errors/ImageLoadingErrorTests.swift",
        "Errors/InternalDownloadErrorTests.swift",
        "Errors/MemoryCacheErrorTests.swift",
        "Errors/MetadataStoreErrorTests.swift",
        "Errors/RevalidationErrorTests.swift",
        "Logging/DebugLoggerTests.swift",
        "Logging/LogLevelTests.swift",
        "Logging/LogProtocolTests.swift",
        "Logging/LoggingTests.swift",
        "Metadata/MetadataEntryTests.swift",
        "Metadata/MetadataStoreTests.swift",
        "Metadata/MetadataTests.swift",
        "Networking/ImageDownloaderTests.swift",
        "Networking/RevalidationThrottlerTests.swift",
        "Public/AsyncCachedImagePhaseTests.swift",
        "Public/AsyncCachedImageTests.swift",
        "Public/CacheInfoTests.swift",
        "Public/CacheManagerTests.swift",
        "Public/ConfigurationTests.swift",
        "URLSession/URLSessionImageTests.swift"
      ],
      "target_dependencies" : [
        "AsyncCachedImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncCachedImage",
      "module_type" : "SwiftTarget",
      "name" : "AsyncCachedImage",
      "path" : "Core/Sources",
      "product_memberships" : [
        "AsyncCachedImage"
      ],
      "sources" : [
        "Cache/CacheRevalidator.swift",
        "Cache/DiskCache.swift",
        "Cache/MemoryCache.swift",
        "Cache/MemoryCacheStorage.swift",
        "Decoding/ImageDecoder.swift",
        "Environment/ImageLoadingEnvironment.swift",
        "Environment/ScenePhaseObserver.swift",
        "Errors/DiskCacheError.swift",
        "Errors/ImageDecoderError.swift",
        "Errors/ImageLoadingError.swift",
        "Errors/InternalDownloadError.swift",
        "Errors/MemoryCacheError.swift",
        "Errors/MetadataStoreError.swift",
        "Errors/RevalidationError.swift",
        "Logging/DebugLogger.swift",
        "Logging/LogLevel.swift",
        "Logging/LogProtocol.swift",
        "Logging/Logging.swift",
        "Metadata/Metadata.swift",
        "Metadata/MetadataEntry.swift",
        "Metadata/MetadataStore.swift",
        "Networking/ImageDownloader.swift",
        "Networking/RevalidationThrottler.swift",
        "Public/AsyncCachedImage.swift",
        "Public/AsyncCachedImageLoadPolicy.swift",
        "Public/AsyncCachedImagePhase.swift",
        "Public/CacheInfo.swift",
        "Public/CacheManager.swift",
        "Public/Configuration.swift",
        "Typealias/AsyncCachedImageConfiguration.swift",
        "Typealias/PlatformImage.swift",
        "URLSession/URLSession+Image.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/32] Emitting module AsyncCachedImage
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[4/35] Compiling AsyncCachedImage ImageDecoderError.swift
[5/35] Compiling AsyncCachedImage ImageLoadingError.swift
[6/35] Compiling AsyncCachedImage InternalDownloadError.swift
[7/35] Compiling AsyncCachedImage MemoryCacheError.swift
[8/35] Compiling AsyncCachedImage MetadataStoreError.swift
[9/35] Compiling AsyncCachedImage RevalidationError.swift
[10/35] Compiling AsyncCachedImage Logging.swift
[11/35] Compiling AsyncCachedImage Metadata.swift
[12/35] Compiling AsyncCachedImage MetadataEntry.swift
[13/35] Compiling AsyncCachedImage CacheInfo.swift
[14/35] Compiling AsyncCachedImage CacheManager.swift
[15/35] Compiling AsyncCachedImage Configuration.swift
[16/35] Compiling AsyncCachedImage CacheRevalidator.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[17/35] Compiling AsyncCachedImage DiskCache.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[18/35] Compiling AsyncCachedImage MemoryCache.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[19/35] Compiling AsyncCachedImage MemoryCacheStorage.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[20/35] Compiling AsyncCachedImage AsyncCachedImageConfiguration.swift
[21/35] Compiling AsyncCachedImage PlatformImage.swift
[22/35] Compiling AsyncCachedImage URLSession+Image.swift
[23/35] Compiling AsyncCachedImage DebugLogger.swift
[24/35] Compiling AsyncCachedImage LogLevel.swift
[25/35] Compiling AsyncCachedImage LogProtocol.swift
[26/35] Compiling AsyncCachedImage AsyncCachedImage.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[27/35] Compiling AsyncCachedImage AsyncCachedImageLoadPolicy.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[28/35] Compiling AsyncCachedImage AsyncCachedImagePhase.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[29/35] Compiling AsyncCachedImage ImageDecoder.swift
[30/35] Compiling AsyncCachedImage ImageLoadingEnvironment.swift
[31/35] Compiling AsyncCachedImage ScenePhaseObserver.swift
[32/35] Compiling AsyncCachedImage DiskCacheError.swift
[33/35] Compiling AsyncCachedImage MetadataStore.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
[34/35] Compiling AsyncCachedImage ImageDownloader.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
[35/35] Compiling AsyncCachedImage RevalidationThrottler.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/31] Compiling AsyncCachedImage MemoryCacheError.swift
[3/31] Compiling AsyncCachedImage MetadataStoreError.swift
[4/31] Compiling AsyncCachedImage RevalidationError.swift
[5/34] Compiling AsyncCachedImage ImageDecoderError.swift
[6/34] Compiling AsyncCachedImage ImageLoadingError.swift
[7/34] Compiling AsyncCachedImage InternalDownloadError.swift
[8/34] Compiling AsyncCachedImage CacheInfo.swift
[9/34] Compiling AsyncCachedImage CacheManager.swift
[10/34] Compiling AsyncCachedImage Configuration.swift
[11/34] Compiling AsyncCachedImage DebugLogger.swift
[12/34] Compiling AsyncCachedImage LogLevel.swift
[13/34] Compiling AsyncCachedImage LogProtocol.swift
[14/34] Compiling AsyncCachedImage Logging.swift
[15/34] Compiling AsyncCachedImage Metadata.swift
[16/34] Compiling AsyncCachedImage MetadataEntry.swift
[17/34] Compiling AsyncCachedImage AsyncCachedImage.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[18/34] Compiling AsyncCachedImage AsyncCachedImageLoadPolicy.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[19/34] Compiling AsyncCachedImage AsyncCachedImagePhase.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImage.swift:453:32: error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
451 |     /// - Returns: The cached image, or nil if not found.
452 |     func loadFromDiskCache(url: URL) async -> PlatformImage? {
453 |         await DiskCache.shared.loadCachedImage(for: url, asThumbnail: asThumbnail)
    |                                `- error: non-sendable result type 'PlatformImage?' (aka 'Optional<NSImage>') cannot be sent from actor-isolated context in call to instance method 'loadCachedImage(for:asThumbnail:)'
454 |     }
455 |
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[20/34] Compiling AsyncCachedImage MetadataStore.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
[21/34] Compiling AsyncCachedImage ImageDownloader.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
[22/34] Compiling AsyncCachedImage RevalidationThrottler.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/34] Emitting module AsyncCachedImage
/Users/admin/builder/spi-builder-workspace/Core/Sources/Networking/ImageDownloader.swift:223:9: error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
221 | struct DownloadOutcome: Sendable {
222 |     /// The downloaded and decoded image, or nil on failure.
223 |     let image: PlatformImage?
    |         `- error: stored property 'image' of 'Sendable'-conforming struct 'DownloadOutcome' has non-sendable type 'PlatformImage?' (aka 'Optional<NSImage>')
224 |
225 |     /// The error that occurred, or nil on success.
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)
/Users/admin/builder/spi-builder-workspace/Core/Sources/Public/AsyncCachedImagePhase.swift:87:10: error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 85 |
 86 |     /// The image loaded successfully.
 87 |     case success(PlatformImage)
    |          `- error: associated value 'success' of 'Sendable'-conforming enum 'InternalPhase' has non-sendable type 'PlatformImage' (aka 'NSImage')
 88 |
 89 |     /// The image failed to load with the given error.
/Applications/Xcode-16.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.4.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSImage.h:66:12: note: class 'NSImage' does not conform to the 'Sendable' protocol
 64 | __attribute__((objc_subclassing_restricted))
 65 | #endif /* NSIMAGE_UNAVAILABLE_MACCATALYST */
 66 | @interface NSImage : NSObject
    |            `- note: class 'NSImage' does not conform to the 'Sendable' protocol
 67 |
 68 | #pragma mark - Initialization
[24/34] Compiling AsyncCachedImage CacheRevalidator.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[25/34] Compiling AsyncCachedImage DiskCache.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[26/34] Compiling AsyncCachedImage MemoryCache.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[27/34] Compiling AsyncCachedImage MemoryCacheStorage.swift
/Users/admin/builder/spi-builder-workspace/Core/Sources/Cache/DiskCache.swift:69:34: error: sending 'image' risks causing data races
 67 |         }
 68 |
 69 |         await MemoryCache.shared.store(image, for: url, thumb: asThumbnail)
    |                                  |- error: sending 'image' risks causing data races
    |                                  `- note: sending 'image' to actor-isolated instance method 'store(_:for:thumb:)' risks causing data races between actor-isolated and local actor-isolated uses
 70 |         return image
    |                `- note: access can happen concurrently
 71 |     }
 72 |
[28/34] Compiling AsyncCachedImage ImageDecoder.swift
[29/34] Compiling AsyncCachedImage ImageLoadingEnvironment.swift
[30/34] Compiling AsyncCachedImage ScenePhaseObserver.swift
[31/34] Compiling AsyncCachedImage DiskCacheError.swift
[32/34] Compiling AsyncCachedImage AsyncCachedImageConfiguration.swift
[33/34] Compiling AsyncCachedImage PlatformImage.swift
[34/34] Compiling AsyncCachedImage URLSession+Image.swift
BUILD FAILURE 6.1 macosSpm