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 CachedAsyncImage, reference main (31bed1), with Swift 6.1 for macOS (SPM) on 12 Sep 2025 11:37:15 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bullinnyc/CachedAsyncImage.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/bullinnyc/CachedAsyncImage
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 31bed1b Merge pull request #12 from bullinnyc/refactoring
Cloned https://github.com/bullinnyc/CachedAsyncImage.git
Revision (git rev-parse @):
31bed1b1f4f8e58431fc5ac726a4c2e284ff1af3
SUCCESS checkout https://github.com/bullinnyc/CachedAsyncImage.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "cachedasyncimage",
      "name": "CachedAsyncImage",
      "url": "https://github.com/bullinnyc/CachedAsyncImage.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/CachedAsyncImage",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/bullinnyc/CachedAsyncImage.git
[1/481] Fetching cachedasyncimage
Fetched https://github.com/bullinnyc/CachedAsyncImage.git from cache (1.02s)
Creating working copy for https://github.com/bullinnyc/CachedAsyncImage.git
Working copy of https://github.com/bullinnyc/CachedAsyncImage.git resolved at main (31bed1b)
warning: '.resolve-product-dependencies': dependency 'cachedasyncimage' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/bullinnyc/CachedAsyncImage.git
https://github.com/bullinnyc/CachedAsyncImage.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CachedAsyncImage",
  "name" : "CachedAsyncImage",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "CachedAsyncImage",
      "targets" : [
        "CachedAsyncImage"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CachedAsyncImageTests",
      "module_type" : "SwiftTarget",
      "name" : "CachedAsyncImageTests",
      "path" : "Tests/CachedAsyncImageTests",
      "sources" : [
        "ImageLoaderTests.swift",
        "Mocks/NetworkManagerMock.swift"
      ],
      "target_dependencies" : [
        "CachedAsyncImage"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CachedAsyncImage",
      "module_type" : "SwiftTarget",
      "name" : "CachedAsyncImage",
      "path" : "Sources/CachedAsyncImage",
      "product_memberships" : [
        "CachedAsyncImage"
      ],
      "sources" : [
        "Extensions/Extension+Logger.swift",
        "Extensions/Extension+View.swift",
        "PropertyWrappers/ImageCache.swift",
        "PropertyWrappers/Network.swift",
        "Resources/ResourcesManager.swift",
        "Services/CrossPlatformImage.swift",
        "Services/Emoji.swift",
        "Services/FeatureStorage.swift",
        "Services/ImageLoader.swift",
        "Services/NetworkManager.swift",
        "Services/TemporaryImageCache.swift",
        "Views/CachedAsyncImage.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
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 -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/14] Compiling CachedAsyncImage NetworkManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Services/NetworkManager.swift:135:25: warning: capture of 'handler' with non-sendable type '(Result<URLSession.DataTaskPublisher.Output, any Error>) -> Void' (aka '(Result<(data: Data, response: URLResponse), any Error>) -> ()') in a '@Sendable' closure
133 |                 ) { data, response, error in
134 |                     if let error = error {
135 |                         handler(.failure(error))
    |                         |- warning: capture of 'handler' with non-sendable type '(Result<URLSession.DataTaskPublisher.Output, any Error>) -> Void' (aka '(Result<(data: Data, response: URLResponse), any Error>) -> ()') in a '@Sendable' closure
    |                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
136 |                     } else if let data = data, let response = response {
137 |                         handler(.success((data, response)))
[4/14] Compiling CachedAsyncImage Emoji.swift
[5/14] Compiling CachedAsyncImage FeatureStorage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Services/FeatureStorage.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FeatureStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | final class FeatureStorage {
   |             `- note: class 'FeatureStorage' does not conform to the 'Sendable' protocol
12 |     // MARK: - Public Properties
13 |
   :
20 |     }()
21 |
22 |     static let shared = FeatureStorage()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FeatureStorage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     // MARK: - Private Initializers
[6/15] Compiling CachedAsyncImage TemporaryImageCache.swift
[7/15] Compiling CachedAsyncImage ImageLoader.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Services/ImageLoader.swift:98:25: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 96 |                 if let error = error as? NetworkError {
 97 |                     Task { @MainActor [weak self] in
 98 |                         self?.state = .failed(error.message)
    |                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
 99 |                     }
100 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Services/ImageLoader.swift:109:25: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
107 |                 receiveSubscription: { _ in
108 |                     Task { @MainActor [weak self] in
109 |                         self?.state = .loading()
    |                         |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
110 |                     }
111 |                 },
[8/15] Compiling CachedAsyncImage ResourcesManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:64:24: error: type 'Bundle' has no member 'module'
62 |     static let snow = NSColor(
63 |         named: NSColor.Name("snow"),
64 |         bundle: Bundle.module
   |                        `- error: type 'Bundle' has no member 'module'
65 |     ) ?? NSColor()
66 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:75:16: error: type 'Bundle' has no member 'module'
73 |     /// - Returns: An initialized image object or `nil` if the object was not found in the resources.
74 |     static func image(_ name: String) -> NSImage? {
75 |         Bundle.module.image(forResource: NSImage.Name(name))
   |                `- error: type 'Bundle' has no member 'module'
76 |     }
77 | }
[9/15] Compiling CachedAsyncImage CachedAsyncImage.swift
[10/15] Compiling CachedAsyncImage ImageCache.swift
[11/15] Compiling CachedAsyncImage Network.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Compiling CachedAsyncImage CrossPlatformImage.swift
[13/15] Emitting module CachedAsyncImage
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:64:24: error: type 'Bundle' has no member 'module'
62 |     static let snow = NSColor(
63 |         named: NSColor.Name("snow"),
64 |         bundle: Bundle.module
   |                        `- error: type 'Bundle' has no member 'module'
65 |     ) ?? NSColor()
66 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Services/FeatureStorage.swift:22:16: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FeatureStorage' may have shared mutable state; this is an error in the Swift 6 language mode
 9 | import Foundation
10 |
11 | final class FeatureStorage {
   |             `- note: class 'FeatureStorage' does not conform to the 'Sendable' protocol
12 |     // MARK: - Public Properties
13 |
   :
20 |     }()
21 |
22 |     static let shared = FeatureStorage()
   |                |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'FeatureStorage' may have shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 |
24 |     // MARK: - Private Initializers
[14/15] Compiling CachedAsyncImage Extension+Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
[15/15] Compiling CachedAsyncImage Extension+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
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/CachedAsyncImage/Resources/Assets.xcassets
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/13] Compiling CachedAsyncImage TemporaryImageCache.swift
[3/13] Compiling CachedAsyncImage NetworkManager.swift
[4/14] Compiling CachedAsyncImage FeatureStorage.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/14] Compiling CachedAsyncImage ImageCache.swift
[6/14] Compiling CachedAsyncImage Network.swift
[7/14] Compiling CachedAsyncImage CrossPlatformImage.swift
[8/14] Compiling CachedAsyncImage Emoji.swift
[9/14] Compiling CachedAsyncImage ImageLoader.swift
[10/14] Emitting module CachedAsyncImage
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:64:24: error: type 'Bundle' has no member 'module'
62 |     static let snow = NSColor(
63 |         named: NSColor.Name("snow"),
64 |         bundle: Bundle.module
   |                        `- error: type 'Bundle' has no member 'module'
65 |     ) ?? NSColor()
66 |
[11/14] Compiling CachedAsyncImage ResourcesManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:64:24: error: type 'Bundle' has no member 'module'
62 |     static let snow = NSColor(
63 |         named: NSColor.Name("snow"),
64 |         bundle: Bundle.module
   |                        `- error: type 'Bundle' has no member 'module'
65 |     ) ?? NSColor()
66 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Resources/ResourcesManager.swift:75:16: error: type 'Bundle' has no member 'module'
73 |     /// - Returns: An initialized image object or `nil` if the object was not found in the resources.
74 |     static func image(_ name: String) -> NSImage? {
75 |         Bundle.module.image(forResource: NSImage.Name(name))
   |                `- error: type 'Bundle' has no member 'module'
76 |     }
77 | }
[12/14] Compiling CachedAsyncImage Extension+Logger.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
[13/14] Compiling CachedAsyncImage Extension+View.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedAsyncImage/Extensions/Extension+Logger.swift:21:43: error: type 'Bundle' has no member 'module'
19 |     // MARK: - Private Properties
20 |
21 |     private static let subsystem = Bundle.module.bundleIdentifier ?? ""
   |                                           `- error: type 'Bundle' has no member 'module'
22 |
23 |     // MARK: - Public Methods
[14/14] Compiling CachedAsyncImage CachedAsyncImage.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/CachedAsyncImage/Resources/Assets.xcassets
BUILD FAILURE 6.1 macosSpm