The Swift Package Index logo.Swift Package Index

Build Information

Failed to build EventSource, reference 1.4.1 (a3a85a), with Swift 6.3 for Wasm on 21 Apr 2026 02:07:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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.3
Building package at path:  $PWD
https://github.com/mattt/EventSource.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-nio.git
[1/83164] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (10.62s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (11.95s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/23583] Fetching swift-collections
[1652/29184] Fetching swift-collections, swift-system
Fetching https://github.com/apple/swift-atomics.git
[25176/31004] Fetching swift-collections, swift-system, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.85s)
Fetched https://github.com/apple/swift-system.git from cache (2.53s)
Fetched https://github.com/apple/swift-collections.git from cache (2.56s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (3.24s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.62s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.06s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.98.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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
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/20] Write sources
[8/20] Compiling CNIOOpenBSD shim.c
[9/20] Compiling CNIOWindows shim.c
[10/20] Compiling CNIOWindows WSAStartup.c
[11/20] Compiling _AtomicsShims.c
[12/20] Compiling CNIOLinux shim.c
[13/20] Write sources
[14/20] Compiling CNIOWASI CNIOWASI.c
[14/20] Compiling CNIOLinux liburing_shims.c
[16/20] Compiling CNIODarwin shim.c
[17/20] Write swift-version-24593BA9C3E375BF.txt
[19/62] Emitting module InternalCollectionsUtilities
[19/64] Compiling c-nioatomics.c
[21/64] Emitting module Atomics
[21/66] Compiling c-atomics.c
[23/73] Compiling Atomics IntegerOperations.swift
[24/73] Compiling Atomics Unmanaged extensions.swift
[25/73] Compiling Atomics ManagedAtomic.swift
[26/73] Compiling Atomics ManagedAtomicLazyReference.swift
[27/73] Compiling _NIODataStructures PriorityQueue.swift
[28/73] Compiling _NIODataStructures _TinyArray.swift
[31/73] Compiling Atomics AtomicInteger.swift
[32/73] Compiling Atomics AtomicOptionalWrappable.swift
[33/73] Compiling Atomics AtomicReference.swift
[34/73] Compiling Atomics OptionalRawRepresentable.swift
[35/73] Compiling Atomics RawRepresentable.swift
[36/73] Compiling Atomics AtomicBool.swift
[39/73] Compiling Atomics UnsafeAtomic.swift
[40/73] Compiling Atomics UnsafeAtomicLazyReference.swift
[41/73] Compiling Atomics AtomicMemoryOrderings.swift
[42/73] Compiling Atomics DoubleWord.swift
[45/73] Compiling Atomics IntegerConformances.swift
[46/73] Compiling Atomics PointerConformances.swift
[47/73] Compiling Atomics Primitives.native.swift
[48/73] Compiling Atomics AtomicStorage.swift
[49/73] Compiling Atomics AtomicValue.swift
[54/74] Emitting module _NIOBase64
[55/74] Compiling _NIOBase64 Base64.swift
[68/77] Compiling NIOConcurrencyHelpers lock.swift
[69/109] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[70/109] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[71/109] Emitting module NIOConcurrencyHelpers
[72/109] Compiling NIOConcurrencyHelpers NIOLock.swift
[73/109] Emitting module _NIODataStructures
[74/109] Compiling _NIODataStructures Heap.swift
[75/110] Compiling ContainersPreview BorrowingSequence+Utilities.swift
[76/110] Compiling ContainersPreview BorrowingSequence.swift
[77/110] Compiling ContainersPreview BidirectionalContainer.swift
[78/110] Compiling ContainersPreview Container+Filter.swift
[79/110] Compiling ContainersPreview Container+SpanwiseZip.swift
[80/110] Compiling ContainersPreview BorrowingIteratorProtocol+Map.swift
[81/110] Compiling ContainersPreview BorrowingIteratorProtocol+Reduce.swift
[82/110] Compiling ContainersPreview BorrowingIteratorProtocol+SpanwiseZip.swift
[83/110] Compiling ContainersPreview BorrowingIteratorProtocol.swift
[84/110] Compiling ContainersPreview BorrowingSequence+Standard Conformances.swift
[85/110] Compiling ContainersPreview Producer+Map.swift
[86/110] Compiling ContainersPreview Producer+Reduce.swift
[87/110] Compiling ContainersPreview Producer.swift
[88/110] Compiling ContainersPreview Borrow.swift
[89/110] Compiling ContainersPreview RandomAccessContainer.swift
[90/110] Compiling ContainersPreview RangeExpression2.swift
[91/110] Compiling ContainersPreview RangeReplaceableContainer.swift
[92/110] Compiling ContainersPreview Drain+Map.swift
[94/114] Compiling ContainersPreview Drain+Reduce.swift
[95/114] Compiling ContainersPreview Drain.swift
[96/114] Compiling ContainersPreview Producer+Collect.swift
[97/114] Compiling ContainersPreview Producer+Filter.swift
[98/114] Compiling ContainersPreview Container.swift
[99/114] Compiling ContainersPreview ContainerIterator.swift
[100/114] Compiling ContainersPreview DynamicContainer.swift
[101/114] Compiling ContainersPreview MutableContainer.swift
[102/114] Compiling ContainersPreview PermutableContainer.swift
[103/114] Compiling ContainersPreview OutputSpan+Extras.swift
[104/114] Compiling ContainersPreview TemporaryAllocation.swift
[105/114] Compiling ContainersPreview BorrowingIteratorProtocol+Copy.swift
[106/114] Compiling ContainersPreview BorrowingIteratorProtocol+ElementsEqual.swift
[107/114] Compiling ContainersPreview BorrowingIteratorProtocol+Filter.swift
[108/114] Emitting module ContainersPreview
[109/114] Compiling ContainersPreview Box.swift
[110/114] Compiling ContainersPreview Inout.swift
[111/114] Compiling ContainersPreview InputSpan.swift
[112/114] Compiling ContainersPreview Shared.swift
[113/115] Compiling NIOConcurrencyHelpers NIOThreadPoolWorkAvailable.swift
[114/115] Compiling NIOConcurrencyHelpers atomics.swift
[117/156] Compiling DequeModule UniqueDeque+Consumption.swift
[118/156] Compiling DequeModule UniqueDeque+Container.swift
[119/156] Compiling DequeModule UniqueDeque+Descriptions.swift
[120/156] Compiling DequeModule UniqueDeque+Equatable.swift
[121/156] Compiling DequeModule UniqueDeque+Experimental.swift
[122/161] Compiling DequeModule _DequeBuffer.swift
[123/161] Compiling DequeModule _DequeBufferHeader.swift
[124/161] Compiling DequeModule RigidDeque+Append.swift
[125/161] Compiling DequeModule RigidDeque+Consumption.swift
[126/161] Compiling DequeModule RigidDeque+Container.swift
[127/161] Compiling DequeModule RigidDeque+Descriptions.swift
[128/161] Compiling DequeModule RigidDeque+Removals.swift
[129/161] Compiling DequeModule RigidDeque+Replacements.swift
[130/161] Compiling DequeModule RigidDeque+Testing.swift
[131/161] Compiling DequeModule RigidDeque.swift
[132/161] Compiling DequeModule UniqueDeque+Append.swift
[133/161] Compiling DequeModule RigidDeque+Equatable.swift
[134/161] Compiling DequeModule RigidDeque+Experimental.swift
[135/161] Compiling DequeModule RigidDeque+Hashable.swift
[136/161] Compiling DequeModule RigidDeque+Initializers.swift
[137/161] Compiling DequeModule RigidDeque+Insertions.swift
[138/161] Compiling DequeModule RigidDeque+Prepend.swift
[139/161] Compiling DequeModule UniqueDeque+Hashable.swift
[140/161] Compiling DequeModule UniqueDeque+Initializers.swift
[141/161] Compiling DequeModule UniqueDeque+Insertions.swift
[142/161] Compiling DequeModule UniqueDeque+Prepend.swift
[143/161] Compiling DequeModule UniqueDeque+Removals.swift
[144/161] Compiling DequeModule Deque+Codable.swift
[145/161] Compiling DequeModule Deque+Collection.swift
[146/161] Compiling DequeModule Deque+CustomReflectable.swift
[147/161] Compiling DequeModule Deque+Descriptions.swift
[148/161] Compiling DequeModule Deque+Equatable.swift
[149/161] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[150/161] Compiling DequeModule Deque+Extras.swift
[151/161] Compiling DequeModule Deque+Hashable.swift
[152/161] Compiling DequeModule Deque+Testing.swift
[153/161] Compiling DequeModule Deque._Storage.swift
[154/161] Compiling DequeModule Deque._UnsafeHandle.swift
[155/161] Compiling DequeModule Deque.swift
[156/161] Emitting module DequeModule
[157/161] Compiling DequeModule UniqueDeque+Replacements.swift
[158/161] Compiling DequeModule UniqueDeque.swift
[159/161] Compiling DequeModule _DequeSlot.swift
[160/161] Compiling DequeModule _UnsafeDequeHandle.swift
[161/161] Compiling DequeModule _UnsafeDequeSegments.swift
[163/226] Compiling NIOCore NIOCoreSendableMetatype.swift
[164/226] Compiling NIOCore NIODecodedAsyncSequence.swift
[165/226] Compiling NIOCore NIOLoopBound.swift
[166/226] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[167/226] Compiling NIOCore NIOScheduledCallback.swift
[168/226] Compiling NIOCore NIOSendable.swift
[169/226] Compiling NIOCore NIOSplitLinesMessageDecoder.swift
[170/226] Compiling NIOCore NIOTransportAccessibleChannelCore.swift
[171/226] Compiling NIOCore RecvByteBufferAllocator.swift
[172/234] Compiling NIOCore AddressedEnvelope.swift
[173/234] Compiling NIOCore AsyncAwaitSupport.swift
[174/234] Compiling NIOCore AsyncChannel.swift
[175/234] Compiling NIOCore AsyncChannelHandler.swift
[176/234] Compiling NIOCore AsyncChannelInboundStream.swift
[177/234] Compiling NIOCore AsyncChannelOutboundWriter.swift
[178/234] Compiling NIOCore NIOAsyncSequenceProducer.swift
[179/234] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[180/234] Compiling NIOCore NIOAsyncWriter.swift
[181/234] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[182/234] Compiling NIOCore SocketAddresses.swift
[183/234] Compiling NIOCore SocketOptionProvider.swift
[184/234] Compiling NIOCore SystemCallHelpers.swift
[185/234] Compiling NIOCore TimeAmount+Duration.swift
[186/234] Compiling NIOCore TypeAssistedChannelHandler.swift
[187/234] Compiling NIOCore UniversalBootstrapSupport.swift
[188/234] Compiling NIOCore Utilities.swift
[189/234] Compiling NIOCore CircularBuffer.swift
[190/234] Compiling NIOCore Codec.swift
[191/234] Compiling NIOCore ConvenienceOptionSupport.swift
[192/234] Compiling NIOCore DeadChannel.swift
[193/234] Compiling NIOCore DispatchQueue+WithFuture.swift
[194/234] Compiling NIOCore EventLoop+Deprecated.swift
[195/234] Compiling NIOCore EventLoop+SerialExecutor.swift
[196/234] Compiling NIOCore EventLoop.swift
[197/234] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[198/234] Compiling NIOCore EventLoopFuture+Deprecated.swift
[199/234] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[200/234] Compiling NIOCore EventLoopFuture.swift
[201/234] Compiling NIOCore FileDescriptor.swift
[202/234] Compiling NIOCore FileHandle.swift
[203/234] Compiling NIOCore FileRegion.swift
[204/234] Compiling NIOCore GlobalSingletons.swift
[205/234] Compiling NIOCore IO.swift
[206/234] Compiling NIOCore IOData.swift
[207/234] Compiling NIOCore IPProtocol.swift
[208/234] Compiling NIOCore IntegerBitPacking.swift
[209/234] Compiling NIOCore IntegerTypes.swift
[210/234] Compiling NIOCore Interfaces.swift
[211/234] Compiling NIOCore Linux.swift
[212/234] Compiling NIOCore MarkedCircularBuffer.swift
[213/234] Compiling NIOCore MulticastChannel.swift
[214/234] Compiling NIOCore NIOAny.swift
[215/234] Compiling NIOCore NIOCloseOnErrorHandler.swift
[216/234] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[217/234] Compiling NIOCore BSDSocketAPI.swift
[218/234] Compiling NIOCore ByteBuffer-aux.swift
[219/234] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[220/234] Compiling NIOCore ByteBuffer-conversions.swift
[221/234] Compiling NIOCore ByteBuffer-core.swift
[222/234] Compiling NIOCore ByteBuffer-hex.swift
[223/234] Compiling NIOCore ByteBuffer-int.swift
[224/234] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[225/234] Compiling NIOCore ByteBuffer-multi-int.swift
[226/234] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[227/234] Compiling NIOCore ByteBuffer-views.swift
[228/234] Compiling NIOCore Channel.swift
[229/234] Compiling NIOCore ChannelHandler.swift
[230/234] Compiling NIOCore ChannelHandlers.swift
[231/234] Compiling NIOCore ChannelInvoker.swift
[232/234] Compiling NIOCore ChannelOption.swift
[233/234] Compiling NIOCore ChannelPipeline.swift
[234/234] Emitting module NIOCore
error: emit-module command failed with exit code 1 (use -v to see invocation)
[236/240] Compiling EventSource AsyncEventsSequence.swift
[237/240] Compiling EventSource AsyncSequence+Events.swift
[238/240] Compiling EventSource EventSource+AsyncHTTPClient.swift
[239/240] 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: 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: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: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
[240/240] 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.3 wasm