The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EventSource with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/inaka/EventSource.git
Reference: master
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/inaka/EventSource
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 78934b3 Merge pull request #134 from daniel-andersen/master
Cloned https://github.com/inaka/EventSource.git
Revision (git rev-parse @):
78934b361891c7d0fa3d399d128e959f0c94d267
SUCCESS checkout https://github.com/inaka/EventSource.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/inaka/EventSource.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/6] Compiling EventSource EventStreamParser.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] Emitting module EventSource
/host/spi-builder-workspace/EventSource/EventSource.swift:93:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var urlSession: URLSession?
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
                         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                       ~~~~~~~~~~ ^
/host/spi-builder-workspace/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         dataTask: URLSessionDataTask,
                                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         didReceive response: URLResponse,
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
                         newRequest request: URLRequest,
                                             ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
                         completionHandler: @escaping (URLRequest?) -> Void) {
                                                       ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         willPerformHTTPRedirection response: HTTPURLResponse,
                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
[5/6] Compiling EventSource Event.swift
/host/spi-builder-workspace/EventSource/Event.swift:87:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
        scanner.scanUpTo(":", into: &key)
                                    ^
/host/spi-builder-workspace/EventSource/Event.swift:87:37: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
        scanner.scanUpTo(":", into: &key)
                                    ^
/host/spi-builder-workspace/EventSource/Event.swift:88:17: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        scanner.scanString(":", into: nil)
                ^
/host/spi-builder-workspace/EventSource/Event.swift:88:17: note: use 'scanString(_:)' instead
        scanner.scanString(":", into: nil)
                ^
/host/spi-builder-workspace/EventSource/Event.swift:91:48: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
            if scanner.scanUpTo(newline, into: &value) {
                                               ^
/host/spi-builder-workspace/EventSource/Event.swift:91:48: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
            if scanner.scanUpTo(newline, into: &value) {
                                               ^
[6/6] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/EventSource/EventSource.swift:93:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var urlSession: URLSession?
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
                         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                       ~~~~~~~~~~ ^
/host/spi-builder-workspace/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         dataTask: URLSessionDataTask,
                                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         didReceive response: URLResponse,
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
                         newRequest request: URLRequest,
                                             ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
                         completionHandler: @escaping (URLRequest?) -> Void) {
                                                       ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         willPerformHTTPRedirection response: HTTPURLResponse,
                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:114:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
                     ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:115:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        urlSession?.dataTask(with: url).resume()
        ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:120:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
        urlSession?.invalidateAndCancel()
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:164:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
        completionHandler(URLSession.ResponseDisposition.allow)
                          ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:174:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
        guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
                                        ~~~~ ^~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:174:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:207:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let sessionConfiguration = URLSessionConfiguration.default
                                   ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Emitting module EventSource
/host/spi-builder-workspace/EventSource/EventSource.swift:93:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var urlSession: URLSession?
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
                         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                       ~~~~~~~~~~ ^
/host/spi-builder-workspace/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         dataTask: URLSessionDataTask,
                                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         didReceive response: URLResponse,
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
                         newRequest request: URLRequest,
                                             ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
                         completionHandler: @escaping (URLRequest?) -> Void) {
                                                       ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         willPerformHTTPRedirection response: HTTPURLResponse,
                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
[3/4] Compiling EventSource Event.swift
/host/spi-builder-workspace/EventSource/Event.swift:87:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
        scanner.scanUpTo(":", into: &key)
                                    ^
/host/spi-builder-workspace/EventSource/Event.swift:87:37: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
        scanner.scanUpTo(":", into: &key)
                                    ^
/host/spi-builder-workspace/EventSource/Event.swift:88:17: warning: 'scanString(_:into:)' is deprecated: renamed to 'scanString(_:)'
        scanner.scanString(":", into: nil)
                ^
/host/spi-builder-workspace/EventSource/Event.swift:88:17: note: use 'scanString(_:)' instead
        scanner.scanString(":", into: nil)
                ^
/host/spi-builder-workspace/EventSource/Event.swift:91:48: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
            if scanner.scanUpTo(newline, into: &value) {
                                               ^
/host/spi-builder-workspace/EventSource/Event.swift:91:48: note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
            if scanner.scanUpTo(newline, into: &value) {
                                               ^
[4/4] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/EventSource/EventSource.swift:93:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    private var urlSession: URLSession?
                            ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open 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/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
                         completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
                                                       ~~~~~~~~~~ ^
/host/spi-builder-workspace/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         dataTask: URLSessionDataTask,
                                   ^~~~~~~~~~~~~~~~~~
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
public typealias URLSessionDataTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         didReceive response: URLResponse,
                                              ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
                         newRequest request: URLRequest,
                                             ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
                         completionHandler: @escaping (URLRequest?) -> Void) {
                                                       ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    open func urlSession(_ session: URLSession,
                                    ^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         task: URLSessionTask,
                               ^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
                         willPerformHTTPRedirection response: HTTPURLResponse,
                                                              ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
                                                       ^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
                                                       ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
                 ^
/host/spi-builder-workspace/EventSource/EventSource.swift:114:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
        urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
                     ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:115:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
        urlSession?.dataTask(with: url).resume()
        ~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:120:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
        urlSession?.invalidateAndCancel()
        ~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:164:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
        completionHandler(URLSession.ResponseDisposition.allow)
                          ~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:174:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
        guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
                                        ~~~~ ^~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:174:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/EventSource/EventSource.swift:207:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
        let sessionConfiguration = URLSessionConfiguration.default
                                   ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2