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 AlamofireImage with Swift 5.8 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Alamofire/AlamofireImage.git
Reference: master
Cloned https://github.com/Alamofire/AlamofireImage.git into spi-builder-workspace
SUCCESS checkout https://github.com/Alamofire/AlamofireImage.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build 2>&1
Fetching https://github.com/Alamofire/Alamofire.git
[1/27268] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git (2.64s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.8.0 (0.32s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.8.0
Building for debugging...
[1/34] Compiling Alamofire Session.swift
[2/34] Compiling Alamofire SessionDelegate.swift
[3/34] Compiling Alamofire StringEncoding+Alamofire.swift
[4/34] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[5/38] Compiling Alamofire ResponseSerialization.swift
[6/38] Compiling Alamofire Result+Alamofire.swift
[7/38] Compiling Alamofire RetryPolicy.swift
[8/38] Compiling Alamofire ServerTrustEvaluation.swift
[9/38] Compiling Alamofire OperationQueue+Alamofire.swift
[10/38] Compiling Alamofire ParameterEncoder.swift
[11/38] Compiling Alamofire ParameterEncoding.swift
[12/38] Compiling Alamofire Protected.swift
[13/38] Compiling Alamofire RedirectHandler.swift
[14/38] Compiling Alamofire HTTPMethod.swift
[15/38] Compiling Alamofire MultipartFormData.swift
[16/38] Compiling Alamofire MultipartUpload.swift
[17/38] Compiling Alamofire NetworkReachabilityManager.swift
[18/38] Compiling Alamofire Notifications.swift
[19/38] Compiling Alamofire Request.swift
[20/38] Compiling Alamofire RequestCompression.swift
[21/38] Compiling Alamofire RequestInterceptor.swift
[22/38] Compiling Alamofire RequestTaskMap.swift
[23/38] Compiling Alamofire Response.swift
[24/38] Compiling Alamofire Combine.swift
[25/38] Compiling Alamofire Concurrency.swift
[26/38] Compiling Alamofire DispatchQueue+Alamofire.swift
[27/38] Compiling Alamofire EventMonitor.swift
[28/38] Compiling Alamofire HTTPHeaders.swift
[29/38] Emitting module Alamofire
[30/38] Compiling Alamofire AFError.swift
[31/38] Compiling Alamofire Alamofire.swift
[32/38] Compiling Alamofire AlamofireExtended.swift
[33/38] Compiling Alamofire AuthenticationInterceptor.swift
[34/38] Compiling Alamofire CachedResponseHandler.swift
[35/38] Compiling Alamofire URLEncodedFormEncoder.swift
[36/38] Compiling Alamofire URLRequest+Alamofire.swift
[37/38] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[38/38] Compiling Alamofire Validation.swift
[41/49] Compiling AlamofireImage UIButton+AlamofireImage.swift
[42/49] Compiling AlamofireImage UIImage+AlamofireImage.swift
[43/50] Compiling AlamofireImage Request+AlamofireImage.swift
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:105:113: error: cannot find type 'Image' in scope
    open func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Image {
                                                                                                                ^~~~~
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:123:57: error: cannot find type 'Image' in scope
    open func serializeImage(from data: Data) throws -> Image {
                                                        ^~~~~
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:37:12: error: type 'ImageResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
open class ImageResponseSerializer: ResponseSerializer {
           ^
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:37:12: error: type 'ImageResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
open class ImageResponseSerializer: ResponseSerializer {
           ^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; do you want to add it?
    associatedtype SerializedObject
                   ^
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:280:137: error: cannot find type 'Image' in scope
                                 emptyRequestMethods: Set<HTTPMethod> = ImageResponseSerializer.defaultEmptyRequestMethods) -> DataTask<Image> {
                                                                                                                                        ^~~~~
[44/50] Compiling AlamofireImage ImageFilter.swift
/host/spi-builder-workspace/Source/ImageFilter.swift:38:18: error: cannot find type 'Image' in scope
    var filter: (Image) -> Image { get }
                 ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:38:28: error: cannot find type 'Image' in scope
    var filter: (Image) -> Image { get }
                           ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:91:25: error: cannot find type 'Image' in scope
    public let filter: (Image) -> Image
                        ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:91:35: error: cannot find type 'Image' in scope
    public let filter: (Image) -> Image
                                  ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:99:58: error: cannot find type 'Image' in scope
    public init(_ identifier: String, filter: @escaping (Image) -> Image) {
                                                         ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:99:68: error: cannot find type 'Image' in scope
    public init(_ identifier: String, filter: @escaping (Image) -> Image) {
                                                                   ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:120:25: error: cannot find type 'Image' in scope
    public var filter: (Image) -> Image {
                        ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:120:35: error: cannot find type 'Image' in scope
    public var filter: (Image) -> Image {
                                  ^~~~~
[45/50] Compiling AlamofireImage UIImageView+AlamofireImage.swift
[46/50] Compiling AlamofireImage ImageDownloader.swift
/host/spi-builder-workspace/Source/ImageDownloader.swift:67:59: error: cannot find type 'Image' in scope
    public typealias CompletionHandler = (AFIDataResponse<Image>) -> Void
                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:56:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, for request: URLRequest, withIdentifier identifier: String?)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:62:80: error: cannot find type 'Image' in scope
    func image(for request: URLRequest, withIdentifier identifier: String?) -> Image?
                                                                               ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:39:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, withIdentifier identifier: String)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:49:54: error: cannot find type 'Image' in scope
    func image(withIdentifier identifier: String) -> Image?
                                                     ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:122:98: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.synchronizationqueue-%08x%08x", arc4random(), arc4random())
                                                                                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:122:112: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.synchronizationqueue-%08x%08x", arc4random(), arc4random())
                                                                                                               ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:127:91: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.responsequeue-%08x%08x", arc4random(), arc4random())
                                                                                          ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:127:105: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.responsequeue-%08x%08x", arc4random(), arc4random())
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:311:60: error: cannot find type 'Image' in scope
                            let response = AFIDataResponse<Image>(request: urlRequest.urlRequest,
                                                           ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:301:38: error: cannot find type 'Image' in scope
                    let cachedImage: Image?
                                     ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:312:77: error: 'nil' requires a contextual type
                                                                  response: nil,
                                                                            ^
/host/spi-builder-workspace/Source/ImageDownloader.swift:313:73: error: 'nil' requires a contextual type
                                                                  data: nil,
                                                                        ^
/host/spi-builder-workspace/Source/ImageDownloader.swift:314:76: error: 'nil' requires a contextual type
                                                                  metrics: nil,
                                                                           ^
/host/spi-builder-workspace/Source/ImageDownloader.swift:316:76: error: cannot infer contextual base in reference to member 'success'
                                                                  result: .success(image))
                                                                          ~^~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:387:77: error: cannot find type 'Image' in scope
                                             let response = AFIDataResponse<Image>(request: response.request,
                                                                            ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:367:61: error: cannot find type 'Image' in scope
                                         var filteredImage: Image
                                                            ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:392:93: error: cannot infer contextual base in reference to member 'success'
                                                                                   result: .success(filteredImage))
                                                                                           ~^~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:476:47: error: cannot find type 'Image' in scope
                let response: AFIDataResponse<Image> = {
                                              ^~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/50] Compiling AlamofireImage AFIError.swift
[48/50] Compiling AlamofireImage Image.swift
[49/50] Emitting module AlamofireImage
/host/spi-builder-workspace/Source/ImageCache.swift:39:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, withIdentifier identifier: String)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:49:54: error: cannot find type 'Image' in scope
    func image(withIdentifier identifier: String) -> Image?
                                                     ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:56:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, for request: URLRequest, withIdentifier identifier: String?)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:62:80: error: cannot find type 'Image' in scope
    func image(for request: URLRequest, withIdentifier identifier: String?) -> Image?
                                                                               ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:73:20: error: cannot find type 'Image' in scope
        let image: Image
                   ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:78:23: error: cannot find type 'Image' in scope
        init(_ image: Image, identifier: String) {
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:98:31: error: cannot find type 'Image' in scope
        func accessImage() -> Image {
                              ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:172:28: error: cannot find type 'Image' in scope
    open func add(_ image: Image, for request: URLRequest, withIdentifier identifier: String? = nil) {
                           ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:181:28: error: cannot find type 'Image' in scope
    open func add(_ image: Image, withIdentifier identifier: String) {
                           ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:280:25: error: Objective-C interoperability is disabled
    @discardableResult @objc
                       ~^~~~
                       
/host/spi-builder-workspace/Source/ImageCache.swift:304:91: error: cannot find type 'Image' in scope
    open func image(for request: URLRequest, withIdentifier identifier: String? = nil) -> Image? {
                                                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:314:59: error: cannot find type 'Image' in scope
    open func image(withIdentifier identifier: String) -> Image? {
                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:67:59: error: cannot find type 'Image' in scope
    public typealias CompletionHandler = (AFIDataResponse<Image>) -> Void
                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:122:98: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.synchronizationqueue-%08x%08x", arc4random(), arc4random())
                                                                                                 ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:122:112: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.synchronizationqueue-%08x%08x", arc4random(), arc4random())
                                                                                                               ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:127:91: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.responsequeue-%08x%08x", arc4random(), arc4random())
                                                                                          ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageDownloader.swift:127:105: error: cannot find 'arc4random' in scope
        let name = String(format: "org.alamofire.imagedownloader.responsequeue-%08x%08x", arc4random(), arc4random())
                                                                                                        ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:38:18: error: cannot find type 'Image' in scope
    var filter: (Image) -> Image { get }
                 ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:38:28: error: cannot find type 'Image' in scope
    var filter: (Image) -> Image { get }
                           ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:91:25: error: cannot find type 'Image' in scope
    public let filter: (Image) -> Image
                        ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:91:35: error: cannot find type 'Image' in scope
    public let filter: (Image) -> Image
                                  ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:99:58: error: cannot find type 'Image' in scope
    public init(_ identifier: String, filter: @escaping (Image) -> Image) {
                                                         ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:99:68: error: cannot find type 'Image' in scope
    public init(_ identifier: String, filter: @escaping (Image) -> Image) {
                                                                   ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:120:25: error: cannot find type 'Image' in scope
    public var filter: (Image) -> Image {
                        ^~~~~
/host/spi-builder-workspace/Source/ImageFilter.swift:120:35: error: cannot find type 'Image' in scope
    public var filter: (Image) -> Image {
                                  ^~~~~
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:105:113: error: cannot find type 'Image' in scope
    open func serialize(request: URLRequest?, response: HTTPURLResponse?, data: Data?, error: Error?) throws -> Image {
                                                                                                                ^~~~~
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:123:57: error: cannot find type 'Image' in scope
    open func serializeImage(from data: Data) throws -> Image {
                                                        ^~~~~
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:37:12: error: type 'ImageResponseSerializer' does not conform to protocol 'DataResponseSerializerProtocol'
open class ImageResponseSerializer: ResponseSerializer {
           ^
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:37:12: error: type 'ImageResponseSerializer' does not conform to protocol 'DownloadResponseSerializerProtocol'
open class ImageResponseSerializer: ResponseSerializer {
           ^
/host/spi-builder-workspace/.build/checkouts/Alamofire/Source/ResponseSerialization.swift:32:20: note: protocol requires nested type 'SerializedObject'; do you want to add it?
    associatedtype SerializedObject
                   ^
/host/spi-builder-workspace/Source/Request+AlamofireImage.swift:280:137: error: cannot find type 'Image' in scope
                                 emptyRequestMethods: Set<HTTPMethod> = ImageResponseSerializer.defaultEmptyRequestMethods) -> DataTask<Image> {
                                                                                                                                        ^~~~~
[50/50] Compiling AlamofireImage ImageCache.swift
/host/spi-builder-workspace/Source/ImageCache.swift:39:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, withIdentifier identifier: String)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:49:54: error: cannot find type 'Image' in scope
    func image(withIdentifier identifier: String) -> Image?
                                                     ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:56:23: error: cannot find type 'Image' in scope
    func add(_ image: Image, for request: URLRequest, withIdentifier identifier: String?)
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:62:80: error: cannot find type 'Image' in scope
    func image(for request: URLRequest, withIdentifier identifier: String?) -> Image?
                                                                               ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:73:20: error: cannot find type 'Image' in scope
        let image: Image
                   ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:78:23: error: cannot find type 'Image' in scope
        init(_ image: Image, identifier: String) {
                      ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:98:31: error: cannot find type 'Image' in scope
        func accessImage() -> Image {
                              ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:172:28: error: cannot find type 'Image' in scope
    open func add(_ image: Image, for request: URLRequest, withIdentifier identifier: String? = nil) {
                           ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:181:28: error: cannot find type 'Image' in scope
    open func add(_ image: Image, withIdentifier identifier: String) {
                           ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:280:25: error: Objective-C interoperability is disabled
    @discardableResult @objc
                       ~^~~~
                       
/host/spi-builder-workspace/Source/ImageCache.swift:304:91: error: cannot find type 'Image' in scope
    open func image(for request: URLRequest, withIdentifier identifier: String? = nil) -> Image? {
                                                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:314:59: error: cannot find type 'Image' in scope
    open func image(withIdentifier identifier: String) -> Image? {
                                                          ^~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:91:35: error: cannot find 'size' in scope
                let bytesPerRow = size.width * bytesPerPixel
                                  ^~~~
/host/spi-builder-workspace/Source/ImageCache.swift:92:63: error: cannot find 'size' in scope
                let totalBytes = UInt64(bytesPerRow) * UInt64(size.height)
                                                              ^~~~
/host/spi-builder-workspace/Source/ImageCache.swift:147:87: error: cannot find 'arc4random' in scope
            let name = String(format: "org.alamofire.autopurgingimagecache-%08x%08x", arc4random(), arc4random())
                                                                                      ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:147:101: error: cannot find 'arc4random' in scope
            let name = String(format: "org.alamofire.autopurgingimagecache-%08x%08x", arc4random(), arc4random())
                                                                                                    ^~~~~~~~~~
/host/spi-builder-workspace/Source/ImageCache.swift:315:20: error: cannot find type 'Image' in scope
        var image: Image?
                   ^~~~~
BUILD FAILURE 5.8 linux