The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SKWebAPI with Swift 5.9 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pvzig/SKWebAPI.git
Reference: master
Cloned https://github.com/pvzig/SKWebAPI.git into spi-builder-workspace
SUCCESS checkout https://github.com/pvzig/SKWebAPI.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/pvzig/SKCore
[1/288] Fetching skcore
Fetched https://github.com/pvzig/SKCore (0.21s)
Computing version for https://github.com/pvzig/SKCore
Computed https://github.com/pvzig/SKCore at 4.1.3 (0.31s)
Creating working copy for https://github.com/pvzig/SKCore
Working copy of https://github.com/pvzig/SKCore resolved at 4.1.3
Building for debugging...
[1/25] Emitting module SKCore
[2/28] Compiling SKCore Action.swift
[3/28] Compiling SKCore Attachment.swift
[4/28] Compiling SKCore AttachmentField.swift
[5/28] Compiling SKCore Bot.swift
[6/28] Compiling SKCore Topic.swift
[7/28] Compiling SKCore User.swift
[8/28] Compiling SKCore UserGroup.swift
[9/28] Compiling SKCore Channel.swift
[10/28] Compiling SKCore Comment.swift
[11/28] Compiling SKCore CustomProfile.swift
[12/28] Compiling SKCore CustomProfileField.swift
[13/28] Compiling SKCore File.swift
[14/28] Compiling SKCore History.swift
[15/28] Compiling SKCore Item.swift
[16/28] Compiling SKCore SlackError.swift
[17/28] Compiling SKCore Team.swift
[18/28] Compiling SKCore TeamIcon.swift
[19/28] Compiling SKCore Reaction.swift
[20/28] Compiling SKCore Reply.swift
[21/28] Compiling SKCore Scope.swift
[22/28] Compiling SKCore DoNotDisturbStatus.swift
[23/28] Compiling SKCore Edited.swift
[24/28] Compiling SKCore Event.swift
[25/28] Compiling SKCore Extensions.swift
[26/28] Compiling SKCore Message.swift
[27/28] Compiling SKCore OAuthConfig.swift
[28/28] Compiling SKCore RTMOptions.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/34] Compiling SKWebAPI Endpoint.swift
[32/34] Emitting module SKWebAPI
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[33/34] Compiling SKWebAPI WebAPI.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
[34/34] Compiling SKWebAPI NetworkInterface.swift
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
    private let session = URLSession(configuration: .default)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:33:54: error: cannot infer contextual base in reference to member 'default'
    private let session = URLSession(configuration: .default)
                                                    ~^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:133:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    internal static func handleResponse(_ data: Data?, response: URLResponse?, publicError: Error?) throws -> [String: Any] {
                                                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:47:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:51:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:63:23: error: cannot find 'URLRequest' in scope
        let request = URLRequest(url: url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:65:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        var response: URLResponse? = nil
                      ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:69:20: error: cannot assign value of type '_' to type 'Data'
            data = reqData
                   ^~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:89:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:117:23: error: cannot find 'URLRequest' in scope
        var request = URLRequest(url:url)
                      ^~~~~~~~~~
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:68: error: cannot convert value of type '_' to expected argument type 'Data?'
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:126:84: error: argument type '_' expected to be an instance of a class or class-constrained type
                successClosure(try NetworkInterface.handleResponse(data, response: response, publicError: publicError))
                                                                                   ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:56: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
        guard let data = data, let response = response as? HTTPURLResponse else {
                                              ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
                                                      
/host/spi-builder-workspace/Sources/NetworkInterface.swift:134:60: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let data = data, let response = response as? HTTPURLResponse else {
                                                           ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/NetworkInterface.swift:142:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
            switch response.statusCode {
                   ~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2