Build Information
Failed to build ResponsesAPI, reference main (4b576c), with Swift 6.1 for Wasm on 11 Dec 2025 23:53:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/m1guelpf/swift-openai-responses.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/m1guelpf/swift-openai-responses
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4b576c2 wip
Cloned https://github.com/m1guelpf/swift-openai-responses.git
Revision (git rev-parse @):
4b576c276b825f2323b2b2041263a43a17b8d466
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/m1guelpf/swift-openai-responses.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/m1guelpf/swift-openai-responses.git
https://github.com/m1guelpf/swift-openai-responses.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "metacodable",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/SwiftyLab/MetaCodable.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-docc-plugin"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
},
{
"identity" : "eventsource",
"requirement" : {
"branch" : [
"compiler-fix"
]
},
"type" : "sourceControl",
"url" : "https://github.com/m1guelpf/EventSource.git"
},
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "600.0.1",
"upper_bound" : "603.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
}
],
"manifest_display_name" : "ResponsesAPI",
"name" : "ResponsesAPI",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "17.0"
},
{
"name" : "tvos",
"version" : "17.0"
},
{
"name" : "macos",
"version" : "14.0"
},
{
"name" : "watchos",
"version" : "10.0"
},
{
"name" : "visionos",
"version" : "1.0"
},
{
"name" : "maccatalyst",
"version" : "17.0"
}
],
"products" : [
{
"name" : "ResponsesAPI",
"targets" : [
"ResponsesAPI"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "Macros",
"targets" : [
"Macros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "Tests",
"module_type" : "SwiftTarget",
"name" : "Tests",
"path" : "tests",
"product_dependencies" : [
"MacroTesting",
"SwiftSyntaxMacrosTestSupport"
],
"sources" : [
"SchemaMacroTests.swift",
"ToolMacroTests.swift"
],
"target_dependencies" : [
"ResponsesAPI",
"Macros"
],
"type" : "test"
},
{
"c99name" : "ResponsesAPI",
"module_type" : "SwiftTarget",
"name" : "ResponsesAPI",
"path" : "src",
"product_dependencies" : [
"EventSource",
"MetaCodable",
"HelperCoders"
],
"product_memberships" : [
"ResponsesAPI"
],
"sources" : [
"Conversation.swift",
"ConversationsAPI.swift",
"Extensions/Collection+safeAccess.swift",
"Extensions/JSONEncoder+string.swift",
"Extensions/Result+async.swift",
"Extensions/URL+appendOptionalQueryItems.swift",
"Macros/ArraySchemaMacro.swift",
"Macros/NumberSchemaMacro.swift",
"Macros/SchemaMacro.swift",
"Macros/StringSchemaMacro.swift",
"Macros/ToolMacro.swift",
"Models/APIConversation.swift",
"Models/Config.swift",
"Models/Event.swift",
"Models/File.swift",
"Models/Input.swift",
"Models/Item.swift",
"Models/JSONSchema.swift",
"Models/Message.swift",
"Models/Model.swift",
"Models/Request.swift",
"Models/Response.swift",
"Models/Tool.swift",
"Models/WebhookEvent.swift",
"Protocol/Schemable.swift",
"Protocol/Toolable.swift",
"ResponsesAPI.swift",
"Support/APIClient.swift",
"Support/MultiPartData.swift",
"Support/helpers.swift"
],
"target_dependencies" : [
"Macros"
],
"type" : "library"
},
{
"c99name" : "Macros",
"module_type" : "SwiftTarget",
"name" : "Macros",
"path" : "macros",
"product_dependencies" : [
"SwiftSyntax",
"SwiftDiagnostics",
"SwiftSyntaxMacros",
"SwiftSyntaxBuilder",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"ResponsesAPI",
"Macros"
],
"sources" : [
"Extensions/AttributeListSyntax+arguments.swift",
"Extensions/DeclGroupSyntax+accessLevel.swift",
"Extensions/ExtensionDeclSyntax+init.swift",
"Extensions/MemberBlockItemListSyntax+declaresVariable.swift",
"Extensions/PatternBindingSyntax+isStored.swift",
"Extensions/String+isPlaceholder.swift",
"Extensions/SyntaxProtocol+docString.swift",
"Extensions/TypeSyntax+typeInfo.swift",
"Generators/EnumSchemaGenerator.swift",
"Generators/SchemaGenerator.swift",
"Generators/StructSchemaGenerator.swift",
"Macros/ArraySchemaMacro.swift",
"Macros/NumberSchemaMacro.swift",
"Macros/SchemaMacro.swift",
"Macros/StringSchemaMacro.swift",
"Macros/ToolMacro.swift",
"Plugin.swift",
"Support/DiagnosticError.swift",
"Support/DocString.swift",
"Support/helpers.swift"
],
"type" : "macro"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/m1guelpf/EventSource.git
[1/605] Fetching eventsource
Fetched https://github.com/m1guelpf/EventSource.git from cache (0.23s)
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/SwiftyLab/MetaCodable.git
[1/932] Fetching swift-macro-testing
[95/3090] Fetching swift-macro-testing, swift-docc-plugin
[2530/109157] Fetching swift-macro-testing, swift-docc-plugin, metacodable
[9456/182267] Fetching swift-macro-testing, swift-docc-plugin, metacodable, swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (13.68s)
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (15.76s)
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (15.77s)
Fetched https://github.com/SwiftyLab/MetaCodable.git from cache (16.02s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 602.0.0 (19.57s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.4 (0.61s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/15633] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (3.26s)
Computing version for https://github.com/SwiftyLab/MetaCodable.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.85s)
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.4 (0.00s)
Computed https://github.com/SwiftyLab/MetaCodable.git at 1.5.0 (0.00s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-argument-parser.git
[1/16911] Fetching swift-argument-parser
[13699/35289] Fetching swift-argument-parser, swift-collections
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.73s)
[7719/18378] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.51s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (2.31s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3594] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.41s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.17s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.2 (0.77s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.7 (0.66s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/4651] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.34s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (1.00s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5600] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.80s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.71s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.8.0 (0.57s)
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/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.8.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/m1guelpf/EventSource.git
Working copy of https://github.com/m1guelpf/EventSource.git resolved at compiler-fix (1942aa5)
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.7
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.6.4
Creating working copy for https://github.com/SwiftyLab/MetaCodable.git
Working copy of https://github.com/SwiftyLab/MetaCodable.git resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.2
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin MetaProtocolCodable
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/59] Write sources
[33/59] Compiling _SwiftSyntaxCShims dummy.c
[34/59] Write swift-version-24593BA9C3E375BF.txt
[36/101] Emitting module SwiftSyntax600
[37/101] Emitting module SwiftSyntax510
[38/101] Compiling SwiftSyntax510 Empty.swift
[39/102] Emitting module SwiftSyntax601
[40/102] Compiling SwiftSyntax601 Empty.swift
[41/102] Emitting module InternalCollectionsUtilities
[42/102] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[43/102] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[44/103] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[45/103] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[46/105] Emitting module SwiftSyntax509
[47/105] Compiling SwiftSyntax509 Empty.swift
[48/105] Compiling InternalCollectionsUtilities _SortedCollection.swift
[49/105] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[50/105] Compiling InternalCollectionsUtilities Debugging.swift
[51/105] Compiling InternalCollectionsUtilities Descriptions.swift
[52/105] Compiling SwiftSyntax600 Empty.swift
[53/107] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[54/107] Compiling InternalCollectionsUtilities Integer rank.swift
[55/107] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[56/107] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[57/107] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[58/107] Compiling InternalCollectionsUtilities UInt+reversed.swift
[59/107] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[63/107] Wrapping AST for SwiftSyntax510 for debugging
[65/107] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[66/107] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[66/108] Wrapping AST for SwiftSyntax601 for debugging
[67/108] Wrapping AST for SwiftSyntax509 for debugging
[68/108] Wrapping AST for SwiftSyntax600 for debugging
[70/172] Wrapping AST for InternalCollectionsUtilities for debugging
[72/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[73/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[74/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[75/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[76/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[77/227] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[78/227] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[79/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[80/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[81/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[82/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[83/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[84/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[85/227] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[86/234] Compiling EventSource Extensions.swift
[87/235] Compiling OrderedCollections OrderedDictionary.swift
[88/235] Compiling OrderedCollections OrderedSet+Codable.swift
[89/235] Compiling OrderedCollections OrderedSet+CustomReflectable.swift
[90/235] Compiling OrderedCollections OrderedSet+Descriptions.swift
[91/235] Compiling OrderedCollections OrderedSet+Diffing.swift
[92/235] Compiling OrderedCollections OrderedSet+Equatable.swift
[93/235] Compiling OrderedCollections OrderedSet+ExpressibleByArrayLiteral.swift
[94/235] Compiling OrderedCollections OrderedSet+Hashable.swift
[95/235] Compiling OrderedCollections OrderedSet+Initializers.swift
[96/235] Compiling OrderedCollections OrderedSet+Insertions.swift
[97/235] Compiling OrderedCollections OrderedSet+Invariants.swift
[98/235] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[99/235] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[100/235] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[101/235] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[102/235] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[103/235] Compiling OrderedCollections OrderedDictionary+Codable.swift
[104/235] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[105/235] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[106/235] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[107/235] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[108/235] Compiling OrderedCollections OrderedDictionary+Elements.swift
[109/235] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[110/235] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[111/235] Compiling OrderedCollections OrderedDictionary+Hashable.swift
[112/235] Compiling OrderedCollections OrderedDictionary+Initializers.swift
[113/235] Compiling OrderedCollections OrderedDictionary+Invariants.swift
[114/235] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[115/235] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
[116/235] Compiling OrderedCollections OrderedDictionary+Sendable.swift
[117/235] Compiling OrderedCollections OrderedDictionary+Sequence.swift
[118/235] Compiling OrderedCollections OrderedDictionary+Values.swift
[119/235] Compiling EventSource EventSourceError.swift
[120/235] Compiling EventSource ServerEvent.swift
[121/236] Compiling EventSource Mutex.swift
[122/236] Compiling EventSource Headers.swift
[123/236] Compiling EventSource Extensions.swift
[124/236] Emitting module EventSource
[125/236] Compiling OrderedCollections _HashTable+Bucket.swift
[126/236] Compiling OrderedCollections _HashTable+BucketIterator.swift
[127/236] Compiling EventSource EventSource.swift
[128/236] Compiling EventSource SessionDelegate.swift
[131/237] Compiling OrderedCollections _HashTable+Constants.swift
[132/237] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[133/237] Compiling OrderedCollections _HashTable+Testing.swift
[134/237] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[135/237] Compiling OrderedCollections _HashTable.swift
[136/237] Compiling OrderedCollections _Hashtable+Header.swift
[138/237] Compiling OrderedCollections OrderedSet+Sendable.swift
[139/237] Compiling OrderedCollections OrderedSet+SubSequence.swift
[140/237] Compiling OrderedCollections OrderedSet+Testing.swift
[141/237] Compiling OrderedCollections OrderedSet+UnorderedView.swift
[142/237] Compiling OrderedCollections OrderedSet+UnstableInternals.swift
[143/237] Compiling OrderedCollections OrderedSet.swift
[144/237] Compiling OrderedCollections _UnsafeBitset.swift
[145/237] Compiling EventSource EventSourceError.swift
[146/237] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[147/237] Compiling EventSource ServerEvent.swift
[148/237] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
62 | DataTask(
63 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 | /// A URLRequest of the events source.
104 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
105 |
106 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let configuration = URLSessionConfiguration.default
143 | configuration.httpAdditionalHeaders = [
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:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 | internal init(
154 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
155 | eventParser: EventParser,
156 | timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | _ error: Error?,
223 | stream continuation: AsyncStream<EventType>.Continuation,
224 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | ) {
226 | guard readyState != .closed else {
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:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 | ) {
246 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 | private func handleSessionResponse(
241 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | _ response: URLResponse,
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 | ) {
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:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// and sets the `readyState` property to `.closed`.
276 | /// - Returns: State before closing.
277 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | let previousState = self.readyState
279 | if previousState != .closed {
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:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | from data: Data,
288 | stream continuation: AsyncStream<EventType>.Continuation,
289 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 | ) {
291 | if let httpResponseErrorStatusCode {
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:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 | public func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 | readyState = .closed
330 | lastMessageId = ""
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:142:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
142 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 | configuration.httpAdditionalHeaders = [
144 | HTTPHeaderField.accept: Accept.eventStream,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:174:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
172 | return AsyncStream { continuation in
173 | let sessionDelegate = SessionDelegate()
174 | let urlSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 | configuration: urlSessionConfiguration,
176 | delegate: sessionDelegate,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:177:36: error: 'nil' requires a contextual type
175 | configuration: urlSessionConfiguration,
176 | delegate: sessionDelegate,
177 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
178 | )
179 | let urlSessionDataTask = urlSession.dataTask(with: urlRequest)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:247:36: error: cannot infer contextual base in reference to member 'cancel'
245 | ) {
246 | guard readyState != .closed else {
247 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
248 | return
249 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:251:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | }
250 |
251 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 | completionHandler(.cancel)
253 | return
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:252:36: error: cannot infer contextual base in reference to member 'cancel'
250 |
251 | guard let httpResponse = response as? HTTPURLResponse else {
252 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
253 | return
254 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:257:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |
256 | // Stop connection when 204 response code, otherwise keep open
257 | guard httpResponse.statusCode != 204 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
258 | completionHandler(.cancel)
259 | close(stream: continuation, urlSession: urlSession)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:258:36: error: cannot infer contextual base in reference to member 'cancel'
256 | // Stop connection when 204 response code, otherwise keep open
257 | guard httpResponse.statusCode != 204 else {
258 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
259 | close(stream: continuation, urlSession: urlSession)
260 | return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:263:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
261 | }
262 |
263 | if 200...299 ~= httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
264 | if readyState != .open {
265 | setOpen(stream: continuation)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:268:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 | }
267 | } else {
268 | httpResponseErrorStatusCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:271:32: error: cannot infer contextual base in reference to member 'allow'
269 | }
270 |
271 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
272 | }
273 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:331:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
329 | readyState = .closed
330 | lastMessageId = ""
331 | urlSession.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
332 | }
333 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[149/237] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
62 | DataTask(
63 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 | /// A URLRequest of the events source.
104 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
105 |
106 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let configuration = URLSessionConfiguration.default
143 | configuration.httpAdditionalHeaders = [
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:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 | internal init(
154 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
155 | eventParser: EventParser,
156 | timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | _ error: Error?,
223 | stream continuation: AsyncStream<EventType>.Continuation,
224 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | ) {
226 | guard readyState != .closed else {
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:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 | ) {
246 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 | private func handleSessionResponse(
241 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | _ response: URLResponse,
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 | ) {
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:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// and sets the `readyState` property to `.closed`.
276 | /// - Returns: State before closing.
277 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | let previousState = self.readyState
279 | if previousState != .closed {
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:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | from data: Data,
288 | stream continuation: AsyncStream<EventType>.Continuation,
289 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 | ) {
291 | if let httpResponseErrorStatusCode {
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:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 | public func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 | readyState = .closed
330 | lastMessageId = ""
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/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[152/237] Compiling EventSource Headers.swift
[153/237] Compiling EventSource Mutex.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin MetaProtocolCodable
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/30] Write swift-version-24593BA9C3E375BF.txt
[7/63] Compiling SwiftSyntax509 Empty.swift
[8/72] Compiling SwiftSyntax600 Empty.swift
[9/72] Emitting module SwiftSyntax509
[10/73] Emitting module SwiftSyntax601
[11/73] Compiling SwiftSyntax601 Empty.swift
[12/73] Emitting module SwiftSyntax510
[13/74] Compiling SwiftSyntax510 Empty.swift
[14/75] Emitting module SwiftSyntax600
[16/76] Compiling EventSource Extensions.swift
[20/73] Compiling EventSource EventSourceError.swift
[21/73] Compiling InternalCollectionsUtilities Debugging.swift
[22/73] Compiling InternalCollectionsUtilities Descriptions.swift
[23/73] Compiling InternalCollectionsUtilities _SortedCollection.swift
[24/73] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[25/73] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[26/73] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[27/73] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[28/73] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[29/75] Compiling EventSource Mutex.swift
[30/75] Compiling EventSource Headers.swift
[31/75] Compiling EventSource Extensions.swift
[32/75] Compiling EventSource EventSourceError.swift
[33/75] Compiling EventSource ServerEvent.swift
[34/76] Compiling EventSource SessionDelegate.swift
[35/76] Emitting module EventSource
[36/76] Compiling EventSource EventSource.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
62 | DataTask(
63 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 | /// A URLRequest of the events source.
104 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
105 |
106 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let configuration = URLSessionConfiguration.default
143 | configuration.httpAdditionalHeaders = [
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:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 | internal init(
154 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
155 | eventParser: EventParser,
156 | timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | _ error: Error?,
223 | stream continuation: AsyncStream<EventType>.Continuation,
224 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | ) {
226 | guard readyState != .closed else {
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:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 | ) {
246 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 | private func handleSessionResponse(
241 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | _ response: URLResponse,
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 | ) {
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:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// and sets the `readyState` property to `.closed`.
276 | /// - Returns: State before closing.
277 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | let previousState = self.readyState
279 | if previousState != .closed {
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:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | from data: Data,
288 | stream continuation: AsyncStream<EventType>.Continuation,
289 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 | ) {
291 | if let httpResponseErrorStatusCode {
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:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 | public func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 | readyState = .closed
330 | lastMessageId = ""
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:142:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
142 | let configuration = URLSessionConfiguration.default
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
143 | configuration.httpAdditionalHeaders = [
144 | HTTPHeaderField.accept: Accept.eventStream,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:174:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
172 | return AsyncStream { continuation in
173 | let sessionDelegate = SessionDelegate()
174 | let urlSession = URLSession(
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
175 | configuration: urlSessionConfiguration,
176 | delegate: sessionDelegate,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:177:36: error: 'nil' requires a contextual type
175 | configuration: urlSessionConfiguration,
176 | delegate: sessionDelegate,
177 | delegateQueue: nil
| `- error: 'nil' requires a contextual type
178 | )
179 | let urlSessionDataTask = urlSession.dataTask(with: urlRequest)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:247:36: error: cannot infer contextual base in reference to member 'cancel'
245 | ) {
246 | guard readyState != .closed else {
247 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
248 | return
249 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:251:51: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
249 | }
250 |
251 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
252 | completionHandler(.cancel)
253 | return
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:252:36: error: cannot infer contextual base in reference to member 'cancel'
250 |
251 | guard let httpResponse = response as? HTTPURLResponse else {
252 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
253 | return
254 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:257:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
255 |
256 | // Stop connection when 204 response code, otherwise keep open
257 | guard httpResponse.statusCode != 204 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
258 | completionHandler(.cancel)
259 | close(stream: continuation, urlSession: urlSession)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:258:36: error: cannot infer contextual base in reference to member 'cancel'
256 | // Stop connection when 204 response code, otherwise keep open
257 | guard httpResponse.statusCode != 204 else {
258 | completionHandler(.cancel)
| `- error: cannot infer contextual base in reference to member 'cancel'
259 | close(stream: continuation, urlSession: urlSession)
260 | return
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:263:42: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
261 | }
262 |
263 | if 200...299 ~= httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
264 | if readyState != .open {
265 | setOpen(stream: continuation)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:268:60: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
266 | }
267 | } else {
268 | httpResponseErrorStatusCode = httpResponse.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
269 | }
270 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:271:32: error: cannot infer contextual base in reference to member 'allow'
269 | }
270 |
271 | completionHandler(.allow)
| `- error: cannot infer contextual base in reference to member 'allow'
272 | }
273 |
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:331:24: error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
329 | readyState = .closed
330 | lastMessageId = ""
331 | urlSession.invalidateAndCancel()
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'invalidateAndCancel'
332 | }
333 | }
[38/76] Compiling EventSource SessionDelegate.swift
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[39/77] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[40/77] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[41/77] Compiling EventSource Data+Trim.swift
[42/77] Compiling EventSource EventParser.swift
[43/132] Compiling EventSource Headers.swift
[44/135] Compiling EventSource Mutex.swift
[45/137] Compiling EventSource ServerEvent.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/141] Emitting module EventSource
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:61:42: error: cannot find type 'URLRequest' in scope
59 | }
60 |
61 | public func dataTask(for urlRequest: URLRequest) -> DataTask {
| `- error: cannot find type 'URLRequest' in scope
62 | DataTask(
63 | urlRequest: urlRequest,
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:104:32: error: cannot find type 'URLRequest' in scope
102 |
103 | /// A URLRequest of the events source.
104 | public let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
105 |
106 | private let _eventParser: Mutex<EventParser>
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:141:46: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
139 | }
140 |
141 | private var urlSessionConfiguration: URLSessionConfiguration {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
142 | let configuration = URLSessionConfiguration.default
143 | configuration.httpAdditionalHeaders = [
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:154:25: error: cannot find type 'URLRequest' in scope
152 |
153 | internal init(
154 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
155 | eventParser: EventParser,
156 | timeoutInterval: TimeInterval
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:224:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
222 | _ error: Error?,
223 | stream continuation: AsyncStream<EventType>.Continuation,
224 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
225 | ) {
226 | guard readyState != .closed else {
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:244:54: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
245 | ) {
246 | guard readyState != .closed else {
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:241:25: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
239 |
240 | private func handleSessionResponse(
241 | _ response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/EventSource.swift:243:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
241 | _ response: URLResponse,
242 | stream continuation: AsyncStream<EventType>.Continuation,
243 | urlSession: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
244 | completionHandler: @escaping (URLSession.ResponseDisposition) -> Void
245 | ) {
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:277:98: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
275 | /// and sets the `readyState` property to `.closed`.
276 | /// - Returns: State before closing.
277 | private func close(stream continuation: AsyncStream<EventType>.Continuation, urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
278 | let previousState = self.readyState
279 | if previousState != .closed {
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:289:25: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
287 | from data: Data,
288 | stream continuation: AsyncStream<EventType>.Continuation,
289 | urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
290 | ) {
291 | if let httpResponseErrorStatusCode {
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:328:40: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
326 | /// canceling the parent Task only cancels the underlying `URLSessionDataTask` of
327 | /// ``EventSource/EventSource/DataTask``; this does not actually stop the ongoing request.
328 | public func cancel(urlSession: URLSession) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
329 | readyState = .closed
330 | lastMessageId = ""
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/SessionDelegate.swift:14:40: error: cannot find type 'URLSessionDataDelegate' in scope
12 | #endif
13 |
14 | final class SessionDelegate: NSObject, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:68: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:33: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | case didReceiveData(Data)
19 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:17:14: error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
15 | enum Event: Sendable {
16 | case didCompleteWithError(Error?)
17 | case didReceiveResponse(URLResponse, @Sendable (URLSession.ResponseDisposition) -> Void)
| `- error: associated value 'didReceiveResponse' of 'Sendable'-conforming enum 'Event' has non-sendable type 'URLResponse' (aka 'AnyObject')
18 | case didReceiveData(Data)
19 | }
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:26:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |
25 | func urlSession(
26 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 | task: URLSessionTask,
28 | didCompleteWithError error: Error?
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:27:15: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 | func urlSession(
26 | _ session: URLSession,
27 | task: URLSessionTask,
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | didCompleteWithError error: Error?
29 | ) {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:37:60: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
38 | ) {
39 | internalStream.continuation.yield(.didReceiveResponse(response, completionHandler))
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:34:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
32 |
33 | func urlSession(
34 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:35:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | func urlSession(
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 | didReceive response: URLResponse,
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:36:30: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 | _ session: URLSession,
35 | dataTask: URLSessionDataTask,
36 | didReceive response: URLResponse,
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
37 | completionHandler: @Sendable @escaping (URLSession.ResponseDisposition) -> Void
38 | ) {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/EventSource/Sources/EventSource/SessionDelegate.swift:43:20: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 | func urlSession(
43 | _ session: URLSession,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 | dataTask: URLSessionDataTask,
45 | didReceive data: Data
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/SessionDelegate.swift:44:19: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | func urlSession(
43 | _ session: URLSession,
44 | dataTask: URLSessionDataTask,
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | didReceive data: Data
46 | ) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[48/141] Compiling SwiftSyntax SourceLocation.swift
[49/141] Compiling SwiftSyntax SourcePresence.swift
[50/141] Emitting module InternalCollectionsUtilities
[51/141] Compiling SwiftSyntax SyntaxArena.swift
[52/141] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[53/141] Compiling SwiftSyntax SyntaxHashable.swift
[54/141] Compiling SwiftSyntax Identifier.swift
[55/141] Compiling SwiftSyntax MemoryLayout.swift
BUILD FAILURE 6.1 wasm