The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ReactiveSSE 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/banjun/ReactiveSSE.git
Reference: master
Cloned https://github.com/banjun/ReactiveSSE.git into spi-builder-workspace
SUCCESS checkout https://github.com/banjun/ReactiveSSE.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/kareman/FootlessParser
Fetching https://github.com/ReactiveCocoa/ReactiveSwift
[1/1832] Fetching footlessparser
[1833/54146] Fetching footlessparser, reactiveswift
Fetched https://github.com/kareman/FootlessParser (2.30s)
Fetched https://github.com/ReactiveCocoa/ReactiveSwift (2.33s)
Computing version for https://github.com/kareman/FootlessParser
Computed https://github.com/kareman/FootlessParser at 0.5.2 (1.11s)
Computing version for https://github.com/ReactiveCocoa/ReactiveSwift
Computed https://github.com/ReactiveCocoa/ReactiveSwift at 6.6.0 (0.35s)
Creating working copy for https://github.com/ReactiveCocoa/ReactiveSwift
Working copy of https://github.com/ReactiveCocoa/ReactiveSwift resolved at 6.6.0
Creating working copy for https://github.com/kareman/FootlessParser
Working copy of https://github.com/kareman/FootlessParser resolved at 0.5.2
Building for debugging...
[1/46] Compiling ReactiveSwift CombinePrevious.swift
[2/46] Compiling ReactiveSwift CompactMap.swift
[3/46] Compiling ReactiveSwift Dematerialize.swift
[4/46] Compiling ReactiveSwift DematerializeResults.swift
[5/46] Compiling ReactiveSwift Filter.swift
[6/46] Compiling ReactiveSwift Map.swift
[7/51] Compiling ReactiveSwift Reduce.swift
[8/51] Compiling ReactiveSwift ScanMap.swift
[9/51] Compiling ReactiveSwift SkipFirst.swift
[10/51] Compiling ReactiveSwift SkipRepeats.swift
[11/51] Compiling ReactiveSwift SkipWhile.swift
[12/51] Compiling FootlessParser Parser.swift
[13/51] Compiling FootlessParser Parser+Operators.swift
[14/51] Compiling ReactiveSwift MapError.swift
[15/51] Compiling ReactiveSwift Materialize.swift
[16/51] Compiling FootlessParser Error.swift
[17/51] Compiling ReactiveSwift MaterializeAsResult.swift
[18/51] Compiling FootlessParser Converters.swift
[19/51] Emitting module FootlessParser
[20/51] Compiling ReactiveSwift Observer.swift
[21/51] Compiling ReactiveSwift Operators.swift
[22/51] Compiling ReactiveSwift Property.swift
[23/51] Compiling ReactiveSwift Reactive.swift
[24/51] Compiling ReactiveSwift ResultExtensions.swift
[25/51] Compiling ReactiveSwift Scheduler.swift
[26/51] Compiling ReactiveSwift Signal.Observer.swift
[27/51] Compiling ReactiveSwift TakeFirst.swift
[28/51] Compiling ReactiveSwift TakeLast.swift
[29/51] Compiling ReactiveSwift TakeWhile.swift
[30/51] Compiling ReactiveSwift UniqueValues.swift
[31/51] Compiling ReactiveSwift Optional.swift
[32/51] Compiling FootlessParser Parsers.swift
[33/51] Compiling FootlessParser StringParser.swift
[35/53] Compiling ReactiveSwift Action.swift
[36/53] Compiling ReactiveSwift Atomic.swift
[37/53] Compiling ReactiveSwift Bag.swift
[38/53] Compiling ReactiveSwift Deprecations+Removals.swift
[39/53] Compiling ReactiveSwift Disposable.swift
[40/53] Compiling ReactiveSwift Event.swift
[41/53] Emitting module ReactiveSwift
[42/53] Compiling ReactiveSwift EventLogger.swift
[43/53] Compiling ReactiveSwift Flatten.swift
[44/53] Compiling ReactiveSwift FoundationExtensions.swift
[45/53] Compiling ReactiveSwift Lifetime.swift
[46/53] Compiling ReactiveSwift AttemptMap.swift
[47/53] Compiling ReactiveSwift Collect.swift
[49/53] Compiling ReactiveSwift Signal.swift
[50/53] Compiling ReactiveSwift SignalProducer.swift
[51/53] Compiling ReactiveSwift UnidirectionalBinding.swift
[52/53] Compiling ReactiveSwift UninhabitedTypeGuards.swift
[53/53] Compiling ReactiveSwift ValidatingProperty.swift
[56/62] Compiling ReactiveSSE SessionDataPipe.swift
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                         ~~~~~~~~~~ ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                                                 ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:4:40: error: cannot find type 'URLSessionDataDelegate' in scope
final class SessionDataPipe: NSObject, URLSessionDataDelegate {
                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:39: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                      ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                          ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:8:92: error: cannot infer contextual base in reference to member 'cancel'
        guard let response = response as? HTTPURLResponse else { return completionHandler(.cancel) }
                                                                                          ~^~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:9:24: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard response.statusCode == 200,
              ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:10:22: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
            response.mimeType == "text/event-stream" else {
            ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:11:69: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
                pipe.input.send(error: .notSSE(statusCode: response.statusCode, mimeType: response.mimeType))
                                                           ~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:11:100: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
                pipe.input.send(error: .notSSE(statusCode: response.statusCode, mimeType: response.mimeType))
                                                                                          ~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:12:43: error: cannot infer contextual base in reference to member 'cancel'
                return completionHandler(.cancel)
                                         ~^~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:14:28: error: cannot infer contextual base in reference to member 'allow'
        completionHandler(.allow)
                          ~^~~~~
[57/62] Compiling ReactiveSSE SSError.swift
[58/62] Compiling ReactiveSSE ReactiveSSE.swift
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:7:33: error: cannot find type 'URLRequest' in scope
    public init(urlRequest req: URLRequest, maxBuffer: Int? = nil) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:13:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let configuration = URLSessionConfiguration.default
                                ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:31:27: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
            let session = URLSession(configuration: URLSessionConfiguration.default, delegate: delegate, delegateQueue: queue)
                          ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:31:77: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
            let session = URLSession(configuration: URLSessionConfiguration.default, delegate: delegate, delegateQueue: queue)
                                                    ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[59/62] Compiling ReactiveSSE SSEvent.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[60/62] Compiling ReactiveSSE EventStream.swift
[61/62] Compiling ReactiveSSE ReactiveOperator.swift
[62/62] Emitting module ReactiveSSE
/host/spi-builder-workspace/ReactiveSSE/Classes/ReactiveSSE.swift:7:33: error: cannot find type 'URLRequest' in scope
    public init(urlRequest req: URLRequest, maxBuffer: Int? = nil) {
                                ^~~~~~~~~~
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:149: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                                                                         ~~~~~~~~~~ ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:7:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse, completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:17:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
                                                     ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                               ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:25:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: Error?) {
                                                 ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/ReactiveSSE/Classes/SessionDataPipe.swift:4:40: error: cannot find type 'URLSessionDataDelegate' in scope
final class SessionDataPipe: NSObject, URLSessionDataDelegate {
                                       ^~~~~~~~~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2