The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build LDSwiftEventSource, reference 3.3.0 (570517), with Swift 6.1 for Android on 29 May 2025 10:35:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/LaunchDarkly/swift-eventsource.git
Reference: 3.3.0
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/LaunchDarkly/swift-eventsource
 * tag               3.3.0      -> FETCH_HEAD
HEAD is now at 5705170 chore(main): release 3.3.0 (#79)
Cloned https://github.com/LaunchDarkly/swift-eventsource.git
Revision (git rev-parse @):
57051701c58a93603ffa2051f8e9cf0c8cff7814
SUCCESS checkout https://github.com/LaunchDarkly/swift-eventsource.git at 3.3.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/LaunchDarkly/swift-eventsource.git
https://github.com/LaunchDarkly/swift-eventsource.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "LDSwiftEventSource",
  "name" : "LDSwiftEventSource",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "LDSwiftEventSource",
      "targets" : [
        "LDSwiftEventSource"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "LDSwiftEventSourceTests",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSourceTests",
      "path" : "Tests",
      "sources" : [
        "EventParserTests.swift",
        "LDSwiftEventSourceTests.swift",
        "MockHandler.swift",
        "TestUtil.swift",
        "UTF8LineParserTests.swift"
      ],
      "target_dependencies" : [
        "LDSwiftEventSource"
      ],
      "type" : "test"
    },
    {
      "c99name" : "LDSwiftEventSource",
      "module_type" : "SwiftTarget",
      "name" : "LDSwiftEventSource",
      "path" : "Source",
      "product_memberships" : [
        "LDSwiftEventSource"
      ],
      "sources" : [
        "EventParser.swift",
        "LDSwiftEventSource.swift",
        "Logs.swift",
        "Types.swift",
        "UTF8LineParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/8] Compiling LDSwiftEventSource UTF8LineParser.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/8] Emitting module LDSwiftEventSource
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:97: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:94:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |          - Since: 1.3.0
 93 |          */
 94 |         public var urlSessionConfiguration: URLSessionConfiguration {
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:38: error: cannot find type 'URLSessionDataDelegate' in scope
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:181:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     private let eventParser: EventParser
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |     private var sessionTask: URLSessionDataTask?
183 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:182:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
182 |     private var sessionTask: URLSessionDataTask?
    |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     init(config: EventSource.Config) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:231:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |     func getLastEventId() -> String { eventParser.getLastEventId() }
230 |
231 |     func createSession() -> URLSession {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:237:29: error: cannot find type 'URLRequest' in scope
235 |     }
236 |
237 |     func createRequest() -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:270:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |                            task: URLSessionTask,
272 |                            didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:271:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
271 |                            task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |                            didCompleteWithError error: Error?) {
273 |         utf8LineParser.closeAndReset()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:312:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
313 |         logger.log(.debug, "Initial reply received")
314 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:309:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:310:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
    |                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:311:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
313 |         logger.log(.debug, "Initial reply received")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[5/8] Compiling LDSwiftEventSource Logs.swift
[6/8] Compiling LDSwiftEventSource Types.swift
/host/spi-builder-workspace/Source/Types.swift:99:14: warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 97 |
 98 | /// Error class that indicates the remote server returned an unsuccessful HTTP response code.
 99 | public class UnsuccessfulResponseError: Error {
    |              `- warning: non-final class 'UnsuccessfulResponseError' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
100 |     /// The HTTP response code received.
101 |     public let responseCode: Int
[7/8] Compiling LDSwiftEventSource EventParser.swift
/host/spi-builder-workspace/Source/EventParser.swift:68:22: error: no 'contains' candidates produce the expected type '(Character) throws -> Bool' for parameter #0
66 |             eventType = String(value)
67 |         case Constants.retryLabel:
68 |             if value.allSatisfy(("0"..."9").contains), let reconnectionTime = Int64(value) {
   |                      `- error: no 'contains' candidates produce the expected type '(Character) throws -> Bool' for parameter #0
69 |                 currentRetry = Double(reconnectionTime) * 0.001
70 |             }
[8/8] Compiling LDSwiftEventSource LDSwiftEventSource.swift
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:97: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:94:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |          - Since: 1.3.0
 93 |          */
 94 |         public var urlSessionConfiguration: URLSessionConfiguration {
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:38: error: cannot find type 'URLSessionDataDelegate' in scope
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:181:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     private let eventParser: EventParser
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |     private var sessionTask: URLSessionDataTask?
183 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:182:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
182 |     private var sessionTask: URLSessionDataTask?
    |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     init(config: EventSource.Config) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:231:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |     func getLastEventId() -> String { eventParser.getLastEventId() }
230 |
231 |     func createSession() -> URLSession {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:237:29: error: cannot find type 'URLRequest' in scope
235 |     }
236 |
237 |     func createRequest() -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:270:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |                            task: URLSessionTask,
272 |                            didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:271:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
271 |                            task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |                            didCompleteWithError error: Error?) {
273 |         utf8LineParser.closeAndReset()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:312:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
313 |         logger.log(.debug, "Initial reply received")
314 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:309:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:310:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
    |                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:311:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
313 |         logger.log(.debug, "Initial reply received")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:97:62: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
 97 |                 let sessionConfig = _urlSessionConfiguration.copy() as! URLSessionConfiguration
    |                                                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |                 sessionConfig.httpAdditionalHeaders = ["Accept": "text/event-stream", "Cache-Control": "no-cache"]
 99 |                 sessionConfig.timeoutIntervalForRequest = idleTimeout
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:103:73: error: cannot infer contextual base in reference to member 'TLSv12'
101 |                 #if !os(Linux) && !os(Windows)
102 |                 if #available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *) {
103 |                     sessionConfig.tlsMinimumSupportedProtocolVersion = .TLSv12
    |                                                                         `- error: cannot infer contextual base in reference to member 'TLSv12'
104 |                 } else {
105 |                     sessionConfig.tlsMinimumSupportedProtocol = .tlsProtocol12
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:105:66: error: cannot infer contextual base in reference to member 'tlsProtocol12'
103 |                     sessionConfig.tlsMinimumSupportedProtocolVersion = .TLSv12
104 |                 } else {
105 |                     sessionConfig.tlsMinimumSupportedProtocol = .tlsProtocol12
    |                                                                  `- error: cannot infer contextual base in reference to member 'tlsProtocol12'
106 |                 }
107 |                 #endif
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:112:53: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
110 |             set {
111 |                 // swiftlint:disable:next force_cast
112 |                 _urlSessionConfiguration = newValue.copy() as! URLSessionConfiguration
    |                                                     `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
113 |             }
114 |         }
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:203:30: warning: capture of 'self' with non-sendable type 'EventSourceDelegate?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- note: class 'EventSourceDelegate' does not conform to the 'Sendable' protocol
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
    :
201 |     func start() {
202 |         delegateQueue.async { [weak self] in
203 |             guard let self = self
    |                              `- warning: capture of 'self' with non-sendable type 'EventSourceDelegate?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
204 |             else { return }
205 |             guard self.readyState == .raw
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:220:31: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
218 |             let previousState = self.readyState
219 |             self.readyState = .shutdown
220 |             self.sessionTask?.cancel()
    |                               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
221 |             if previousState == .open {
222 |                 self.config.handler.onClosed()
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:234:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
234 |         return URLSession(configuration: config.urlSessionConfiguration, delegate: self, delegateQueue: opQueue)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
235 |     }
236 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:238:26: error: cannot find 'URLRequest' in scope
236 |
237 |     func createRequest() -> URLRequest {
238 |         var urlRequest = URLRequest(url: self.config.url,
    |                          `- error: cannot find 'URLRequest' in scope
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
240 |                                     timeoutInterval: self.config.idleTimeout)
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:239:50: error: cannot find 'URLRequest' in scope
237 |     func createRequest() -> URLRequest {
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
    |                                                  `- error: cannot find 'URLRequest' in scope
240 |                                     timeoutInterval: self.config.idleTimeout)
241 |         urlRequest.httpMethod = self.config.method
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:254:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
252 |     private func connect() {
253 |         logger.log(.info, "Starting EventSource client")
254 |         let task = urlSession?.dataTask(with: createRequest())
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
255 |         task?.resume()
256 |         sessionTask = task
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:304:13: warning: capture of 'self' with non-sendable type 'EventSourceDelegate?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |       `- note: class 'EventSourceDelegate' does not conform to the 'Sendable' protocol
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
    :
302 |         logger.log(.info, "Waiting %@ seconds before reconnecting...", String(format: "%.3f", sleep))
303 |         delegateQueue.asyncAfter(deadline: .now() + sleep) { [weak self] in
304 |             self?.connect()
    |             `- warning: capture of 'self' with non-sendable type 'EventSourceDelegate?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
305 |         }
306 |     }
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:317:32: error: cannot infer contextual base in reference to member 'cancel'
315 |         guard readyState != .shutdown
316 |         else {
317 |             completionHandler(.cancel)
    |                                `- error: cannot infer contextual base in reference to member 'cancel'
318 |             return
319 |         }
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:322:37: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
320 |
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
    |                                     `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
323 |         let statusCode = httpResponse.statusCode
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:322:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
320 |
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 |         let statusCode = httpResponse.statusCode
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:323:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
323 |         let statusCode = httpResponse.statusCode
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
325 |             reconnectionTimer.connectedTime = Date()
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:328:32: error: cannot infer contextual base in reference to member 'allow'
326 |             readyState = .open
327 |             config.handler.onOpened()
328 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
329 |         } else {
330 |             // this formatting shenanigans is to workaround String not implementing CVarArg on Swift<5.4 on Linux
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:336:32: error: cannot infer contextual base in reference to member 'cancel'
334 |                 readyState = .shutdown
335 |             }
336 |             completionHandler(.cancel)
    |                                `- error: cannot infer contextual base in reference to member 'cancel'
337 |         }
338 |     }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[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/7] Emitting module LDSwiftEventSource
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:97: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:94:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |          - Since: 1.3.0
 93 |          */
 94 |         public var urlSessionConfiguration: URLSessionConfiguration {
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:38: error: cannot find type 'URLSessionDataDelegate' in scope
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:181:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     private let eventParser: EventParser
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |     private var sessionTask: URLSessionDataTask?
183 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:182:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
182 |     private var sessionTask: URLSessionDataTask?
    |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     init(config: EventSource.Config) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:231:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |     func getLastEventId() -> String { eventParser.getLastEventId() }
230 |
231 |     func createSession() -> URLSession {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:237:29: error: cannot find type 'URLRequest' in scope
235 |     }
236 |
237 |     func createRequest() -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:270:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |                            task: URLSessionTask,
272 |                            didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:271:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
271 |                            task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |                            didCompleteWithError error: Error?) {
273 |         utf8LineParser.closeAndReset()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:312:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
313 |         logger.log(.debug, "Initial reply received")
314 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:309:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:310:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
    |                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:311:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
313 |         logger.log(.debug, "Initial reply received")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[3/7] Compiling LDSwiftEventSource Logs.swift
[4/7] Compiling LDSwiftEventSource Types.swift
[5/7] Compiling LDSwiftEventSource LDSwiftEventSource.swift
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:47: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                               `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:82:97: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 80 |         public var idleTimeout: TimeInterval = 300.0
 81 |
 82 |         private var _urlSessionConfiguration: URLSessionConfiguration = URLSessionConfiguration.default
    |                                                                                                 `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 83 |         /**
 84 |          The `URLSessionConfiguration` used to create the `URLSession`.
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:94:45: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |          - Since: 1.3.0
 93 |          */
 94 |         public var urlSessionConfiguration: URLSessionConfiguration {
    |                                             `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
  |                  `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:165:38: error: cannot find type 'URLSessionDataDelegate' in scope
163 |
164 | // MARK: EventSourceDelegate
165 | class EventSourceDelegate: NSObject, URLSessionDataDelegate {
    |                                      `- error: cannot find type 'URLSessionDataDelegate' in scope
166 |     private let delegateQueue: DispatchQueue = DispatchQueue(label: "ESDelegateQueue")
167 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:181:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
179 |     private let eventParser: EventParser
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |     private var sessionTask: URLSessionDataTask?
183 |
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:182:30: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
180 |     private let reconnectionTimer: ReconnectionTimer
181 |     private var urlSession: URLSession?
182 |     private var sessionTask: URLSessionDataTask?
    |                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |
184 |     init(config: EventSource.Config) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:231:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
229 |     func getLastEventId() -> String { eventParser.getLastEventId() }
230 |
231 |     func createSession() -> URLSession {
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:237:29: error: cannot find type 'URLRequest' in scope
235 |     }
236 |
237 |     func createRequest() -> URLRequest {
    |                             `- error: cannot find type 'URLRequest' in scope
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:270:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |                            task: URLSessionTask,
272 |                            didCompleteWithError error: Error?) {
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:271:34: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
269 |     // Tells the delegate that the task finished transferring data.
270 |     public func urlSession(_ session: URLSession,
271 |                            task: URLSessionTask,
    |                                  `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
272 |                            didCompleteWithError error: Error?) {
273 |         utf8LineParser.closeAndReset()
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:312:69: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                     `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
313 |         logger.log(.debug, "Initial reply received")
314 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:309:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
307 |
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:310:38: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
308 |     // Tells the delegate that the data task received the initial reply (headers) from the server.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
    |                                      `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
311 |                            didReceive response: URLResponse,
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:311:49: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
309 |     public func urlSession(_ session: URLSession,
310 |                            dataTask: URLSessionDataTask,
311 |                            didReceive response: URLResponse,
    |                                                 `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
312 |                            completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
313 |         logger.log(.debug, "Initial reply received")
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:39: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                       `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:340:61: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
338 |     }
339 |
340 |     public func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
341 |         utf8LineParser.append(data).forEach(eventParser.parse)
342 |     }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:97:62: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 95 |             get {
 96 |                 // swiftlint:disable:next force_cast
 97 |                 let sessionConfig = _urlSessionConfiguration.copy() as! URLSessionConfiguration
    |                                                              `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
 98 |                 sessionConfig.httpAdditionalHeaders = ["Accept": "text/event-stream", "Cache-Control": "no-cache"]
 99 |                 sessionConfig.timeoutIntervalForRequest = idleTimeout
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:103:73: error: cannot infer contextual base in reference to member 'TLSv12'
101 |                 #if !os(Linux) && !os(Windows)
102 |                 if #available(iOS 13, macOS 10.15, tvOS 13, watchOS 6, *) {
103 |                     sessionConfig.tlsMinimumSupportedProtocolVersion = .TLSv12
    |                                                                         `- error: cannot infer contextual base in reference to member 'TLSv12'
104 |                 } else {
105 |                     sessionConfig.tlsMinimumSupportedProtocol = .tlsProtocol12
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:105:66: error: cannot infer contextual base in reference to member 'tlsProtocol12'
103 |                     sessionConfig.tlsMinimumSupportedProtocolVersion = .TLSv12
104 |                 } else {
105 |                     sessionConfig.tlsMinimumSupportedProtocol = .tlsProtocol12
    |                                                                  `- error: cannot infer contextual base in reference to member 'tlsProtocol12'
106 |                 }
107 |                 #endif
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:112:53: error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
110 |             set {
111 |                 // swiftlint:disable:next force_cast
112 |                 _urlSessionConfiguration = newValue.copy() as! URLSessionConfiguration
    |                                                     `- error: value of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'
113 |             }
114 |         }
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:220:31: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
218 |             let previousState = self.readyState
219 |             self.readyState = .shutdown
220 |             self.sessionTask?.cancel()
    |                               `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
221 |             if previousState == .open {
222 |                 self.config.handler.onClosed()
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:234:16: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
232 |         let opQueue = OperationQueue()
233 |         opQueue.underlyingQueue = self.delegateQueue
234 |         return URLSession(configuration: config.urlSessionConfiguration, delegate: self, delegateQueue: opQueue)
    |                `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
235 |     }
236 |
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:238:26: error: cannot find 'URLRequest' in scope
236 |
237 |     func createRequest() -> URLRequest {
238 |         var urlRequest = URLRequest(url: self.config.url,
    |                          `- error: cannot find 'URLRequest' in scope
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
240 |                                     timeoutInterval: self.config.idleTimeout)
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:239:50: error: cannot find 'URLRequest' in scope
237 |     func createRequest() -> URLRequest {
238 |         var urlRequest = URLRequest(url: self.config.url,
239 |                                     cachePolicy: URLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData,
    |                                                  `- error: cannot find 'URLRequest' in scope
240 |                                     timeoutInterval: self.config.idleTimeout)
241 |         urlRequest.httpMethod = self.config.method
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:254:32: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
252 |     private func connect() {
253 |         logger.log(.info, "Starting EventSource client")
254 |         let task = urlSession?.dataTask(with: createRequest())
    |                                `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
255 |         task?.resume()
256 |         sessionTask = task
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:317:32: error: cannot infer contextual base in reference to member 'cancel'
315 |         guard readyState != .shutdown
316 |         else {
317 |             completionHandler(.cancel)
    |                                `- error: cannot infer contextual base in reference to member 'cancel'
318 |             return
319 |         }
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:322:37: warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
320 |
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
    |                                     `- warning: forced cast of 'HTTPURLResponse' (aka 'AnyObject') to same type has no effect
323 |         let statusCode = httpResponse.statusCode
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:322:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
320 |
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
    |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
323 |         let statusCode = httpResponse.statusCode
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:323:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
321 |         // swiftlint:disable:next force_cast
322 |         let httpResponse = response as! HTTPURLResponse
323 |         let statusCode = httpResponse.statusCode
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
324 |         if (200..<300).contains(statusCode) && statusCode != 204 {
325 |             reconnectionTimer.connectedTime = Date()
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:328:32: error: cannot infer contextual base in reference to member 'allow'
326 |             readyState = .open
327 |             config.handler.onOpened()
328 |             completionHandler(.allow)
    |                                `- error: cannot infer contextual base in reference to member 'allow'
329 |         } else {
330 |             // this formatting shenanigans is to workaround String not implementing CVarArg on Swift<5.4 on Linux
/host/spi-builder-workspace/Source/LDSwiftEventSource.swift:336:32: error: cannot infer contextual base in reference to member 'cancel'
334 |                 readyState = .shutdown
335 |             }
336 |             completionHandler(.cancel)
    |                                `- error: cannot infer contextual base in reference to member 'cancel'
337 |         }
338 |     }
[6/7] Compiling LDSwiftEventSource UTF8LineParser.swift
[7/7] Compiling LDSwiftEventSource EventParser.swift
BUILD FAILURE 6.1 android