Build Information
Failed to build swift-extract, reference main (c27fb3), with Swift 6.3 for Wasm on 2 Nov 2026 07:27:26 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-0":/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>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asaptf/swift-extract.git
Reference: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c27fb3d Fix CI Core Image compatibility and OCR test contention (#11)
Cloned https://github.com/asaptf/swift-extract.git
Revision (git rev-parse @):
c27fb3da750dc3eaa8f135a71772dd6dc1903801
SUCCESS checkout https://github.com/asaptf/swift-extract.git at main
========================================
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-54344847-0":/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:eea66feda95ad8894091082dbcb77ec1fc917891d37888fd1938b0b68455d992
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/huggingface/AnyLanguageModel.git
Fetching https://github.com/swiftlang/swift-syntax
[1/9491] Fetching anylanguagemodel
Fetched https://github.com/huggingface/AnyLanguageModel.git from cache (2.01s)
[1/81484] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (5.79s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 600.0.1 (6.80s)
Computing version for https://github.com/huggingface/AnyLanguageModel.git
Computed https://github.com/huggingface/AnyLanguageModel.git at 0.8.0 (0.25s)
Fetching https://github.com/mattt/PartialJSONDecoder
Fetching https://github.com/mattt/EventSource
Fetching https://github.com/mattt/JSONSchema
[1/207] Fetching jsonschema
[16/540] Fetching jsonschema, eventsource
[301/628] Fetching jsonschema, eventsource, partialjsondecoder
Fetched https://github.com/mattt/JSONSchema from cache (0.42s)
Fetched https://github.com/mattt/PartialJSONDecoder from cache (0.43s)
Fetched https://github.com/mattt/EventSource from cache (0.43s)
Computing version for https://github.com/mattt/PartialJSONDecoder
Computed https://github.com/mattt/PartialJSONDecoder at 1.0.1 (0.63s)
Computing version for https://github.com/mattt/JSONSchema
Computed https://github.com/mattt/JSONSchema at 1.3.1 (0.21s)
Fetching https://github.com/apple/swift-collections.git
[1/29448] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.79s)
Computing version for https://github.com/mattt/EventSource
Computed https://github.com/mattt/EventSource at 1.5.1 (2.05s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (0.39s)
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/huggingface/AnyLanguageModel.git
Working copy of https://github.com/huggingface/AnyLanguageModel.git resolved at 0.8.0
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/mattt/JSONSchema
Working copy of https://github.com/mattt/JSONSchema resolved at 1.3.1
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/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.5
Building for debugging...
[0/63] Write sources
[31/63] Compiling _SwiftSyntaxCShims dummy.c
[32/63] Write swift-version-24593BA9C3E375BF.txt
[34/114] Emitting module SwiftSyntax510
[35/140] Emitting module SwiftSyntax509
[36/140] Emitting module InternalCollectionsUtilities
[37/143] Emitting module PartialJSONDecoder
[39/143] Compiling SwiftSyntax600 Empty.swift
[40/143] Emitting module SwiftSyntax600
[41/144] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[42/144] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[43/144] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[44/144] Compiling InternalCollectionsUtilities MutableRef.swift
[45/147] Emitting module EventSource
[47/147] Compiling SwiftSyntax509 Empty.swift
[49/153] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[50/153] Compiling InternalCollectionsUtilities _SortedCollection.swift
[51/153] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[51/153] Wrapping AST for SwiftSyntax600 for debugging
[52/153] Emitting module InternalCollectionsUtilities
[54/153] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[55/153] Compiling InternalCollectionsUtilities Integer rank.swift
[56/153] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[57/153] Compiling InternalCollectionsUtilities UInt+reversed.swift
[58/153] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[59/153] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[60/153] Compiling InternalCollectionsUtilities Debugging.swift
[61/153] Compiling InternalCollectionsUtilities Descriptions.swift
[61/153] Wrapping AST for SwiftSyntax509 for debugging
[63/153] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[64/153] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[65/153] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[66/153] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[67/153] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[68/153] Compiling InternalCollectionsUtilities String+Padding.swift
[69/153] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[70/153] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[71/153] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[72/153] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[73/153] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[74/153] Compiling InternalCollectionsUtilities Span+Extras.swift
[75/153] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[76/153] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[77/153] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[78/154] Compiling SwiftSyntax510 Empty.swift
[80/155] Wrapping AST for SwiftSyntax510 for debugging
[82/276] Compiling SwiftSyntax Trivia.swift
[83/276] Compiling SwiftSyntax AbsolutePosition.swift
[84/276] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[85/276] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[86/276] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[87/276] Compiling SwiftSyntax TokenDiagnostic.swift
[88/276] Compiling SwiftSyntax TokenSequence.swift
[89/276] Compiling SwiftSyntax TokenSyntax.swift
[90/276] Compiling SwiftSyntax SyntaxBaseNodes.swift
[91/276] Compiling SwiftSyntax SyntaxCollections.swift
[92/276] Compiling SwiftSyntax SyntaxEnum.swift
[93/276] Compiling SwiftSyntax Keyword.swift
[94/276] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[95/276] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[96/276] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[97/276] Compiling SwiftSyntax SyntaxNodeFactory.swift
[98/276] Compiling SwiftSyntax SyntaxNodeStructure.swift
[99/276] Compiling SwiftSyntax SyntaxProtocol.swift
[100/276] Compiling SwiftSyntax SyntaxText.swift
[101/276] Compiling SwiftSyntax MemoryLayout.swift
[102/276] Compiling SwiftSyntax MissingNodeInitializers.swift
[103/276] Compiling SwiftSyntax RawSyntax.swift
[104/276] Compiling EventSource EventSource+AsyncHTTPClient.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[105/276] 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
[106/276] Compiling EventSource AsyncSequence+Events.swift
[107/276] Compiling EventSource AsyncEventsSequence.swift
[108/276] Compiling SwiftSyntax CustomTraits.swift
[109/276] Compiling SwiftSyntax Identifier.swift
[110/276] Compiling SwiftSyntax Utils.swift
[111/276] Compiling SwiftSyntax ChildNameForKeyPath.swift
[112/276] Compiling SwiftSyntax Assert.swift
[113/276] Compiling SwiftSyntax BumpPtrAllocator.swift
[114/276] Compiling SwiftSyntax CommonAncestor.swift
[115/276] Compiling SwiftSyntax Convenience.swift
[117/277] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[118/277] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[119/277] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[120/277] Compiling SwiftSyntax RawSyntaxValidation.swift
[121/277] Compiling SwiftSyntax SyntaxNodesAB.swift
[122/277] Compiling SwiftSyntax SyntaxKind.swift
[123/277] Compiling SwiftSyntax SyntaxRewriter.swift
[124/277] Compiling SwiftSyntax SyntaxTraits.swift
[124/282] Wrapping AST for InternalCollectionsUtilities for debugging
[132/284] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[133/284] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[134/341] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[135/341] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[136/341] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[137/341] Compiling OrderedCollections OrderedDictionary+Move.swift
[138/341] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[139/341] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[140/341] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[141/341] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[142/341] Compiling OrderedCollections OrderedSet+Hashable.swift
[143/341] Compiling OrderedCollections OrderedSet+Initializers.swift
[144/341] Compiling OrderedCollections OrderedSet+Insertions.swift
[145/341] Compiling OrderedCollections OrderedSet+Invariants.swift
[146/341] Compiling OrderedCollections OrderedSet+Move.swift
[147/341] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[148/341] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[149/341] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[150/341] Compiling OrderedCollections _HashTable+Bucket.swift
[151/341] Compiling OrderedCollections _HashTable+BucketIterator.swift
[152/341] Compiling OrderedCollections _HashTable+Constants.swift
[153/341] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[154/341] Compiling OrderedCollections _HashTable+Testing.swift
[155/341] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[156/341] Compiling OrderedCollections _HashTable.swift
[157/341] Compiling OrderedCollections _Hashtable+Header.swift
[158/341] Compiling PartialJSONDecoder PartialJSONDecoder.swift
[167/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[168/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[169/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[170/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[171/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[172/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[173/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[174/348] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[175/348] Compiling PartialJSONDecoder AsyncSequence+PartialJSON.swift
[176/348] Compiling PartialJSONDecoder JSONCompleter.swift
[177/348] Compiling EventSource EventSource+AsyncHTTPClient.swift
[178/348] Compiling EventSource AsyncSequence+Events.swift
[179/348] Compiling EventSource EventSource.swift
[180/348] Compiling EventSource AsyncEventsSequence.swift
[182/349] Compiling PartialJSONDecoder AsyncPartialJSONSequence.swift
[184/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[185/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[186/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[187/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[188/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[189/350] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[190/350] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[191/350] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[200/350] Compiling OrderedCollections OrderedDictionary+Codable.swift
[201/350] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[202/350] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[203/350] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[204/350] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[205/350] Compiling OrderedCollections OrderedDictionary+Elements.swift
[206/350] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[207/350] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[208/350] Compiling PartialJSONDecoder AsyncSequence+PartialJSON.swift
[218/350] Compiling OrderedCollections OrderedSet+Sendable.swift
[219/350] Compiling OrderedCollections OrderedSet+SubSequence.swift
[220/350] Compiling OrderedCollections OrderedSet+Testing.swift
[221/350] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[222/350] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[223/350] Compiling OrderedCollections OrderedSet.swift
[224/350] Compiling OrderedCollections UnsafeBitset.swift
[225/350] 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: 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
/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)
[235/350] Compiling PartialJSONDecoder PartialJSONDecoder.swift
BUILD FAILURE 6.3 wasm