The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-extract, reference v0.16.0 (9a4211), with Swift 6.3 for Wasm on 30 Sep 2026 18:42:50 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asaptf/swift-extract.git
Reference: v0.16.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/asaptf/swift-extract
 * tag               v0.16.0    -> FETCH_HEAD
HEAD is now at 9a4211d Record 0.16.0: a line of Chinese, Japanese or Korean is read as its words.
Cloned https://github.com/asaptf/swift-extract.git
Revision (git rev-parse @):
9a4211d3d0d04e109fec80d93521f3f8e82efbd8
SUCCESS checkout https://github.com/asaptf/swift-extract.git at v0.16.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/asaptf/swift-extract.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:253aad7f5b11d25cf9eaef34120b94cd8a325782929c57fb304a7711494a3f9a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/huggingface/AnyLanguageModel.git
[1/5599] Fetching anylanguagemodel
Fetched https://github.com/huggingface/AnyLanguageModel.git from cache (1.19s)
[1/80093] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (6.31s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (8.04s)
Computing version for https://github.com/huggingface/AnyLanguageModel.git
Computed https://github.com/huggingface/AnyLanguageModel.git at 0.8.0 (0.33s)
Fetching https://github.com/mattt/PartialJSONDecoder
Fetching https://github.com/mattt/JSONSchema
Fetching https://github.com/mattt/EventSource
[1/303] Fetching eventsource
Fetched https://github.com/mattt/EventSource from cache (0.53s)
[2/82] Fetching partialjsondecoder
[83/289] Fetching partialjsondecoder, jsonschema
Fetched https://github.com/mattt/PartialJSONDecoder from cache (0.68s)
Fetched https://github.com/mattt/JSONSchema from cache (0.68s)
Computing version for https://github.com/mattt/PartialJSONDecoder
Computed https://github.com/mattt/PartialJSONDecoder at 1.0.1 (0.95s)
Computing version for https://github.com/mattt/JSONSchema
Computed https://github.com/mattt/JSONSchema at 1.3.1 (0.24s)
Fetching https://github.com/apple/swift-collections.git
[1/28069] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.68s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (1.98s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.1 (0.45s)
Creating working copy for https://github.com/huggingface/AnyLanguageModel.git
Working copy of https://github.com/huggingface/AnyLanguageModel.git resolved at 0.8.0
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/mattt/EventSource
Working copy of https://github.com/mattt/EventSource resolved at 1.5.1
Creating working copy for https://github.com/mattt/PartialJSONDecoder
Working copy of https://github.com/mattt/PartialJSONDecoder resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.1
Creating working copy for https://github.com/mattt/JSONSchema
Working copy of https://github.com/mattt/JSONSchema resolved at 1.3.1
Building for debugging...
[0/63] Write sources
[21/63] Compiling _SwiftSyntaxCShims dummy.c
[22/63] Write sources
[32/63] Write swift-version-24593BA9C3E375BF.txt
[34/140] Emitting module SwiftSyntax600
[35/140] Emitting module InternalCollectionsUtilities
[36/143] Emitting module PartialJSONDecoder
[37/143] Emitting module InternalCollectionsUtilities
[38/146] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[39/146] Compiling InternalCollectionsUtilities String+Padding.swift
[40/146] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[41/146] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[42/146] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[43/146] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[44/146] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[45/146] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[46/146] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[47/146] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[48/146] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[49/146] Emitting module SwiftSyntax509
[50/146] Compiling SwiftSyntax509 Empty.swift
[51/147] Compiling SwiftSyntax600 Empty.swift
[52/147] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[53/147] Compiling InternalCollectionsUtilities _SortedCollection.swift
[54/147] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[56/148] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[57/148] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[58/148] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[59/148] Compiling InternalCollectionsUtilities Span+Extras.swift
[60/148] Compiling InternalCollectionsUtilities MutableRef.swift
[61/148] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[62/148] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[63/148] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[65/148] Compiling EventSource AsyncSequence+Events.swift
[65/148] Wrapping AST for SwiftSyntax600 for debugging
[67/148] Emitting module SwiftSyntax510
[68/148] Compiling SwiftSyntax510 Empty.swift
[69/151] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[70/151] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[71/151] Compiling InternalCollectionsUtilities Debugging.swift
[72/151] Compiling InternalCollectionsUtilities Descriptions.swift
[73/154] Wrapping AST for SwiftSyntax509 for debugging
[75/154] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[76/154] Compiling InternalCollectionsUtilities Integer rank.swift
[77/154] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[78/154] Compiling InternalCollectionsUtilities UInt+reversed.swift
[79/155] Compiling EventSource AsyncEventsSequence.swift
[80/155] Emitting module EventSource
[80/155] Wrapping AST for SwiftSyntax510 for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[83/219] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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
[84/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[85/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[86/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[87/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[88/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[89/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[90/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[91/276] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[92/283] Compiling PartialJSONDecoder JSONCompleter.swift
[93/283] Compiling PartialJSONDecoder PartialJSONDecoder.swift
[94/283] Compiling PartialJSONDecoder AsyncSequence+PartialJSON.swift
[95/283] Compiling OrderedCollections OrderedDictionary+Codable.swift
[96/283] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[97/283] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[98/283] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[99/283] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[100/283] Compiling OrderedCollections OrderedDictionary+Elements.swift
[101/283] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[102/283] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[111/283] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[112/291] Compiling OrderedCollections OrderedSet+Hashable.swift
[113/291] Compiling OrderedCollections OrderedSet+Initializers.swift
[114/291] Compiling OrderedCollections OrderedSet+Insertions.swift
[115/291] Compiling OrderedCollections OrderedSet+Invariants.swift
[116/291] Compiling OrderedCollections OrderedSet+Move.swift
[117/291] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[118/291] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[119/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[120/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[121/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[122/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[123/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[124/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[125/291] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[126/291] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[127/291] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[128/291] Compiling PartialJSONDecoder AsyncPartialJSONSequence.swift
[131/292] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[132/292] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[133/292] Compiling OrderedCollections OrderedDictionary+Move.swift
[134/292] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[135/292] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[136/292] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[137/292] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[138/292] Compiling OrderedCollections OrderedDictionary+Values.swift
[139/292] Compiling OrderedCollections OrderedDictionary.swift
[140/292] Compiling OrderedCollections OrderedSet+Codable.swift
[141/292] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[142/292] Compiling OrderedCollections OrderedSet+Descriptions.swift
[143/292] Compiling OrderedCollections OrderedSet+Diffing.swift
[144/292] Compiling OrderedCollections OrderedSet+Equatable.swift
[145/292] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[146/292] Compiling OrderedCollections _HashTable+Bucket.swift
[147/292] Compiling OrderedCollections _HashTable+BucketIterator.swift
[148/292] Compiling OrderedCollections _HashTable+Constants.swift
[149/292] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[150/292] Compiling OrderedCollections _HashTable+Testing.swift
[151/292] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[152/292] Compiling OrderedCollections _HashTable.swift
[153/292] Compiling OrderedCollections _Hashtable+Header.swift
[154/292] Compiling OrderedCollections OrderedSet+Sendable.swift
[155/292] Compiling OrderedCollections OrderedSet+SubSequence.swift
[156/292] Compiling OrderedCollections OrderedSet+Testing.swift
[157/292] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[158/292] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[159/292] Compiling OrderedCollections OrderedSet.swift
[160/292] Compiling OrderedCollections _UnsafeBitset.swift
[180/292] Compiling EventSource EventSource+AsyncHTTPClient.swift
[181/292] Compiling EventSource EventSource.swift
[182/293] Compiling EventSource AsyncSequence+Events.swift
[183/293] Compiling EventSource AsyncEventsSequence.swift
[205/351] Wrapping AST for InternalCollectionsUtilities for debugging
[207/351] Compiling OrderedCollections OrderedDictionary.swift
[208/351] Compiling OrderedCollections OrderedSet+Codable.swift
[209/351] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[210/351] Compiling OrderedCollections OrderedSet+Descriptions.swift
[211/351] Compiling OrderedCollections OrderedSet+Diffing.swift
[212/351] Compiling OrderedCollections OrderedSet+Equatable.swift
[213/351] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[214/351] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[215/351] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[216/351] Compiling PartialJSONDecoder PartialJSONDecoder.swift
[217/351] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[218/351] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[219/351] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[220/351] Compiling OrderedCollections OrderedDictionary+Move.swift
[221/351] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[222/351] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[223/351] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[224/351] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[225/358] Compiling PartialJSONDecoder JSONCompleter.swift
[226/358] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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/.build/checkouts/EventSource/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)
[227/358] Compiling EventSource EventSource+AsyncHTTPClient.swift
[228/358] Emitting module PartialJSONDecoder
BUILD FAILURE 6.3 wasm