The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SwiftDownloadManager, reference main (98d8f5), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 08:12:43 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vberihuete/swift-download-manager.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vberihuete/swift-download-manager
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 98d8f5d Create CONTRIBUTING.md
Cloned https://github.com/vberihuete/swift-download-manager.git
Revision (git rev-parse @):
98d8f5d2012ed6ff615490fa7a4d68b260f5e84d
SUCCESS checkout https://github.com/vberihuete/swift-download-manager.git at main
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
[5/455] Fetching cwlcatchexception
[193/1712] Fetching cwlcatchexception, cwlpreconditiontesting
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.87s)
[1/14723] Fetching quick
[14724/33941] Fetching quick, nimble
Fetched https://github.com/Quick/Nimble.git from cache (2.87s)
Fetched https://github.com/Quick/Quick.git from cache (2.87s)
Computing version for https://github.com/Quick/Quick.git
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (2.87s)
Computed https://github.com/Quick/Quick.git at 4.0.0 (0.88s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 9.2.1 (0.68s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (0.67s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.67s)
Creating working copy for https://github.com/mattgallagher/CwlCatchException.git
Working copy of https://github.com/mattgallagher/CwlCatchException.git resolved at 2.1.1
Creating working copy for https://github.com/mattgallagher/CwlPreconditionTesting.git
Working copy of https://github.com/mattgallagher/CwlPreconditionTesting.git resolved at 2.1.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 9.2.1
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 4.0.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swift-download-manager",
      "name": "SwiftDownloadManager",
      "url": "https://github.com/vberihuete/swift-download-manager.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-download-manager",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/vberihuete/swift-download-manager.git
[1/124] Fetching swift-download-manager
Fetched https://github.com/vberihuete/swift-download-manager.git from cache (0.68s)
Creating working copy for https://github.com/vberihuete/swift-download-manager.git
Working copy of https://github.com/vberihuete/swift-download-manager.git resolved at main (98d8f5d)
warning: '.resolve-product-dependencies': dependency 'swift-download-manager' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/vberihuete/swift-download-manager.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/17] Compiling swift_download_manager DownloadStorageService.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/18] Emitting module swift_download_manager
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:27:39: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
23 |     }
24 |
25 |     public func getOrDownloadEntity(
   |                 `- note: add @available attribute to enclosing instance method
26 |         remoteUrl url: URL,
27 |         completion: @escaping (Result<ModelEntity, DownloadError>) -> Void
   |                                       `- error: 'ModelEntity' is only available in macOS 10.15 or newer
28 |     ) {
29 |         if let localUrl = downloadInteractor.getDownloadDataUrl(with: url.absoluteString) {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:48:69: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  |                                                  `- error: 'ModelEntity' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:26:54: error: cannot find type 'UIImage' in scope
24 |     }
25 |
26 |     public func getImage(with identifier: String) -> UIImage? {
   |                                                      `- error: cannot find type 'UIImage' in scope
27 |         downloadInteractor.getDownloadedData(with: identifier).flatMap {
28 |             UIImage(data: $0)
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:32:86: error: cannot find type 'UIImage' in scope
30 |     }
31 |
32 |     public func getOrDownloadImage(remoteUrl url: URL, completion: @escaping (Result<UIImage, DownloadError>) -> Void) {
   |                                                                                      `- error: cannot find type 'UIImage' in scope
33 |         if let image = getImage(with: url.absoluteString) {
34 |             completion(.success(image))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:17:17: warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
15 |
16 | final class ObservableURLDownloadTaskInteractor: NSObject, ObservableURLDownloadTaskInteractorProtocol {
17 |     private let urlSessionService: URLSessionServiceProtocol
   |                 `- warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
18 |
19 |     init(
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/URLSessionService.swift:10:10: note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | protocol URLSessionServiceProtocol {
   |          `- note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
11 |     func downloadTask(with url: URL, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
12 |     func resumeDownload(data: Data, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:24:9: warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
22 |         self.urlSessionService = urlSessionService
23 |     }
24 |     var didReportAction: (ObservableDownloadAction) -> Void = { _ in }
   |         `- warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
25 |
26 |     func download(from url: URL) -> URLSessionDownloadTask {
[5/18] Compiling swift_download_manager CompletedDownload.swift
[6/18] Compiling swift_download_manager Download.swift
[7/18] Compiling swift_download_manager InterruptedDownload.swift
[8/18] Compiling swift_download_manager FileManagerInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:17:17: warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
15 |
16 | final class ObservableURLDownloadTaskInteractor: NSObject, ObservableURLDownloadTaskInteractorProtocol {
17 |     private let urlSessionService: URLSessionServiceProtocol
   |                 `- warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
18 |
19 |     init(
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/URLSessionService.swift:10:10: note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | protocol URLSessionServiceProtocol {
   |          `- note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
11 |     func downloadTask(with url: URL, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
12 |     func resumeDownload(data: Data, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:24:9: warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
22 |         self.urlSessionService = urlSessionService
23 |     }
24 |     var didReportAction: (ObservableDownloadAction) -> Void = { _ in }
   |         `- warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
25 |
26 |     func download(from url: URL) -> URLSessionDownloadTask {
[9/18] Compiling swift_download_manager ObservableURLDownloadTaskInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:17:17: warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
15 |
16 | final class ObservableURLDownloadTaskInteractor: NSObject, ObservableURLDownloadTaskInteractorProtocol {
17 |     private let urlSessionService: URLSessionServiceProtocol
   |                 `- warning: stored property 'urlSessionService' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' has non-sendable type 'any URLSessionServiceProtocol'; this is an error in the Swift 6 language mode
18 |
19 |     init(
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/URLSessionService.swift:10:10: note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | protocol URLSessionServiceProtocol {
   |          `- note: protocol 'URLSessionServiceProtocol' does not conform to the 'Sendable' protocol
11 |     func downloadTask(with url: URL, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
12 |     func resumeDownload(data: Data, delegate: URLSessionDownloadDelegate) -> URLSessionDownloadTask
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/ObservableURLDownloadTaskInteractor.swift:24:9: warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
22 |         self.urlSessionService = urlSessionService
23 |     }
24 |     var didReportAction: (ObservableDownloadAction) -> Void = { _ in }
   |         `- warning: stored property 'didReportAction' of 'Sendable'-conforming class 'ObservableURLDownloadTaskInteractor' is mutable; this is an error in the Swift 6 language mode
25 |
26 |     func download(from url: URL) -> URLSessionDownloadTask {
[10/18] Compiling swift_download_manager DownloadProgress.swift
[11/18] Compiling swift_download_manager URLSessionService.swift
[12/18] Compiling swift_download_manager DownloadRepository.swift
[13/18] Compiling swift_download_manager DownloadError.swift
[14/18] Compiling swift_download_manager IgnoreEquatable.swift
[15/18] Compiling swift_download_manager ImageDownloaderInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:26:54: error: cannot find type 'UIImage' in scope
24 |     }
25 |
26 |     public func getImage(with identifier: String) -> UIImage? {
   |                                                      `- error: cannot find type 'UIImage' in scope
27 |         downloadInteractor.getDownloadedData(with: identifier).flatMap {
28 |             UIImage(data: $0)
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:32:86: error: cannot find type 'UIImage' in scope
30 |     }
31 |
32 |     public func getOrDownloadImage(remoteUrl url: URL, completion: @escaping (Result<UIImage, DownloadError>) -> Void) {
   |                                                                                      `- error: cannot find type 'UIImage' in scope
33 |         if let image = getImage(with: url.absoluteString) {
34 |             completion(.success(image))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:34:25: error: cannot infer contextual base in reference to member 'success'
32 |     public func getOrDownloadImage(remoteUrl url: URL, completion: @escaping (Result<UIImage, DownloadError>) -> Void) {
33 |         if let image = getImage(with: url.absoluteString) {
34 |             completion(.success(image))
   |                         `- error: cannot infer contextual base in reference to member 'success'
35 |         } else {
36 |             let download = Download(identifier: url.absoluteString, url: url)
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/DownloadInteractor.swift:94:31: warning: capture of 'downloadTask' with non-sendable type 'Dictionary<Download, DownloadTask>.Element' (aka '(key: Download, value: DownloadTask)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |             downloadTask.value.downloadTask.cancel { [downloadRepository] data in
 93 |                 guard
 94 |                     let url = downloadTask.value.downloadTask.originalRequest?.url?.absoluteString,
    |                               `- warning: capture of 'downloadTask' with non-sendable type 'Dictionary<Download, DownloadTask>.Element' (aka '(key: Download, value: DownloadTask)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                     let download = downloadRepository.getActiveDownloads().first(where: { $0.url.absoluteString == url }),
 96 |                     let resumeData = data
    :
135 | }
136 |
137 | private struct DownloadTask: Equatable {
    |                `- note: consider making struct 'DownloadTask' conform to the 'Sendable' protocol
138 |     let downloadTask: URLSessionDownloadTask
139 |     @IgnoreEquatable var completion: (Result<CompletedDownload, DownloadError>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/DownloadInteractor.swift:95:36: warning: capture of 'downloadRepository' with non-sendable type 'any DownloadRepositoryProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 93 |                 guard
 94 |                     let url = downloadTask.value.downloadTask.originalRequest?.url?.absoluteString,
 95 |                     let download = downloadRepository.getActiveDownloads().first(where: { $0.url.absoluteString == url }),
    |                                    `- warning: capture of 'downloadRepository' with non-sendable type 'any DownloadRepositoryProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |                     let resumeData = data
 97 |                 else { return }
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Repository/Download/DownloadRepository.swift:10:10: note: protocol 'DownloadRepositoryProtocol' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | protocol DownloadRepositoryProtocol {
   |          `- note: protocol 'DownloadRepositoryProtocol' does not conform to the 'Sendable' protocol
11 |     func getActiveDownloads() -> [Download]
12 |     func getInterruptedDownloads() -> [InterruptedDownload]
[16/18] Compiling swift_download_manager DownloadInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:26:54: error: cannot find type 'UIImage' in scope
24 |     }
25 |
26 |     public func getImage(with identifier: String) -> UIImage? {
   |                                                      `- error: cannot find type 'UIImage' in scope
27 |         downloadInteractor.getDownloadedData(with: identifier).flatMap {
28 |             UIImage(data: $0)
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:32:86: error: cannot find type 'UIImage' in scope
30 |     }
31 |
32 |     public func getOrDownloadImage(remoteUrl url: URL, completion: @escaping (Result<UIImage, DownloadError>) -> Void) {
   |                                                                                      `- error: cannot find type 'UIImage' in scope
33 |         if let image = getImage(with: url.absoluteString) {
34 |             completion(.success(image))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/ImageDownloaderInteractor.swift:34:25: error: cannot infer contextual base in reference to member 'success'
32 |     public func getOrDownloadImage(remoteUrl url: URL, completion: @escaping (Result<UIImage, DownloadError>) -> Void) {
33 |         if let image = getImage(with: url.absoluteString) {
34 |             completion(.success(image))
   |                         `- error: cannot infer contextual base in reference to member 'success'
35 |         } else {
36 |             let download = Download(identifier: url.absoluteString, url: url)
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/DownloadInteractor.swift:94:31: warning: capture of 'downloadTask' with non-sendable type 'Dictionary<Download, DownloadTask>.Element' (aka '(key: Download, value: DownloadTask)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |             downloadTask.value.downloadTask.cancel { [downloadRepository] data in
 93 |                 guard
 94 |                     let url = downloadTask.value.downloadTask.originalRequest?.url?.absoluteString,
    |                               `- warning: capture of 'downloadTask' with non-sendable type 'Dictionary<Download, DownloadTask>.Element' (aka '(key: Download, value: DownloadTask)') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                     let download = downloadRepository.getActiveDownloads().first(where: { $0.url.absoluteString == url }),
 96 |                     let resumeData = data
    :
135 | }
136 |
137 | private struct DownloadTask: Equatable {
    |                `- note: consider making struct 'DownloadTask' conform to the 'Sendable' protocol
138 |     let downloadTask: URLSessionDownloadTask
139 |     @IgnoreEquatable var completion: (Result<CompletedDownload, DownloadError>) -> Void
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/DownloadInteractor.swift:95:36: warning: capture of 'downloadRepository' with non-sendable type 'any DownloadRepositoryProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 93 |                 guard
 94 |                     let url = downloadTask.value.downloadTask.originalRequest?.url?.absoluteString,
 95 |                     let download = downloadRepository.getActiveDownloads().first(where: { $0.url.absoluteString == url }),
    |                                    `- warning: capture of 'downloadRepository' with non-sendable type 'any DownloadRepositoryProtocol' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |                     let resumeData = data
 97 |                 else { return }
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Repository/Download/DownloadRepository.swift:10:10: note: protocol 'DownloadRepositoryProtocol' does not conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | protocol DownloadRepositoryProtocol {
   |          `- note: protocol 'DownloadRepositoryProtocol' does not conform to the 'Sendable' protocol
11 |     func getActiveDownloads() -> [Download]
12 |     func getInterruptedDownloads() -> [InterruptedDownload]
[17/18] Compiling swift_download_manager DefaultDownloadInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:27:39: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
23 |     }
24 |
25 |     public func getOrDownloadEntity(
   |                 `- note: add @available attribute to enclosing instance method
26 |         remoteUrl url: URL,
27 |         completion: @escaping (Result<ModelEntity, DownloadError>) -> Void
   |                                       `- error: 'ModelEntity' is only available in macOS 10.15 or newer
28 |     ) {
29 |         if let localUrl = downloadInteractor.getDownloadDataUrl(with: url.absoluteString) {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:48:69: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  |                                                  `- error: 'ModelEntity' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:41: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                                         |- error: 'ModelEntity' is only available in macOS 10.15 or newer
   |                                         `- note: add 'if #available' version check
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:53: error: 'loadModel(contentsOf:withName:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                                                     |- error: 'loadModel(contentsOf:withName:)' is only available in macOS 10.15 or newer
   |                                                     `- note: add 'if #available' version check
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:21: warning: capture of 'completion' with non-sendable type '(Result<ModelEntity, DownloadError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                     |- warning: capture of 'completion' with non-sendable type '(Result<ModelEntity, DownloadError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
[18/18] Compiling swift_download_manager EntityDownloadInteractor.swift
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:27:39: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
23 |     }
24 |
25 |     public func getOrDownloadEntity(
   |                 `- note: add @available attribute to enclosing instance method
26 |         remoteUrl url: URL,
27 |         completion: @escaping (Result<ModelEntity, DownloadError>) -> Void
   |                                       `- error: 'ModelEntity' is only available in macOS 10.15 or newer
28 |     ) {
29 |         if let localUrl = downloadInteractor.getDownloadDataUrl(with: url.absoluteString) {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:48:69: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  |                                                  `- error: 'ModelEntity' is only available in macOS 10.15 or newer
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:41: error: 'ModelEntity' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                                         |- error: 'ModelEntity' is only available in macOS 10.15 or newer
   |                                         `- note: add 'if #available' version check
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:53: error: 'loadModel(contentsOf:withName:)' is only available in macOS 10.15 or newer
10 |
11 | @available(iOS 13, *)
12 | public final class EntityDownloadInteractor {
   |                    `- note: add @available attribute to enclosing class
13 |     private let downloadInteractor: DownloadInteractorProtocol
14 |
   :
46 |     }
47 |
48 |     private func loadEntity(url: URL, completion: @escaping (Result<ModelEntity, DownloadError>) -> Void) {
   |                  `- note: add @available attribute to enclosing instance method
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                                                     |- error: 'loadModel(contentsOf:withName:)' is only available in macOS 10.15 or newer
   |                                                     `- note: add 'if #available' version check
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
/Users/admin/builder/spi-builder-workspace/Sources/swift-download-manager/Interactor/Cases/EntityDownloadInteractor.swift:51:21: warning: capture of 'completion' with non-sendable type '(Result<ModelEntity, DownloadError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |         DispatchQueue.main.async {
50 |             do {
51 |                 try completion(.success(ModelEntity.loadModel(contentsOf: url)))
   |                     |- warning: capture of 'completion' with non-sendable type '(Result<ModelEntity, DownloadError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
52 |             } catch {
53 |                 completion(.failure(.loadEntity))
BUILD FAILURE 6.0 macosSpm