Build Information
Failed to build SwiftDownloadManager, reference v1.0.1 (726241
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 22:08:26 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vberihuete/swift-download-manager.git
Reference: v1.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/vberihuete/swift-download-manager
* tag v1.0.1 -> FETCH_HEAD
HEAD is now at 7262416 Update README.md
Cloned https://github.com/vberihuete/swift-download-manager.git
Revision (git rev-parse @):
7262416973bb1f4b26b6367d0f199d11bd6d4cce
SUCCESS checkout https://github.com/vberihuete/swift-download-manager.git at v1.0.1
Fetching https://github.com/mattgallagher/CwlPreconditionTesting.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/mattgallagher/CwlCatchException.git
Fetching https://github.com/Quick/Nimble.git
[1/1257] Fetching cwlpreconditiontesting
[39/1712] Fetching cwlpreconditiontesting, cwlcatchexception
Fetched https://github.com/mattgallagher/CwlPreconditionTesting.git from cache (0.74s)
[1/19567] Fetching nimble
[2/34322] Fetching nimble, quick
Fetched https://github.com/mattgallagher/CwlCatchException.git from cache (1.64s)
Fetched https://github.com/Quick/Quick.git from cache (1.64s)
Fetched https://github.com/Quick/Nimble.git from cache (1.64s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 4.0.0 (2.27s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 9.2.1 (0.60s)
Computing version for https://github.com/mattgallagher/CwlPreconditionTesting.git
Computed https://github.com/mattgallagher/CwlPreconditionTesting.git at 2.1.0 (0.58s)
Computing version for https://github.com/mattgallagher/CwlCatchException.git
Computed https://github.com/mattgallagher/CwlCatchException.git at 2.1.1 (0.57s)
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 4.0.0
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
========================================
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.64s)
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 v1.0.1 (7262416)
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.1
Building package at path: $PWD
https://github.com/vberihuete/swift-download-manager.git
https://github.com/vberihuete/swift-download-manager.git
{
"dependencies" : [
{
"identity" : "nimble",
"requirement" : {
"range" : [
{
"lower_bound" : "9.2.1",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Nimble.git"
},
{
"identity" : "quick",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Quick/Quick.git"
}
],
"manifest_display_name" : "SwiftDownloadManager",
"name" : "SwiftDownloadManager",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "SwiftDownloadManager",
"targets" : [
"swift-download-manager"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "swift_download_managerTests",
"module_type" : "SwiftTarget",
"name" : "swift-download-managerTests",
"path" : "Tests/swift-download-managerTests",
"product_dependencies" : [
"Quick",
"Nimble"
],
"sources" : [
"Interactor/DownloadInteractorSpec.swift",
"Interactor/ObservableURLDownloadTaskInteractorSpec.swift",
"Mocks/DownloadRepositoryMock.swift",
"Mocks/DownloadStorageServiceMock.swift",
"Mocks/FileManagerInteractorMock.swift",
"Mocks/MockFunc.swift",
"Mocks/ObservableURLDownloadTaskInteractorMock.swift",
"Mocks/URLSessionDelegateMock.swift",
"Mocks/URLSessionServiceMock.swift",
"Repository/DownloadRepositorySpec.swift",
"Repository/DownloadStorageServiceSpec.swift"
],
"target_dependencies" : [
"swift-download-manager"
],
"type" : "test"
},
{
"c99name" : "swift_download_manager",
"module_type" : "SwiftTarget",
"name" : "swift-download-manager",
"path" : "Sources/swift-download-manager",
"product_memberships" : [
"SwiftDownloadManager"
],
"sources" : [
"Interactor/Cases/DefaultDownloadInteractor.swift",
"Interactor/Cases/EntityDownloadInteractor.swift",
"Interactor/Cases/ImageDownloaderInteractor.swift",
"Interactor/DownloadInteractor.swift",
"Interactor/FileManagerInteractor.swift",
"Interactor/ObservableURLDownloadTaskInteractor.swift",
"Interactor/URLSessionService.swift",
"Repository/Download/DownloadRepository.swift",
"Repository/Download/Model/CompletedDownload.swift",
"Repository/Download/Model/Download.swift",
"Repository/Download/Model/DownloadProgress.swift",
"Repository/Download/Model/InterruptedDownload.swift",
"Repository/Download/Service/DownloadStorageService.swift",
"Utility/DownloadError.swift",
"Utility/IgnoreEquatable.swift"
],
"type" : "library"
}
],
"tools_version" : "5.5"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/17] Compiling swift_download_manager DownloadError.swift
[4/18] Compiling swift_download_manager DownloadProgress.swift
[5/18] Compiling swift_download_manager CompletedDownload.swift
[6/18] Compiling swift_download_manager Download.swift
[7/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 {
[8/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 {
[9/18] Compiling swift_download_manager URLSessionService.swift
[10/18] Compiling swift_download_manager DownloadRepository.swift
[11/18] Compiling swift_download_manager InterruptedDownload.swift
[12/18] Compiling swift_download_manager DownloadStorageService.swift
[13/18] Compiling swift_download_manager IgnoreEquatable.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/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 {
[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
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
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
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
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
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
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
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
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))
[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))
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/16] Compiling swift_download_manager DownloadError.swift
[3/16] Compiling swift_download_manager DownloadStorageService.swift
[4/16] Compiling swift_download_manager InterruptedDownload.swift
[5/16] Compiling swift_download_manager URLSessionService.swift
[6/16] Compiling swift_download_manager DownloadRepository.swift
[7/16] Compiling swift_download_manager DownloadProgress.swift
[8/16] Compiling swift_download_manager CompletedDownload.swift
[9/16] Compiling swift_download_manager Download.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/17] Compiling swift_download_manager FileManagerInteractor.swift
[11/17] Compiling swift_download_manager ObservableURLDownloadTaskInteractor.swift
[12/17] 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))
[13/17] 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)
[14/17] 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)
[15/17] 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))
[16/17] 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))
[17/17] Compiling swift_download_manager IgnoreEquatable.swift
BUILD FAILURE 6.1 macosSpm