The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CachedNetworkImage, reference master (0c41b1), with Swift 6.2 for macOS (SPM) on 22 Jun 2025 19:50:59 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/c2p-cmd/CachedNetworkImage.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/c2p-cmd/CachedNetworkImage
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0c41b1f Update README.md
Cloned https://github.com/c2p-cmd/CachedNetworkImage.git
Revision (git rev-parse @):
0c41b1fb31eae1d6991f2498b7ead8a2d8694b1a
SUCCESS checkout https://github.com/c2p-cmd/CachedNetworkImage.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/c2p-cmd/CachedNetworkImage.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-1EA4D86E10B52AF.txt
[3/8] Compiling CachedNetworkImage ImageDownSizer.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:69: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                                                     `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:32: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:23:28: error: cannot find 'UIGraphicsImageRenderer' in scope
21 |
22 |         let task = Task.detached(priority: .high) {
23 |             let renderer = UIGraphicsImageRenderer(size: aspectSize)
   |                            `- error: cannot find 'UIGraphicsImageRenderer' in scope
24 |
25 |             return renderer.image { ctx in
[4/8] Compiling CachedNetworkImage ImagePhase.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImagePhase.swift:13:18: error: 'Image' is only available in macOS 10.15 or newer
 9 |
10 | /// Phase of ``CachedNetworkImage`` while fetching image from network
11 | enum ImagePhase: CustomDebugStringConvertible, Equatable {
   |      `- note: add @available attribute to enclosing enum
12 |     case idle
13 |     case success(Image)
   |                  `- error: 'Image' is only available in macOS 10.15 or newer
14 |     case failure(Error)
15 |
[5/8] Compiling CachedNetworkImage CachedNetworkImageError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/8] Emitting module CachedNetworkImage
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:15:22: error: cannot find type 'UIImage' in scope
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
14 |     class CachedImage {
15 |         let uiImage: UIImage
   |                      `- error: cannot find type 'UIImage' in scope
16 |         let date: Date
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:22:25: error: cannot find type 'UIImage' in scope
20 |         ///   - uiImage: The `UIImage` to cache.
21 |         ///   - date: The expiration date for the cached image. Defaults to the current date and time.
22 |         init(_ uiImage: UIImage, withExpiration date: Date = .now) {
   |                         `- error: cannot find type 'UIImage' in scope
23 |             self.uiImage = uiImage
24 |             self.date = date
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:22:63: error: 'now' is only available in macOS 12 or newer
12 |
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
14 |     class CachedImage {
   |           `- note: add @available attribute to enclosing class
15 |         let uiImage: UIImage
16 |         let date: Date
   :
20 |         ///   - uiImage: The `UIImage` to cache.
21 |         ///   - date: The expiration date for the cached image. Defaults to the current date and time.
22 |         init(_ uiImage: UIImage, withExpiration date: Date = .now) {
   |         |                                                     `- error: 'now' is only available in macOS 12 or newer
   |         `- note: add @available attribute to enclosing initializer
23 |             self.uiImage = uiImage
24 |             self.date = date
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:43:33: error: 'Image' is only available in macOS 10.15 or newer
 9 |
10 | /// A class that manages an in-memory cache for storing and retrieving images with expiration functionality.
11 | class CacheManager {
   |       `- note: add @available attribute to enclosing class
12 |
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
   :
41 |     /// - Parameter key: The `URL` key associated with the cached image.
42 |     /// - Returns: An optional `Image` if the image exists and is valid, or `nil` if not found or expired.
43 |     func image(for key: URL) -> Image? {
   |          |                      `- error: 'Image' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
44 |         let key = key.absoluteString as NSString
45 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:63:23: error: cannot find type 'UIImage' in scope
61 |     ///   - image: The `UIImage` to cache.
62 |     ///   - key: The `URL` key to associate with the image.
63 |     func store(image: UIImage, for key: URL) {
   |                       `- error: cannot find type 'UIImage' in scope
64 |         let key = key.absoluteString as NSString
65 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:11:26: error: 'Logger' is only available in macOS 11.0 or newer
  9 | import os.log
 10 |
 11 | fileprivate let logger = Logger(subsystem: "com.CachedNetworkImage", category: "CachedNetworkImage")
    |                 |        `- error: 'Logger' is only available in macOS 11.0 or newer
    |                 `- note: add @available attribute to enclosing let
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:22:34: error: 'Image' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 20 |     let cacheTime: TimeInterval
 21 |     /// A view builder for rendering the loaded image.
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
    |                                  `- error: 'Image' is only available in macOS 10.15 or newer
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:22:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 20 |     let cacheTime: TimeInterval
 21 |     /// A view builder for rendering the loaded image.
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:24:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 25 |     /// An optional view builder for rendering an error message if the image fails to load.
 26 |     @ViewBuilder var errorView: (Error) -> ErrorContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:26:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
 25 |     /// An optional view builder for rendering an error message if the image fails to load.
 26 |     @ViewBuilder var errorView: (Error) -> ErrorContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 27 |
 28 |     /// The cache manager responsible for caching and retrieving images.
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:43:31: error: 'Image' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
    |                               `- error: 'Image' is only available in macOS 10.15 or newer
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:44:61: error: 'ProgressView' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
    |                                                             |- error: 'ProgressView' is only available in macOS 11.0 or newer
    |                                                             `- note: add 'if #available' version check
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
 46 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:44:61: error: 'init()' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
    |                                                             |- error: 'init()' is only available in macOS 11.0 or newer
    |                                                             `- note: add 'if #available' version check
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
 46 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:67: error: 'Text' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                   |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                                   `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:100: error: 'foregroundStyle' is only available in macOS 14.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                                                    |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |                                                                                                    `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:117: error: 'red' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                                                                     |- error: 'red' is only available in macOS 10.15 or newer
    |                                                                                                                     `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:57:6: error: 'State' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 55 |     }
 56 |
 57 |     @State var result: ImagePhase = .idle
    |      `- error: 'State' is only available in macOS 10.15 or newer
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:58:43: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 56 |
 57 |     @State var result: ImagePhase = .idle
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
    |                                           `- error: 'Task' is only available in macOS 10.15 or newer
 59 |
 60 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:58:6: error: 'State' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 56 |
 57 |     @State var result: ImagePhase = .idle
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
    |      `- error: 'State' is only available in macOS 10.15 or newer
 59 |
 60 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:60:20: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:82:48: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  |                             `- error: 'Task' is only available in macOS 10.15 or newer
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:67: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                                          `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:87: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                                                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:131:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
129 | }
130 |
131 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:5: error: 'ZStack' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |     |- error: 'ZStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |            |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:134:17: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
    |                 |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
135 |         } placeholder: {
136 |             Text("loading...")
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:136:13: error: 'Text' is only available in macOS 10.15 or newer
134 |             img.resizable()
135 |         } placeholder: {
136 |             Text("loading...")
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
137 |         } errorView: {
138 |             Text($0.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:138:13: error: 'Text' is only available in macOS 10.15 or newer
136 |             Text("loading...")
137 |         } errorView: {
138 |             Text($0.localizedDescription)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
139 |                 .foregroundStyle(.red)
140 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:139:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
137 |         } errorView: {
138 |             Text($0.localizedDescription)
139 |                 .foregroundStyle(.red)
    |                  |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
    |                  `- note: add 'if #available' version check
140 |         }
141 |         .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:139:35: error: 'red' is only available in macOS 10.15 or newer
137 |         } errorView: {
138 |             Text($0.localizedDescription)
139 |                 .foregroundStyle(.red)
    |                                   |- error: 'red' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
140 |         }
141 |         .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:141:10: error: 'scaledToFit()' is only available in macOS 10.15 or newer
139 |                 .foregroundStyle(.red)
140 |         }
141 |         .scaledToFit()
    |          |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
142 |         .frame(width: 300)
143 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:142:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
140 |         }
141 |         .scaledToFit()
142 |         .frame(width: 300)
    |          |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
143 |     }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:69: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                                                     `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:32: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImagePhase.swift:13:18: error: 'Image' is only available in macOS 10.15 or newer
 9 |
10 | /// Phase of ``CachedNetworkImage`` while fetching image from network
11 | enum ImagePhase: CustomDebugStringConvertible, Equatable {
   |      `- note: add @available attribute to enclosing enum
12 |     case idle
13 |     case success(Image)
   |                  `- error: 'Image' is only available in macOS 10.15 or newer
14 |     case failure(Error)
15 |
[7/8] Compiling CachedNetworkImage CacheManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:15:22: error: cannot find type 'UIImage' in scope
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
14 |     class CachedImage {
15 |         let uiImage: UIImage
   |                      `- error: cannot find type 'UIImage' in scope
16 |         let date: Date
17 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:22:25: error: cannot find type 'UIImage' in scope
20 |         ///   - uiImage: The `UIImage` to cache.
21 |         ///   - date: The expiration date for the cached image. Defaults to the current date and time.
22 |         init(_ uiImage: UIImage, withExpiration date: Date = .now) {
   |                         `- error: cannot find type 'UIImage' in scope
23 |             self.uiImage = uiImage
24 |             self.date = date
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:22:63: error: 'now' is only available in macOS 12 or newer
12 |
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
14 |     class CachedImage {
   |           `- note: add @available attribute to enclosing class
15 |         let uiImage: UIImage
16 |         let date: Date
   :
20 |         ///   - uiImage: The `UIImage` to cache.
21 |         ///   - date: The expiration date for the cached image. Defaults to the current date and time.
22 |         init(_ uiImage: UIImage, withExpiration date: Date = .now) {
   |         |                                                     `- error: 'now' is only available in macOS 12 or newer
   |         `- note: add @available attribute to enclosing initializer
23 |             self.uiImage = uiImage
24 |             self.date = date
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:43:33: error: 'Image' is only available in macOS 10.15 or newer
 9 |
10 | /// A class that manages an in-memory cache for storing and retrieving images with expiration functionality.
11 | class CacheManager {
   |       `- note: add @available attribute to enclosing class
12 |
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
   :
41 |     /// - Parameter key: The `URL` key associated with the cached image.
42 |     /// - Returns: An optional `Image` if the image exists and is valid, or `nil` if not found or expired.
43 |     func image(for key: URL) -> Image? {
   |          |                      `- error: 'Image' is only available in macOS 10.15 or newer
   |          `- note: add @available attribute to enclosing instance method
44 |         let key = key.absoluteString as NSString
45 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:63:23: error: cannot find type 'UIImage' in scope
61 |     ///   - image: The `UIImage` to cache.
62 |     ///   - key: The `URL` key to associate with the image.
63 |     func store(image: UIImage, for key: URL) {
   |                       `- error: cannot find type 'UIImage' in scope
64 |         let key = key.absoluteString as NSString
65 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:50:17: error: 'now' is only available in macOS 12 or newer
 9 |
10 | /// A class that manages an in-memory cache for storing and retrieving images with expiration functionality.
11 | class CacheManager {
   |       `- note: add @available attribute to enclosing class
12 |
13 |     /// A wrapper class to store a `UIImage` along with its expiration date.
   :
41 |     /// - Parameter key: The `URL` key associated with the cached image.
42 |     /// - Returns: An optional `Image` if the image exists and is valid, or `nil` if not found or expired.
43 |     func image(for key: URL) -> Image? {
   |          `- note: add @available attribute to enclosing instance method
44 |         let key = key.absoluteString as NSString
45 |
   :
48 |
49 |         // Check if the cached image has expired
50 |         if Date.now > cachedImage.date {
   |                 |- error: 'now' is only available in macOS 12 or newer
   |                 `- note: add 'if #available' version check
51 |             cache.removeObject(forKey: key) // Remove expired image
52 |             return nil
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:56:16: error: no exact matches in call to initializer
54 |
55 |         // Return the image if still valid
56 |         return Image(uiImage: cachedImage.uiImage)
   |                `- error: no exact matches in call to initializer
57 |     }
58 |
SwiftUI.Image.init:2:8: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | struct Image {
2 | public init(_ name: String, bundle: Bundle? = nil)}
  |        `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
3 |
SwiftUI.Image.init:2:8: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | struct Image {
2 | public init(_ resource: ImageResource)}
  |        `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
3 |
[8/8] Compiling CachedNetworkImage CachedNetworkImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:11:26: error: 'Logger' is only available in macOS 11.0 or newer
  9 | import os.log
 10 |
 11 | fileprivate let logger = Logger(subsystem: "com.CachedNetworkImage", category: "CachedNetworkImage")
    |                 |        `- error: 'Logger' is only available in macOS 11.0 or newer
    |                 `- note: add @available attribute to enclosing let
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:22:34: error: 'Image' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 20 |     let cacheTime: TimeInterval
 21 |     /// A view builder for rendering the loaded image.
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
    |                                  `- error: 'Image' is only available in macOS 10.15 or newer
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:22:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 20 |     let cacheTime: TimeInterval
 21 |     /// A view builder for rendering the loaded image.
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:24:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 22 |     @ViewBuilder var imageView: (Image) -> ImageContent
 23 |     /// A view builder for rendering a placeholder while the image loads.
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 25 |     /// An optional view builder for rendering an error message if the image fails to load.
 26 |     @ViewBuilder var errorView: (Error) -> ErrorContent
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:26:6: error: 'ViewBuilder' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 24 |     @ViewBuilder var placeholder: () -> PlaceholderContent
 25 |     /// An optional view builder for rendering an error message if the image fails to load.
 26 |     @ViewBuilder var errorView: (Error) -> ErrorContent
    |      `- error: 'ViewBuilder' is only available in macOS 10.15 or newer
 27 |
 28 |     /// The cache manager responsible for caching and retrieving images.
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:43:31: error: 'Image' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
    |                               `- error: 'Image' is only available in macOS 10.15 or newer
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:44:61: error: 'ProgressView' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
    |                                                             |- error: 'ProgressView' is only available in macOS 11.0 or newer
    |                                                             `- note: add 'if #available' version check
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
 46 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:44:61: error: 'init()' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
 42 |         cacheTime: TimeInterval = 3600,
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
    |                                                             |- error: 'init()' is only available in macOS 11.0 or newer
    |                                                             `- note: add 'if #available' version check
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
 46 |     ) {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:67: error: 'Text' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                   |- error: 'Text' is only available in macOS 10.15 or newer
    |                                                                   `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:100: error: 'foregroundStyle' is only available in macOS 14.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                                                    |- error: 'foregroundStyle' is only available in macOS 14.0 or newer
    |                                                                                                    `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:45:117: error: 'red' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 37 |     ///   - placeholder: A view builder for the placeholder. Defaults to a `ProgressView`.
 38 |     ///   - errorView: An optional view builder for handling errors.
 39 |     init(
    |     `- note: add @available attribute to enclosing initializer
 40 |         url: URL?,
 41 |         keepFullRes highRes: Bool = false,
    :
 43 |         imageView: @escaping (Image) -> ImageContent,
 44 |         placeholder: @escaping () -> PlaceholderContent = { ProgressView() },
 45 |         errorView: @escaping (Error) -> ErrorContent = { error in Text(error.localizedDescription).foregroundStyle(.red) }
    |                                                                                                                     |- error: 'red' is only available in macOS 10.15 or newer
    |                                                                                                                     `- note: add 'if #available' version check
 46 |     ) {
 47 |         self.url = url
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:57:6: error: 'State' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 55 |     }
 56 |
 57 |     @State var result: ImagePhase = .idle
    |      `- error: 'State' is only available in macOS 10.15 or newer
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:58:43: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 56 |
 57 |     @State var result: ImagePhase = .idle
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
    |                                           `- error: 'Task' is only available in macOS 10.15 or newer
 59 |
 60 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:58:6: error: 'State' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 56 |
 57 |     @State var result: ImagePhase = .idle
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
    |      `- error: 'State' is only available in macOS 10.15 or newer
 59 |
 60 |     var body: some View {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:60:20: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         |          `- error: 'View' is only available in macOS 10.15 or newer
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:82:48: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  |                             `- error: 'Task' is only available in macOS 10.15 or newer
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:41: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:67: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                                          `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:14:87: error: 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        |                                                                              `- error: 'View' is only available in macOS 10.15 or newer
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:131:2: error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
129 | }
130 |
131 | #Preview {
    |  `- error: 'Preview(_:body:)' is only available in macOS 10.15 or newer
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:5: error: 'ZStack' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |     |- error: 'ZStack' is only available in macOS 10.15 or newer
    |     `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:12: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |            |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:132:12: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
130 |
131 | #Preview {
132 |     ZStack {
    |            |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |            `- note: add 'if #available' version check
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Image' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:133:9: error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
131 | #Preview {
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
    |         |- error: conformance of 'Text' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
134 |             img.resizable()
135 |         } placeholder: {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:134:17: error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
132 |     ZStack {
133 |         CachedNetworkImage(url: URL(string: "https://plus.unsplash.com/premium_photo-1675621503772-fe697f033522?q=80&w=3270&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")) { img in
134 |             img.resizable()
    |                 |- error: 'resizable(capInsets:resizingMode:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
135 |         } placeholder: {
136 |             Text("loading...")
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:136:13: error: 'Text' is only available in macOS 10.15 or newer
134 |             img.resizable()
135 |         } placeholder: {
136 |             Text("loading...")
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
137 |         } errorView: {
138 |             Text($0.localizedDescription)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:138:13: error: 'Text' is only available in macOS 10.15 or newer
136 |             Text("loading...")
137 |         } errorView: {
138 |             Text($0.localizedDescription)
    |             |- error: 'Text' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
139 |                 .foregroundStyle(.red)
140 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:139:18: error: 'foregroundStyle' is only available in macOS 12.0 or newer
137 |         } errorView: {
138 |             Text($0.localizedDescription)
139 |                 .foregroundStyle(.red)
    |                  |- error: 'foregroundStyle' is only available in macOS 12.0 or newer
    |                  `- note: add 'if #available' version check
140 |         }
141 |         .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:139:35: error: 'red' is only available in macOS 10.15 or newer
137 |         } errorView: {
138 |             Text($0.localizedDescription)
139 |                 .foregroundStyle(.red)
    |                                   |- error: 'red' is only available in macOS 10.15 or newer
    |                                   `- note: add 'if #available' version check
140 |         }
141 |         .scaledToFit()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:141:10: error: 'scaledToFit()' is only available in macOS 10.15 or newer
139 |                 .foregroundStyle(.red)
140 |         }
141 |         .scaledToFit()
    |          |- error: 'scaledToFit()' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
142 |         .frame(width: 300)
143 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:142:10: error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
140 |         }
141 |         .scaledToFit()
142 |         .frame(width: 300)
    |          |- error: 'frame(width:height:alignment:)' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
143 |     }
144 | }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:61:9: error: 'ZStack' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
    |         |- error: 'ZStack' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 62 |             switch result {
 63 |             case .idle:
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:61:9: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
    |         |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 62 |             switch result {
 63 |             case .idle:
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:64:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
 63 |             case .idle:
 64 |                 placeholder()
    |                 |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 65 |             case .success(let image):
 66 |                 imageView(image)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:64:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
 63 |             case .idle:
 64 |                 placeholder()
    |                 |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 65 |             case .success(let image):
 66 |                 imageView(image)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:66:17: error: 'buildEither(first:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 64 |                 placeholder()
 65 |             case .success(let image):
 66 |                 imageView(image)
    |                 |- error: 'buildEither(first:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 67 |             case .failure(let error):
 68 |                 errorView(error)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:66:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 64 |                 placeholder()
 65 |             case .success(let image):
 66 |                 imageView(image)
    |                 |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 67 |             case .failure(let error):
 68 |                 errorView(error)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:68:17: error: 'buildEither(second:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 66 |                 imageView(image)
 67 |             case .failure(let error):
 68 |                 errorView(error)
    |                 |- error: 'buildEither(second:)' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 69 |             }
 70 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:61:16: error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
    |                |- error: conformance of '_ConditionalContent<TrueContent, FalseContent>' to 'View' is only available in macOS 10.15 or newer
    |                `- note: add 'if #available' version check
 62 |             switch result {
 63 |             case .idle:
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:71:10: error: 'padding' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 69 |             }
 70 |         }
 71 |         .padding()
    |          |- error: 'padding' is only available in macOS 10.15 or newer
    |          `- note: add 'if #available' version check
 72 |         .onChange(of: url) { newValue in
 73 |             imageDownloadTask?.cancel()
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:72:10: error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 70 |         }
 71 |         .padding()
 72 |         .onChange(of: url) { newValue in
    |          |- error: 'onChange(of:perform:)' is only available in macOS 11.0 or newer
    |          `- note: add 'if #available' version check
 73 |             imageDownloadTask?.cancel()
 74 |             imageDownloadTask = downloadTask(newUrl: newValue)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:73:32: error: 'cancel()' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 71 |         .padding()
 72 |         .onChange(of: url) { newValue in
 73 |             imageDownloadTask?.cancel()
    |                                |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 74 |             imageDownloadTask = downloadTask(newUrl: newValue)
 75 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:74:13: error: setter for 'imageDownloadTask' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 72 |         .onChange(of: url) { newValue in
 73 |             imageDownloadTask?.cancel()
 74 |             imageDownloadTask = downloadTask(newUrl: newValue)
    |             |- error: setter for 'imageDownloadTask' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 75 |         }
 76 |         .task(id: url) {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:76:10: error: 'task(id:priority:_:)' is only available in macOS 12.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 74 |             imageDownloadTask = downloadTask(newUrl: newValue)
 75 |         }
 76 |         .task(id: url) {
    |          |- error: 'task(id:priority:_:)' is only available in macOS 12.0 or newer
    |          `- note: add 'if #available' version check
 77 |             imageDownloadTask?.cancel()
 78 |             imageDownloadTask = downloadTask(newUrl: url)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:77:32: error: 'cancel()' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 75 |         }
 76 |         .task(id: url) {
 77 |             imageDownloadTask?.cancel()
    |                                |- error: 'cancel()' is only available in macOS 10.15 or newer
    |                                `- note: add 'if #available' version check
 78 |             imageDownloadTask = downloadTask(newUrl: url)
 79 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:78:13: error: setter for 'imageDownloadTask' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 58 |     @State private var imageDownloadTask: Task<Void, Never>? = nil
 59 |
 60 |     var body: some View {
    |         `- note: add @available attribute to enclosing property
 61 |         ZStack {
 62 |             switch result {
    :
 76 |         .task(id: url) {
 77 |             imageDownloadTask?.cancel()
 78 |             imageDownloadTask = downloadTask(newUrl: url)
    |             |- error: setter for 'imageDownloadTask' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
 79 |         }
 80 |     }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:83:9: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
    |         |- error: 'Task' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 84 |             do {
 85 |                 if let newUrl {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:83:9: error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
    |         |- error: 'init(priority:operation:)' is only available in macOS 10.15 or newer
    |         `- note: add 'if #available' version check
 84 |             do {
 85 |                 if let newUrl {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:88:21: error: setter for 'result' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 86 |                     try await validateAndLoadFromCache(from: newUrl)
 87 |                 } else {
 88 |                     result = .idle
    |                     |- error: setter for 'result' is only available in macOS 10.15 or newer
    |                     `- note: add 'if #available' version check
 89 |                 }
 90 |             } catch is CancellationError {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:93:17: error: setter for 'result' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 91 |               // Do nothing
 92 |             } catch {
 93 |                 result = .failure(error)
    |                 |- error: setter for 'result' is only available in macOS 10.15 or newer
    |                 `- note: add 'if #available' version check
 94 |                 let nsError = error as NSError
 95 |                 logger.error("\(nsError.domain): \(nsError.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:95:30: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 93 |                 result = .failure(error)
 94 |                 let nsError = error as NSError
 95 |                 logger.error("\(nsError.domain): \(nsError.localizedDescription)")
    |                              |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                              `- note: add 'if #available' version check
 96 |             }
 97 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:95:32: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 93 |                 result = .failure(error)
 94 |                 let nsError = error as NSError
 95 |                 logger.error("\(nsError.domain): \(nsError.localizedDescription)")
    |                                |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                `- note: add 'if #available' version check
 96 |             }
 97 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:95:51: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 93 |                 result = .failure(error)
 94 |                 let nsError = error as NSError
 95 |                 logger.error("\(nsError.domain): \(nsError.localizedDescription)")
    |                                                   |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                   `- note: add 'if #available' version check
 96 |             }
 97 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:90:24: error: 'CancellationError' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 88 |                     result = .idle
 89 |                 }
 90 |             } catch is CancellationError {
    |                        |- error: 'CancellationError' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 91 |               // Do nothing
 92 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:90:24: error: 'CancellationError' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- note: add @available attribute to enclosing instance method
 83 |         Task {
 84 |             do {
    :
 88 |                     result = .idle
 89 |                 }
 90 |             } catch is CancellationError {
    |                        |- error: 'CancellationError' is only available in macOS 10.15 or newer
    |                        `- note: add 'if #available' version check
 91 |               // Do nothing
 92 |             } catch {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:86:31: warning: capture of non-sendable type 'ImageContent.Type' in an isolated closure
 84 |             do {
 85 |                 if let newUrl {
 86 |                     try await validateAndLoadFromCache(from: newUrl)
    |                               `- warning: capture of non-sendable type 'ImageContent.Type' in an isolated closure
 87 |                 } else {
 88 |                     result = .idle
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:86:31: warning: capture of non-sendable type 'PlaceholderContent.Type' in an isolated closure
 84 |             do {
 85 |                 if let newUrl {
 86 |                     try await validateAndLoadFromCache(from: newUrl)
    |                               `- warning: capture of non-sendable type 'PlaceholderContent.Type' in an isolated closure
 87 |                 } else {
 88 |                     result = .idle
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:86:31: warning: capture of non-sendable type 'ErrorContent.Type' in an isolated closure
 84 |             do {
 85 |                 if let newUrl {
 86 |                     try await validateAndLoadFromCache(from: newUrl)
    |                               `- warning: capture of non-sendable type 'ErrorContent.Type' in an isolated closure
 87 |                 } else {
 88 |                     result = .idle
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:82:18: warning: capture of non-sendable type 'ImageContent.Type' in an isolated closure
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- warning: capture of non-sendable type 'ImageContent.Type' in an isolated closure
 83 |         Task {
 84 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:82:18: warning: capture of non-sendable type 'PlaceholderContent.Type' in an isolated closure
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- warning: capture of non-sendable type 'PlaceholderContent.Type' in an isolated closure
 83 |         Task {
 84 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:82:18: warning: capture of non-sendable type 'ErrorContent.Type' in an isolated closure
 80 |     }
 81 |
 82 |     private func downloadTask(newUrl: URL?) -> Task<Void, Never> {
    |                  `- warning: capture of non-sendable type 'ErrorContent.Type' in an isolated closure
 83 |         Task {
 84 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:104:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
100 |     /// Validates and loads an image from the cache or fetches it from the network.
101 |     /// - Parameter url: The URL of the image to load.
102 |     func validateAndLoadFromCache(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
103 |         if let cachedImage = cacheManager.image(for: url) {
104 |             logger.info("Image found in cache for URL: \(url)")
    |                         |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                         `- note: add 'if #available' version check
105 |             self.result = .success(cachedImage)
106 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:104:57: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
100 |     /// Validates and loads an image from the cache or fetches it from the network.
101 |     /// - Parameter url: The URL of the image to load.
102 |     func validateAndLoadFromCache(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
103 |         if let cachedImage = cacheManager.image(for: url) {
104 |             logger.info("Image found in cache for URL: \(url)")
    |                                                         |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                         `- note: add 'if #available' version check
105 |             self.result = .success(cachedImage)
106 |         } else {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:105:13: error: setter for 'result' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
100 |     /// Validates and loads an image from the cache or fetches it from the network.
101 |     /// - Parameter url: The URL of the image to load.
102 |     func validateAndLoadFromCache(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
103 |         if let cachedImage = cacheManager.image(for: url) {
104 |             logger.info("Image found in cache for URL: \(url)")
105 |             self.result = .success(cachedImage)
    |             |- error: setter for 'result' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
106 |         } else {
107 |             logger.info("Image not found in cache for URL: \(url)")
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:107:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
100 |     /// Validates and loads an image from the cache or fetches it from the network.
101 |     /// - Parameter url: The URL of the image to load.
102 |     func validateAndLoadFromCache(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
103 |         if let cachedImage = cacheManager.image(for: url) {
104 |             logger.info("Image found in cache for URL: \(url)")
105 |             self.result = .success(cachedImage)
106 |         } else {
107 |             logger.info("Image not found in cache for URL: \(url)")
    |                         |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                         `- note: add 'if #available' version check
108 |             try await loadImage(from: url)
109 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:107:61: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
100 |     /// Validates and loads an image from the cache or fetches it from the network.
101 |     /// - Parameter url: The URL of the image to load.
102 |     func validateAndLoadFromCache(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
103 |         if let cachedImage = cacheManager.image(for: url) {
104 |             logger.info("Image found in cache for URL: \(url)")
105 |             self.result = .success(cachedImage)
106 |         } else {
107 |             logger.info("Image not found in cache for URL: \(url)")
    |                                                             |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                             `- note: add 'if #available' version check
108 |             try await loadImage(from: url)
109 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:115:13: error: 'Task' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
    |             |- error: 'Task' is only available in macOS 10.15 or newer
    |             `- note: add 'if #available' version check
116 |         logger.info("Downloading image from URL: \(url)")
117 |         let (data, _) = try await URLSession.shared.data(from: url)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:115:18: error: 'checkCancellation()' is only available in macOS 10.15 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
    |                  |- error: 'checkCancellation()' is only available in macOS 10.15 or newer
    |                  `- note: add 'if #available' version check
116 |         logger.info("Downloading image from URL: \(url)")
117 |         let (data, _) = try await URLSession.shared.data(from: url)
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:116:21: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
116 |         logger.info("Downloading image from URL: \(url)")
    |                     |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                     `- note: add 'if #available' version check
117 |         let (data, _) = try await URLSession.shared.data(from: url)
118 |         guard var uiImage = UIImage(data: data) else { throw CachedNetworkImageError.dataNotValidImage }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:116:51: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
116 |         logger.info("Downloading image from URL: \(url)")
    |                                                   |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                   `- note: add 'if #available' version check
117 |         let (data, _) = try await URLSession.shared.data(from: url)
118 |         guard var uiImage = UIImage(data: data) else { throw CachedNetworkImageError.dataNotValidImage }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:117:53: error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
116 |         logger.info("Downloading image from URL: \(url)")
117 |         let (data, _) = try await URLSession.shared.data(from: url)
    |                                                     |- error: 'data(from:delegate:)' is only available in macOS 12.0 or newer
    |                                                     `- note: add 'if #available' version check
118 |         guard var uiImage = UIImage(data: data) else { throw CachedNetworkImageError.dataNotValidImage }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:118:29: error: cannot find 'UIImage' in scope
116 |         logger.info("Downloading image from URL: \(url)")
117 |         let (data, _) = try await URLSession.shared.data(from: url)
118 |         guard var uiImage = UIImage(data: data) else { throw CachedNetworkImageError.dataNotValidImage }
    |                             `- error: cannot find 'UIImage' in scope
119 |
120 |         if highRes == false {
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:121:25: error: 'OSLogMessage' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
116 |         logger.info("Downloading image from URL: \(url)")
    :
119 |
120 |         if highRes == false {
121 |             logger.info("Downsizing image for URL: \(url)")
    |                         |- error: 'OSLogMessage' is only available in macOS 11.0 or newer
    |                         `- note: add 'if #available' version check
122 |             uiImage = await ImageDownSizer.downSize(image: uiImage, by: 2)
123 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:121:53: error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
 12 |
 13 | /// A SwiftUI view for displaying images from the network with caching and placeholder/error handling.
 14 | struct CachedNetworkImage<ImageContent: View, PlaceholderContent: View, ErrorContent: View>: View {
    |        `- note: add @available attribute to enclosing generic struct
 15 |     /// The URL of the image to load.
 16 |     let url: URL?
    :
112 |     /// Downloads and processes an image from the specified URL.
113 |     /// - Parameter url: The URL to download the image from.
114 |     func loadImage(from url: URL) async throws {
    |          `- note: add @available attribute to enclosing instance method
115 |         try Task.checkCancellation()
116 |         logger.info("Downloading image from URL: \(url)")
    :
119 |
120 |         if highRes == false {
121 |             logger.info("Downsizing image for URL: \(url)")
    |                                                     |- error: 'appendInterpolation(_:align:privacy:)' is only available in macOS 11.0 or newer
    |                                                     `- note: add 'if #available' version check
122 |             uiImage = await ImageDownSizer.downSize(image: uiImage, by: 2)
123 |         }
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:69: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                                                     `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/ImageDownSizer.swift:17:32: error: cannot find type 'UIImage' in scope
15 |     ///   - scale: A `CGFloat` value representing the scale factor for resizing. The image's dimensions are divided by this scale.
16 |     /// - Returns: A downsized `UIImage` that maintains the original aspect ratio.
17 |     class func downSize(image: UIImage, by scale: CGFloat) async -> UIImage {
   |                                `- error: cannot find type 'UIImage' in scope
18 |         let currentSize = image.size
19 |         let sizeToFit = currentSize / scale
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CacheManager.swift:63:23: error: cannot find type 'UIImage' in scope
61 |     ///   - image: The `UIImage` to cache.
62 |     ///   - key: The `URL` key to associate with the image.
63 |     func store(image: UIImage, for key: URL) {
   |                       `- error: cannot find type 'UIImage' in scope
64 |         let key = key.absoluteString as NSString
65 |
/Users/admin/builder/spi-builder-workspace/Sources/CachedNetworkImage/CachedNetworkImage.swift:126:21: error: no exact matches in call to initializer
124 |         cacheManager.store(image: uiImage, for: url)
125 |
126 |         let image = Image(uiImage: uiImage)
    |                     `- error: no exact matches in call to initializer
127 |         self.result = .success(image)
128 |     }
SwiftUI.Image.init:2:8: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | struct Image {
2 | public init(_ name: String, bundle: Bundle? = nil)}
  |        `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
3 |
SwiftUI.Image.init:2:8: note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
1 | struct Image {
2 | public init(_ resource: ImageResource)}
  |        `- note: incorrect labels for candidate (have: '(uiImage:)', expected: '(_:)')
3 |
BUILD FAILURE 6.2 macosSpm