The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ExyteOpenAI, reference 1.0.4 (2f8965), with Swift 6.1 for Linux on 10 Jun 2025 15:07:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/exyte/OpenAI.git
Reference: 1.0.4
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/exyte/OpenAI
 * tag               1.0.4      -> FETCH_HEAD
HEAD is now at 2f89650 Merge pull request #22 from exyte/feature/models-update
Cloned https://github.com/exyte/OpenAI.git
Revision (git rev-parse @):
2f896500c79aae012bb9b34b997490c2d75f39c0
SUCCESS checkout https://github.com/exyte/OpenAI.git at 1.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/exyte/OpenAI.git
https://github.com/exyte/OpenAI.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "eventsourcehttpbody",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/exyte/EventSourceHttpBody.git"
    }
  ],
  "manifest_display_name" : "ExyteOpenAI",
  "name" : "ExyteOpenAI",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "ExyteOpenAI",
      "targets" : [
        "ExyteOpenAI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ExyteOpenAI",
      "module_type" : "SwiftTarget",
      "name" : "ExyteOpenAI",
      "path" : "Sources/ExyteOpenAI",
      "product_dependencies" : [
        "EventSourceHttpBody"
      ],
      "product_memberships" : [
        "ExyteOpenAI"
      ],
      "sources" : [
        "Endpoint Configurations/Assistants.swift",
        "Endpoint Configurations/Chats.swift",
        "Endpoint Configurations/Files.swift",
        "Endpoint Configurations/Messages.swift",
        "Endpoint Configurations/Models.swift",
        "Endpoint Configurations/Runs.swift",
        "Endpoint Configurations/Threads.swift",
        "Models/Assistant/Assistant.swift",
        "Models/Chat/ChatCompletion.swift",
        "Models/Chat/ChatCompletionMessage.swift",
        "Models/Chat/Choice.swift",
        "Models/Chat/Logprob.swift",
        "Models/Chat/Logprobs.swift",
        "Models/Common/ResponseFormat.swift",
        "Models/Common/StreamOptions.swift",
        "Models/Enums/ActionType.swift",
        "Models/Enums/FilePurpose.swift",
        "Models/Enums/MessageContentType.swift",
        "Models/Enums/MessageRole.swift",
        "Models/Enums/ModelType.swift",
        "Models/Enums/Order.swift",
        "Models/Enums/RunErrorCode.swift",
        "Models/Enums/RunStatus.swift",
        "Models/Enums/RunStepType.swift",
        "Models/Enums/ToolType.swift",
        "Models/File/File.swift",
        "Models/Message/DeltaMessage.swift",
        "Models/Message/Message.swift",
        "Models/Message/MessageContent.swift",
        "Models/Message/MessageImageContent.swift",
        "Models/Message/MessageTextContent.swift",
        "Models/Misc/DeletionStatus.swift",
        "Models/Misc/ObjectsList.swift",
        "Models/Model/Model.swift",
        "Models/Run/MessageCreationDetails.swift",
        "Models/Run/RequiredAction.swift",
        "Models/Run/Run.swift",
        "Models/Run/RunError.swift",
        "Models/Run/RunStep.swift",
        "Models/Run/RunStepDetails.swift",
        "Models/Run/UsageStatistics.swift",
        "Models/Streaming/StreamError.swift",
        "Models/Streaming/StreamEvent.swift",
        "Models/Thread/Thread.swift",
        "Models/Tool/FileSearchToolProperties.swift",
        "Models/Tool/FunctionToolProperties.swift",
        "Models/Tool/Tool.swift",
        "Models/Tool/ToolCall.swift",
        "Models/Tool/ToolOutput.swift",
        "Networking/EndpointConfiguration.swift",
        "Networking/Extensions/AnyPublisher+Concurrency.swift",
        "Networking/Extensions/Collection+HTTPHeader.swift",
        "Networking/Extensions/Publisher+Decode.swift",
        "Networking/Extensions/URL+MimeType.swift",
        "Networking/FormBodyPart.swift",
        "Networking/HTTPHeader.swift",
        "Networking/HTTPRequestMethod.swift",
        "Networking/MimeType.swift",
        "Networking/OpenAIError.swift",
        "Networking/OpenAIResponseError.swift",
        "Networking/Provider.swift",
        "Networking/RequestTask.swift",
        "OpenAI+Assistants.swift",
        "OpenAI+Chats.swift",
        "OpenAI+Files.swift",
        "OpenAI+Messages.swift",
        "OpenAI+Models.swift",
        "OpenAI+Runs.swift",
        "OpenAI+Threads.swift",
        "OpenAI.swift",
        "Payloads/CreateAssistantPayload.swift",
        "Payloads/CreateChatCompletionPayload.swift",
        "Payloads/CreateMessageRequest.swift",
        "Payloads/CreateRunPayload.swift",
        "Payloads/CreateStreamRunPayload.swift",
        "Payloads/CreateThreadAndRunPayload.swift",
        "Payloads/CreateThreadPayload.swift",
        "Payloads/FilePayload.swift",
        "Payloads/ListPayload.swift",
        "Payloads/ModifyPayload.swift",
        "Payloads/SubmitToolOutputsRequest.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/exyte/EventSourceHttpBody.git
[1/129] Fetching eventsourcehttpbody
Fetched https://github.com/exyte/EventSourceHttpBody.git from cache (0.28s)
Computing version for https://github.com/exyte/EventSourceHttpBody.git
Computed https://github.com/exyte/EventSourceHttpBody.git at 0.1.5 (1.38s)
Creating working copy for https://github.com/exyte/EventSourceHttpBody.git
Working copy of https://github.com/exyte/EventSourceHttpBody.git resolved at 0.1.5
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Compiling EventSourceHttpBody EventStreamParser.swift
[5/7] Emitting module EventSourceHttpBody
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:97:21: error: cannot find type 'URLRequest' in scope
 95 |
 96 |     public init(
 97 |         urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 98 |     ) {
 99 |         self.urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:79:28: error: cannot find type 'URLRequest' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
 79 |     public let urlRequest: URLRequest
    |                            `- error: cannot find type 'URLRequest' in scope
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:94:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     private var operationQueue: OperationQueue
 93 |     private var mainQueue = DispatchQueue.main
 94 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 |     public init(
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                   `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |                          dataTask: URLSessionDataTask,
161 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
    |                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |                          didReceive response: URLResponse,
162 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |     }
169 |
170 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                          task: URLSessionTask,
172 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |
170 |     open func urlSession(_ session: URLSession,
171 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |                          didCompleteWithError error: Error?) {
173 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
    |                                              `- error: cannot find type 'URLRequest' in scope
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
188 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
188 |
189 |         var newRequest = request
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |                                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | internal extension EventSource {
196 |
197 |     func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
    |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |
199 |         var additionalHeaders = headers
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
[6/7] Compiling EventSourceHttpBody EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:97:21: error: cannot find type 'URLRequest' in scope
 95 |
 96 |     public init(
 97 |         urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 98 |     ) {
 99 |         self.urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:79:28: error: cannot find type 'URLRequest' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
 79 |     public let urlRequest: URLRequest
    |                            `- error: cannot find type 'URLRequest' in scope
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:94:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     private var operationQueue: OperationQueue
 93 |     private var mainQueue = DispatchQueue.main
 94 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 |     public init(
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                   `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |                          dataTask: URLSessionDataTask,
161 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
    |                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |                          didReceive response: URLResponse,
162 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |     }
169 |
170 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                          task: URLSessionTask,
172 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |
170 |     open func urlSession(_ session: URLSession,
171 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |                          didCompleteWithError error: Error?) {
173 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
    |                                              `- error: cannot find type 'URLRequest' in scope
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
188 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
188 |
189 |         var newRequest = request
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |                                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | internal extension EventSource {
196 |
197 |     func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
    |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |
199 |         var additionalHeaders = headers
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:114:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
112 |
113 |         let configuration = sessionConfiguration(lastEventId: lastEventId)
114 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
115 |         urlSession?.dataTask(with: urlRequest).resume()
116 |     }
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:115:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
113 |         let configuration = sessionConfiguration(lastEventId: lastEventId)
114 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
115 |         urlSession?.dataTask(with: urlRequest).resume()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
116 |     }
117 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:120:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 |     public func disconnect() {
119 |         readyState = .closed
120 |         urlSession?.invalidateAndCancel()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 |     }
122 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:164:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
165 |
166 |         readyState = .open
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:174:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
172 |                          didCompleteWithError error: Error?) {
173 |
174 |         guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
    |                                              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
175 |             mainQueue.async { [weak self] in self?.onComplete?(nil, nil, error as NSError?) }
176 |             return
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:174:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |                          didCompleteWithError error: Error?) {
173 |
174 |         guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
    |                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 |             mainQueue.async { [weak self] in self?.onComplete?(nil, nil, error as NSError?) }
176 |             return
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:207:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
205 |         additionalHeaders["Cache-Control"] = "no-cache"
206 |
207 |         let sessionConfiguration = URLSessionConfiguration.default
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
208 |         sessionConfiguration.timeoutIntervalForRequest = TimeInterval(INT_MAX)
209 |         sessionConfiguration.timeoutIntervalForResource = TimeInterval(INT_MAX)
[7/7] Compiling EventSourceHttpBody Event.swift
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/Event.swift:87:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
 85 |         var key: NSString?, value: NSString?
 86 |         let scanner = Scanner(string: line)
 87 |         scanner.scanUpTo(":", into: &key)
    |                                     |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                     `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
 88 |         scanner.scanString(":", into: nil)
 89 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/Event.swift:91:48: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
 89 |
 90 |         for newline in newLineCharacters {
 91 |             if scanner.scanUpTo(newline, into: &value) {
    |                                                |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
 92 |                 break
 93 |             }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2b296aa7156f49efc57252cdf9ed4bb21d0f92fc98d88800e255491ba2db3116
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-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/5] Emitting module EventSourceHttpBody
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:97:21: error: cannot find type 'URLRequest' in scope
 95 |
 96 |     public init(
 97 |         urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 98 |     ) {
 99 |         self.urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:79:28: error: cannot find type 'URLRequest' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
 79 |     public let urlRequest: URLRequest
    |                            `- error: cannot find type 'URLRequest' in scope
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:94:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     private var operationQueue: OperationQueue
 93 |     private var mainQueue = DispatchQueue.main
 94 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 |     public init(
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                   `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |                          dataTask: URLSessionDataTask,
161 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
    |                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |                          didReceive response: URLResponse,
162 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |     }
169 |
170 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                          task: URLSessionTask,
172 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |
170 |     open func urlSession(_ session: URLSession,
171 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |                          didCompleteWithError error: Error?) {
173 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
    |                                              `- error: cannot find type 'URLRequest' in scope
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
188 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
188 |
189 |         var newRequest = request
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |                                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | internal extension EventSource {
196 |
197 |     func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
    |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |
199 |         var additionalHeaders = headers
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
[3/5] Compiling EventSourceHttpBody Event.swift
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/Event.swift:87:37: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
 85 |         var key: NSString?, value: NSString?
 86 |         let scanner = Scanner(string: line)
 87 |         scanner.scanUpTo(":", into: &key)
    |                                     |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                     `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
 88 |         scanner.scanString(":", into: nil)
 89 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/Event.swift:91:48: error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
 89 |
 90 |         for newline in newLineCharacters {
 91 |             if scanner.scanUpTo(newline, into: &value) {
    |                                                |- error: cannot convert value of type 'UnsafeMutablePointer<NSString?>' to expected argument type 'UnsafeMutablePointer<String?>'
    |                                                `- note: arguments to generic parameter 'Pointee' ('NSString?' and 'String?') are expected to be equal
 92 |                 break
 93 |             }
[4/5] Compiling EventSourceHttpBody EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:97:21: error: cannot find type 'URLRequest' in scope
 95 |
 96 |     public init(
 97 |         urlRequest: URLRequest
    |                     `- error: cannot find type 'URLRequest' in scope
 98 |     ) {
 99 |         self.urlRequest = urlRequest
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:79:28: error: cannot find type 'URLRequest' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
 79 |     public let urlRequest: URLRequest
    |                            `- error: cannot find type 'URLRequest' in scope
 80 |     public var url: URL { urlRequest.url! }
 81 |     private(set) public var lastEventId: String?
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:94:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 92 |     private var operationQueue: OperationQueue
 93 |     private var mainQueue = DispatchQueue.main
 94 |     private var urlSession: URLSession?
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 |     public init(
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:148:59: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
146 |     }
147 |
148 |     open 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.
149 |
150 |         if readyState != .open {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:162:67: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
    |                                                                   `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:159:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 |     }
158 |
159 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
160 |                          dataTask: URLSessionDataTask,
161 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:160:36: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 |
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
    |                                    `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
161 |                          didReceive response: URLResponse,
162 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:161:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     open func urlSession(_ session: URLSession,
160 |                          dataTask: URLSessionDataTask,
161 |                          didReceive response: URLResponse,
    |                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:170:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
168 |     }
169 |
170 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
171 |                          task: URLSessionTask,
172 |                          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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:171:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
169 |
170 |     open func urlSession(_ session: URLSession,
171 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
172 |                          didCompleteWithError error: Error?) {
173 |
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:186:46: error: cannot find type 'URLRequest' in scope
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
    |                                              `- error: cannot find type 'URLRequest' in scope
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
188 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:187:56: error: cannot find type 'URLRequest' in scope
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
    |                                                        `- error: cannot find type 'URLRequest' in scope
188 |
189 |         var newRequest = request
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:183:37: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
181 |     }
182 |
183 |     open func urlSession(_ session: URLSession,
    |                                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:184:32: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
182 |
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
    |                                `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
186 |                          newRequest request: URLRequest,
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:185:63: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
183 |     open func urlSession(_ session: URLSession,
184 |                          task: URLSessionTask,
185 |                          willPerformHTTPRedirection response: HTTPURLResponse,
    |                                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
186 |                          newRequest request: URLRequest,
187 |                          completionHandler: @escaping (URLRequest?) -> Void) {
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:76:56: error: cannot find type 'URLSessionDataDelegate' in scope
 74 | }
 75 |
 76 | open class EventSource: NSObject, EventSourceProtocol, URLSessionDataDelegate {
    |                                                        `- error: cannot find type 'URLSessionDataDelegate' in scope
 77 |     static let DefaultRetryTime = 3000
 78 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:197:56: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | internal extension EventSource {
196 |
197 |     func sessionConfiguration(lastEventId: String?) -> URLSessionConfiguration {
    |                                                        `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
198 |
199 |         var additionalHeaders = headers
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/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:114:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
112 |
113 |         let configuration = sessionConfiguration(lastEventId: lastEventId)
114 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
    |                      `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
115 |         urlSession?.dataTask(with: urlRequest).resume()
116 |     }
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:115:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
113 |         let configuration = sessionConfiguration(lastEventId: lastEventId)
114 |         urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: operationQueue)
115 |         urlSession?.dataTask(with: urlRequest).resume()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
116 |     }
117 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:120:21: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
118 |     public func disconnect() {
119 |         readyState = .closed
120 |         urlSession?.invalidateAndCancel()
    |                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
121 |     }
122 |
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:164:38: error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
162 |                          completionHandler: @escaping (URLSession.ResponseDisposition) -> Void) {
163 |
164 |         completionHandler(URLSession.ResponseDisposition.allow)
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'ResponseDisposition'
165 |
166 |         readyState = .open
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:174:46: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
172 |                          didCompleteWithError error: Error?) {
173 |
174 |         guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
    |                                              `- error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'response'
175 |             mainQueue.async { [weak self] in self?.onComplete?(nil, nil, error as NSError?) }
176 |             return
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:174:77: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
172 |                          didCompleteWithError error: Error?) {
173 |
174 |         guard let responseStatusCode = (task.response as? HTTPURLResponse)?.statusCode else {
    |                                                                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
175 |             mainQueue.async { [weak self] in self?.onComplete?(nil, nil, error as NSError?) }
176 |             return
/host/spi-builder-workspace/.build/checkouts/EventSourceHttpBody/EventSource/EventSource.swift:207:60: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
205 |         additionalHeaders["Cache-Control"] = "no-cache"
206 |
207 |         let sessionConfiguration = URLSessionConfiguration.default
    |                                                            `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
208 |         sessionConfiguration.timeoutIntervalForRequest = TimeInterval(INT_MAX)
209 |         sessionConfiguration.timeoutIntervalForResource = TimeInterval(INT_MAX)
[5/5] Compiling EventSourceHttpBody EventStreamParser.swift
BUILD FAILURE 6.1 linux