Build Information
Failed to build EventSource, reference 1.4.1 (a3a85a), with Swift 6.2 for Wasm on 2 Mar 2026 15:08:08 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mattt/EventSource.git
Reference: 1.4.1
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/mattt/EventSource
* tag 1.4.1 -> FETCH_HEAD
HEAD is now at a3a85a8 Add explicit swift-nio dependency for Xcode 26 transitive dylib bug (#18)
Cloned https://github.com/mattt/EventSource.git
Revision (git rev-parse @):
a3a85a85214caf642abaa96ae664e4c772a59f6e
SUCCESS checkout https://github.com/mattt/EventSource.git at 1.4.1
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/mattt/EventSource.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasip1 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c50555b47c4db0b0576f9f25702fbe2fdff28194c4a4f4c23a7dce4b3504c85e
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
warning: multiple Swift SDKs match target triple `wasm32-unknown-wasip1` and host triple x86_64-unknown-linux-gnu, selected one at /root/.swiftpm/swift-sdks/swift-6.2-RELEASE_wasm.artifactbundle/swift-6.2-RELEASE_wasm/wasm32-unknown-wasip1/swift-sdk.json
Fetching https://github.com/apple/swift-nio.git
[1/82598] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (7.46s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.95.0 (8.30s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
[1/1820] Fetching swift-atomics
[147/22099] Fetching swift-atomics, swift-collections
[3647/27687] Fetching swift-atomics, swift-collections, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.54s)
[9847/25867] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (3.83s)
Fetched https://github.com/apple/swift-collections.git from cache (3.86s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (4.38s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (0.63s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.95.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Building for debugging...
[0/19] Write sources
[7/19] Compiling CNIOWASI CNIOWASI.c
[8/19] Compiling CNIOWindows WSAStartup.c
[9/19] Compiling _AtomicsShims.c
[10/19] Compiling CNIOWindows shim.c
[11/19] Write sources
[12/19] Compiling CNIOOpenBSD shim.c
[13/19] Compiling CNIOLinux shim.c
[14/19] Compiling CNIOLinux liburing_shims.c
[15/19] Compiling CNIODarwin shim.c
[16/19] Write swift-version-24593BA9C3E375BF.txt
[18/59] Emitting module _NIOBase64
[18/59] Compiling c-nioatomics.c
[19/59] Compiling c-atomics.c
[21/66] Compiling _NIOBase64 Base64.swift
[23/67] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[24/67] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[25/67] Compiling InternalCollectionsUtilities Debugging.swift
[26/67] Compiling InternalCollectionsUtilities Descriptions.swift
[29/71] Compiling InternalCollectionsUtilities _SortedCollection.swift
[30/71] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[31/71] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[34/71] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[35/71] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[38/71] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/71] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[40/71] Emitting module InternalCollectionsUtilities
[41/71] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[42/71] Compiling InternalCollectionsUtilities Integer rank.swift
[43/71] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[46/71] Compiling InternalCollectionsUtilities UInt+reversed.swift
[47/71] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[48/71] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[52/72] Compiling _NIODataStructures PriorityQueue.swift
[53/72] Compiling _NIODataStructures _TinyArray.swift
[57/72] Emitting module Atomics
[62/72] Compiling Atomics IntegerOperations.swift
[63/72] Compiling Atomics Unmanaged extensions.swift
[65/88] Emitting module NIOConcurrencyHelpers
[66/88] Compiling DequeModule _DequeBuffer.swift
[67/88] Compiling DequeModule _DequeBufferHeader.swift
[68/90] Compiling _NIODataStructures Heap.swift
[69/90] Emitting module _NIODataStructures
[70/91] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[72/91] Compiling DequeModule Deque+Equatable.swift
[73/91] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[74/91] Compiling DequeModule Deque+CustomReflectable.swift
[75/91] Compiling DequeModule Deque+Descriptions.swift
[76/91] Compiling DequeModule Deque+Extras.swift
[77/91] Compiling DequeModule Deque+Hashable.swift
[78/91] Compiling NIOConcurrencyHelpers lock.swift
[79/91] Compiling DequeModule _DequeSlot.swift
[80/91] Compiling DequeModule _UnsafeWrappedBuffer.swift
[81/91] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[82/91] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[83/91] Compiling NIOConcurrencyHelpers NIOLock.swift
[84/91] Compiling NIOConcurrencyHelpers atomics.swift
[86/92] Compiling DequeModule Deque+Testing.swift
[87/92] Compiling DequeModule Deque._Storage.swift
[88/92] Compiling DequeModule Deque._UnsafeHandle.swift
[89/92] Compiling DequeModule Deque.swift
[90/92] Compiling DequeModule Deque+Codable.swift
[91/92] Compiling DequeModule Deque+Collection.swift
[92/92] Emitting module DequeModule
[94/157] Compiling NIOCore IPProtocol.swift
[95/157] Compiling NIOCore IntegerBitPacking.swift
[96/157] Compiling NIOCore IntegerTypes.swift
[97/157] Compiling NIOCore Interfaces.swift
[98/157] Compiling NIOCore Linux.swift
[99/157] Compiling NIOCore MarkedCircularBuffer.swift
[100/157] Compiling NIOCore MulticastChannel.swift
[101/157] Compiling NIOCore NIOAny.swift
[102/157] Compiling NIOCore NIOCloseOnErrorHandler.swift
[103/157] Compiling NIOCore EventLoopFuture+Deprecated.swift
[104/157] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[105/157] Compiling NIOCore EventLoopFuture.swift
[106/157] Compiling NIOCore FileDescriptor.swift
[107/157] Compiling NIOCore FileHandle.swift
[108/157] Compiling NIOCore FileRegion.swift
[109/157] Compiling NIOCore GlobalSingletons.swift
[110/157] Compiling NIOCore IO.swift
[111/157] Compiling NIOCore IOData.swift
[112/165] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[113/165] Compiling NIOCore SocketAddresses.swift
[114/165] Compiling NIOCore SocketOptionProvider.swift
[115/165] Compiling NIOCore SystemCallHelpers.swift
[116/165] Compiling NIOCore TimeAmount+Duration.swift
[117/165] Compiling NIOCore TypeAssistedChannelHandler.swift
[118/165] Compiling NIOCore UniversalBootstrapSupport.swift
[119/165] Compiling NIOCore Utilities.swift
[120/165] Compiling NIOCore AddressedEnvelope.swift
[121/165] Compiling NIOCore AsyncAwaitSupport.swift
[122/165] Compiling NIOCore AsyncChannel.swift
[123/165] Compiling NIOCore AsyncChannelHandler.swift
[124/165] Compiling NIOCore AsyncChannelInboundStream.swift
[125/165] Compiling NIOCore AsyncChannelOutboundWriter.swift
[126/165] Compiling NIOCore NIOAsyncSequenceProducer.swift
[127/165] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[128/165] Compiling NIOCore NIOAsyncWriter.swift
[129/165] Compiling NIOCore CircularBuffer.swift
[130/165] Compiling NIOCore Codec.swift
[131/165] Compiling NIOCore ConvenienceOptionSupport.swift
[132/165] Compiling NIOCore DeadChannel.swift
[133/165] Compiling NIOCore DispatchQueue+WithFuture.swift
[134/165] Compiling NIOCore EventLoop+Deprecated.swift
[135/165] Compiling NIOCore EventLoop+SerialExecutor.swift
[136/165] Compiling NIOCore EventLoop.swift
[137/165] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[138/165] Compiling NIOCore NIOCoreSendableMetatype.swift
[139/165] Compiling NIOCore NIODecodedAsyncSequence.swift
[140/165] Compiling NIOCore NIOLoopBound.swift
[141/165] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[142/165] Compiling NIOCore NIOScheduledCallback.swift
[143/165] Compiling NIOCore NIOSendable.swift
[144/165] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[145/165] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[146/165] Compiling NIOCore RecvByteBufferAllocator.swift
[147/165] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[148/165] Compiling NIOCore BSDSocketAPI.swift
[149/165] Compiling NIOCore ByteBuffer-aux.swift
[150/165] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[151/165] Compiling NIOCore ByteBuffer-conversions.swift
[152/165] Compiling NIOCore ByteBuffer-core.swift
[153/165] Compiling NIOCore ByteBuffer-hex.swift
[154/165] Compiling NIOCore ByteBuffer-int.swift
[155/165] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[156/165] Emitting module NIOCore
[157/165] Compiling NIOCore ByteBuffer-multi-int.swift
[158/165] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[159/165] Compiling NIOCore ByteBuffer-views.swift
[160/165] Compiling NIOCore Channel.swift
[161/165] Compiling NIOCore ChannelHandler.swift
[162/165] Compiling NIOCore ChannelHandlers.swift
[163/165] Compiling NIOCore ChannelInvoker.swift
[164/165] Compiling NIOCore ChannelOption.swift
[165/165] Compiling NIOCore ChannelPipeline.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[167/171] Emitting module EventSource
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:346:25: error: cannot find type 'URLRequest' in scope
344 |
345 | /// The request used for the event source connection.
346 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
347 |
348 | /// The URL session for the event source connection.
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:349:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 |
348 | /// The URL session for the event source connection.
349 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 |
351 | /// The task managing the connection loop.
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/Sources/EventSource/EventSource.swift:498:18: error: cannot find type 'URLRequest' in scope
496 | /// Defaults to `.default`.
497 | public init(
498 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
499 | configuration: URLSessionConfiguration = .default
500 | ) {
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:499:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
500 | ) {
501 | self.session = URLSession(configuration: configuration)
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/Sources/EventSource/EventSource.swift:499:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:499:51: error: value of type '_' expected to be instance of class or class-constrained type
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:740:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 | #endif
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 | let status = httpResponse.statusCode
742 | if status != 200 {
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/Sources/EventSource/EventSource.swift:482:23: error: cannot find 'URLRequest' in scope
480 | /// - Parameter url: The URL to open the SSE connection to.
481 | public init(url: URL) {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:485:18: error: incorrect argument label in call (have 'request:', expected 'url:')
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
485 | self.init(request: request)
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
486 | }
487 |
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:501:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
499 | configuration: URLSessionConfiguration = .default
500 | ) {
501 | self.session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
502 | self.request = request
503 | Task { [weak self] in
[168/171] Compiling EventSource AsyncEventsSequence.swift
[169/171] Compiling EventSource EventSource+AsyncHTTPClient.swift
[170/171] Compiling EventSource AsyncSequence+Events.swift
[171/171] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:346:25: error: cannot find type 'URLRequest' in scope
344 |
345 | /// The request used for the event source connection.
346 | public let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
347 |
348 | /// The URL session for the event source connection.
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:349:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
347 |
348 | /// The URL session for the event source connection.
349 | private let session: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
350 |
351 | /// The task managing the connection loop.
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/Sources/EventSource/EventSource.swift:498:18: error: cannot find type 'URLRequest' in scope
496 | /// Defaults to `.default`.
497 | public init(
498 | request: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
499 | configuration: URLSessionConfiguration = .default
500 | ) {
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:499:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
500 | ) {
501 | self.session = URLSession(configuration: configuration)
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/Sources/EventSource/EventSource.swift:499:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:499:51: error: value of type '_' expected to be instance of class or class-constrained type
497 | public init(
498 | request: URLRequest,
499 | configuration: URLSessionConfiguration = .default
| `- error: value of type '_' expected to be instance of class or class-constrained type
500 | ) {
501 | self.session = URLSession(configuration: configuration)
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:740:55: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
738 | #endif
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
741 | let status = httpResponse.statusCode
742 | if status != 200 {
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/Sources/EventSource/EventSource.swift:482:23: error: cannot find 'URLRequest' in scope
480 | /// - Parameter url: The URL to open the SSE connection to.
481 | public init(url: URL) {
482 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:485:18: error: incorrect argument label in call (have 'request:', expected 'url:')
483 | request.setValue("text/event-stream", forHTTPHeaderField: "Accept")
484 | request.setValue("no-cache", forHTTPHeaderField: "Cache-Control")
485 | self.init(request: request)
| `- error: incorrect argument label in call (have 'request:', expected 'url:')
486 | }
487 |
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:501:24: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
499 | configuration: URLSessionConfiguration = .default
500 | ) {
501 | self.session = URLSession(configuration: configuration)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
502 | self.request = request
503 | Task { [weak self] in
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:593:68: error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
591 | #else
592 | // Apple platforms: Use URLSession.bytes for true streaming
593 | let (byteStream, response) = try await session.bytes(
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'bytes'
594 | for: currentRequest,
595 | delegate: nil
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:595:35: error: 'nil' requires a contextual type
593 | let (byteStream, response) = try await session.bytes(
594 | for: currentRequest,
595 | delegate: nil
| `- error: 'nil' requires a contextual type
596 | )
597 |
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:741:35: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
739 |
740 | private func validateHTTPResponse(_ httpResponse: HTTPURLResponse) throws {
741 | let status = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
742 | if status != 200 {
743 | throw EventSourceError.invalidHTTPStatus(status)
/host/spi-builder-workspace/Sources/EventSource/EventSource.swift:745:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
743 | throw EventSourceError.invalidHTTPStatus(status)
744 | }
745 | let contentType = httpResponse.value(forHTTPHeaderField: "Content-Type")
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'value'
746 | if contentType?.lowercased().hasPrefix("text/event-stream") != true {
747 | throw EventSourceError.invalidContentType(contentType)
BUILD FAILURE 6.2 wasm