Build Information
Failed to build papyrus, reference main (63fbe1), with Swift 6.1 for Wasm on 8 Nov 2025 04:56:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[232/244] Wrapping AST for SwiftSyntaxBuilder for debugging
[234/261] Compiling SwiftSyntaxMacros CodeItemMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[235/261] Compiling SwiftSyntaxMacros DeclarationMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[236/263] Compiling SwiftSyntaxMacros ExpressionMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[237/263] Compiling SwiftSyntaxMacros ExtensionMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[238/263] Compiling SwiftSyntaxMacros AccessorMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[239/263] Compiling SwiftSyntaxMacros AttachedMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[240/263] Compiling SwiftSyntaxMacros BodyMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[241/263] Compiling SwiftSyntaxMacros FreestandingMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[242/263] Compiling SwiftSyntaxMacros Macro+Format.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[243/263] Compiling SwiftSyntaxMacros Macro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[244/263] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[245/263] Compiling SwiftSyntaxMacros MemberMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[246/263] Compiling SwiftSyntaxMacros PeerMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[247/263] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[248/263] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[249/263] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[250/263] Emitting module SwiftSyntaxMacros
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[251/263] Compiling SwiftSyntaxMacros PreambleMacro.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[252/263] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[253/264] Wrapping AST for SwiftSyntaxMacros for debugging
[255/273] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[256/274] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[257/274] Emitting module SwiftSyntaxMacroExpansion
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[258/274] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[259/274] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[260/274] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[261/274] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[262/274] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[263/274] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[264/274] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[265/275] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[267/287] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[268/288] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[269/288] Compiling SwiftCompilerPluginMessageHandling Macros.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[270/288] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[271/288] Emitting module SwiftCompilerPluginMessageHandling
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[272/288] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[273/288] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[274/288] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[275/288] Compiling SwiftCompilerPluginMessageHandling JSON.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[276/288] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[277/288] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[278/288] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[279/288] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[280/289] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[282/291] Emitting module SwiftCompilerPlugin
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[283/291] Compiling SwiftCompilerPlugin CompilerPlugin.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[284/292] Wrapping AST for SwiftCompilerPlugin for debugging
[286/304] Compiling PapyrusPlugin PapyrusPluginError.swift
[287/305] Compiling PapyrusPlugin EndpointAttribute.swift
[288/305] Compiling PapyrusPlugin EndpointParameter.swift
[289/305] Compiling PapyrusPlugin Plugin.swift
[290/305] Compiling PapyrusPlugin MockMacro.swift
[291/305] Compiling PapyrusPlugin RoutesMacro.swift
[292/305] Compiling PapyrusPlugin API.swift
[293/305] Compiling PapyrusPlugin Declaration.swift
[294/305] Compiling PapyrusPlugin APIMacro.swift
[295/305] Compiling PapyrusPlugin DecoratorMacro.swift
[296/305] Emitting module PapyrusPlugin
[297/305] Compiling PapyrusPlugin String+Utilities.swift
[298/305] Compiling PapyrusPlugin SwiftSyntax+Utilities.swift
[299/306] Wrapping AST for PapyrusPlugin for debugging
[300/306] Write Objects.LinkFileList
[301/306] Linking PapyrusPlugin-tool
[303/354] Compiling Papyrus RouterRequest.swift
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
[304/354] Compiling Papyrus RouterResponse.swift
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
[305/354] Compiling Papyrus URLEncodedForm.swift
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
[306/357] Compiling Papyrus RequestBuilder.swift
[307/357] Compiling Papyrus PapyrusRouter.swift
[308/357] Compiling Papyrus RequestParser.swift
[309/357] Compiling Papyrus Coders.swift
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
[310/357] Compiling Papyrus String+Multipart.swift
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
[311/357] Compiling Papyrus URLSession+Papyrus.swift
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
[312/357] Compiling Papyrus HTTPBodyDecoder.swift
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
[313/357] Compiling Papyrus Part.swift
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
[314/357] Compiling Papyrus PapyrusError.swift
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
[315/357] Compiling Papyrus PapyrusMacros.swift
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
[316/357] Compiling Papyrus HTTPBodyEncoder.swift
[317/357] Compiling Papyrus HTTPService.swift
[318/357] Compiling Papyrus CurlInterceptor.swift
[319/357] Compiling Papyrus KeyMappable.swift
[320/357] Compiling Papyrus PapyrusRequest.swift
[321/357] Compiling Papyrus PapyrusResponse.swift
[322/357] Compiling Papyrus Provider.swift
[323/357] Emitting module Papyrus
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
[324/357] Compiling Papyrus KeyMapping.swift
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
[325/357] Compiling Papyrus MultipartDecoder.swift
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
[326/357] Compiling Papyrus MultipartEncoder.swift
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[327/357] Emitting module Papyrus
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
[328/360] Compiling Papyrus URLEncodedFormDecoder.swift
[329/360] Compiling Papyrus URLEncodedFormEncoder.swift
[330/360] Compiling Papyrus URLEncodedFormNode.swift
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:178:41: warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
176 | }
177 |
178 | return GenericCodingKey(toMapper(last.stringValue))
| |- warning: capture of 'toMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
179 | }
180 | }
/host/spi-builder-workspace/Papyrus/Sources/KeyMapping.swift:195:41: warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
193 | }
194 |
195 | return GenericCodingKey(fromMapper(last.stringValue))
| |- warning: capture of 'fromMapper' with non-sendable type '(String) -> String' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
196 | }
197 | }
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Papyrus/Sources/URLEncoded/URLEncodedForm.swift:51:16: warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
49 | @available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *)
50 | /// ISO8601 data formatter used throughout URL encoded form code
51 | static var iso8601Formatter: ISO8601DateFormatter = {
| |- warning: static property 'iso8601Formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'iso8601Formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'iso8601Formatter' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
52 | let formatter = ISO8601DateFormatter()
53 | formatter.formatOptions = .withInternetDateTime
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:5:16: warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
3 | // MARK: HTTP Body
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
| |- warning: static property 'defaultHTTPBodyEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
7 |
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:6:16: warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 |
5 | static var defaultHTTPBodyEncoder: HTTPBodyEncoder = .json()
6 | static var defaultHTTPBodyDecoder: HTTPBodyDecoder = .json()
| |- warning: static property 'defaultHTTPBodyDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultHTTPBodyDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultHTTPBodyDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | // MARK: Query
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:10:16: warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
8 | // MARK: Query
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
| |- warning: static property 'defaultQueryEncoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryEncoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryEncoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
12 | }
/host/spi-builder-workspace/Papyrus/Sources/Coders.swift:11:16: warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
9 |
10 | static var defaultQueryEncoder = URLEncodedFormEncoder()
11 | static var defaultQueryDecoder = URLEncodedFormDecoder()
| |- warning: static property 'defaultQueryDecoder' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'defaultQueryDecoder' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'defaultQueryDecoder' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 | }
13 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:6:16: warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
4 | public let message: String
5 | /// Error related request.
6 | public let request: PapyrusRequest?
| `- warning: stored property 'request' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusRequest)?'; this is an error in the Swift 6 language mode
7 | /// Error related response.
8 | public let response: PapyrusResponse?
/host/spi-builder-workspace/Papyrus/Sources/PapyrusRequest.swift:3:17: note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusRequest {
| `- note: protocol 'PapyrusRequest' does not conform to the 'Sendable' protocol
4 | var url: URL? { get set }
5 | var method: String { get set }
/host/spi-builder-workspace/Papyrus/Sources/PapyrusError.swift:8:16: warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
6 | public let request: PapyrusRequest?
7 | /// Error related response.
8 | public let response: PapyrusResponse?
| `- warning: stored property 'response' of 'Sendable'-conforming struct 'PapyrusError' has non-sendable type '(any PapyrusResponse)?'; this is an error in the Swift 6 language mode
9 |
10 | /// Create an error with the specified message.
/host/spi-builder-workspace/Papyrus/Sources/PapyrusResponse.swift:3:17: note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol PapyrusResponse {
| `- note: protocol 'PapyrusResponse' does not conform to the 'Sendable' protocol
4 | var request: PapyrusRequest? { get }
5 | var body: Data? { get }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:062e4aaff76454b333ce7957a8e87c3beb342f1dedb64399abb81cdea021b526
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/33] Compiling SwiftSyntax509 Empty.swift
[3/34] Emitting module SwiftSyntax510
[4/34] Compiling SwiftSyntax510 Empty.swift
[5/34] Compiling SwiftSyntax600 Empty.swift
[6/35] Emitting module SwiftSyntax509
[7/36] Compiling SwiftSyntax601 Empty.swift
[8/36] Emitting module SwiftSyntax601
[9/37] Emitting module SwiftSyntax602
[10/37] Compiling SwiftSyntax602 Empty.swift
[13/38] Emitting module SwiftSyntax600
[17/97] Compiling SwiftSyntax AbsolutePosition.swift
[18/97] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[19/97] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[20/97] Compiling SwiftSyntax Assert.swift
[21/97] Compiling SwiftSyntax BumpPtrAllocator.swift
[22/97] Compiling SwiftSyntax CommonAncestor.swift
[23/97] Compiling SwiftSyntax Convenience.swift
[24/97] Compiling SwiftSyntax CustomTraits.swift
[25/97] Compiling SwiftSyntax EditorPlaceholder.swift
[26/105] Emitting module SwiftSyntax
[27/105] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[28/105] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[29/105] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[30/105] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[31/105] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[32/105] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[33/105] Compiling SwiftSyntax RawSyntaxValidation.swift
[34/105] Compiling SwiftSyntax SyntaxNodesAB.swift
[35/105] Compiling SwiftSyntax SyntaxNodesC.swift
[36/105] Compiling SwiftSyntax SyntaxNodesD.swift
[37/105] Compiling SwiftSyntax SyntaxNodesEF.swift
[38/105] Compiling SwiftSyntax SyntaxNodesGHI.swift
[39/105] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[40/105] Compiling SwiftSyntax SyntaxNodesOP.swift
[41/105] Compiling SwiftSyntax SyntaxNodesQRS.swift
[42/105] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[43/105] Compiling SwiftSyntax SyntaxRewriter.swift
[44/105] Compiling SwiftSyntax SyntaxTraits.swift
[45/105] Compiling SwiftSyntax SyntaxVisitor.swift
[46/105] Compiling SwiftSyntax TokenKind.swift
[47/105] Compiling SwiftSyntax Tokens.swift
[48/105] Compiling SwiftSyntax TriviaPieces.swift
[49/105] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[50/105] Compiling SwiftSyntax RawSyntaxNodesC.swift
[51/105] Compiling SwiftSyntax RawSyntaxNodesD.swift
[52/105] Compiling SwiftSyntax SourceLength.swift
[53/105] Compiling SwiftSyntax SourceLocation.swift
[54/105] Compiling SwiftSyntax SourcePresence.swift
[55/105] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[56/105] Compiling SwiftSyntax Syntax.swift
[57/105] Compiling SwiftSyntax SyntaxChildren.swift
[58/105] Compiling SwiftSyntax SyntaxCollection.swift
[59/105] Compiling SwiftSyntax SyntaxHashable.swift
[60/105] Compiling SwiftSyntax SyntaxIdentifier.swift
[61/105] Compiling SwiftSyntax SyntaxNodeStructure.swift
[62/105] Compiling SwiftSyntax SyntaxProtocol.swift
[63/105] Compiling SwiftSyntax SyntaxText.swift
[64/105] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[65/105] Compiling SwiftSyntax TokenDiagnostic.swift
[66/105] Compiling SwiftSyntax TokenSequence.swift
[67/105] Compiling SwiftSyntax TokenSyntax.swift
[68/105] Compiling SwiftSyntax Trivia.swift
[69/105] Compiling SwiftSyntax Utils.swift
[70/105] Compiling SwiftSyntax Identifier.swift
[71/105] Compiling SwiftSyntax MemoryLayout.swift
[72/105] Compiling SwiftSyntax MissingNodeInitializers.swift
[73/105] Compiling SwiftSyntax RawSyntax.swift
[74/105] Compiling SwiftSyntax RawSyntaxArena.swift
[75/105] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[76/105] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[77/105] Compiling SwiftSyntax RawSyntaxTokenView.swift
[78/105] Compiling SwiftSyntax SourceEdit.swift
[79/105] Compiling SwiftSyntax ChildNameForKeyPath.swift
[80/105] Compiling SwiftSyntax Keyword.swift
[81/105] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[82/105] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[83/105] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[84/105] Compiling SwiftSyntax SyntaxBaseNodes.swift
[85/105] Compiling SwiftSyntax SyntaxCollections.swift
[86/105] Compiling SwiftSyntax SyntaxEnum.swift
[87/105] Compiling SwiftSyntax SyntaxKind.swift
[89/121] Compiling SwiftDiagnostics Message.swift
[90/165] Emitting module SwiftDiagnostics
[91/165] Compiling SwiftParser Attributes.swift
[92/165] Compiling SwiftParser Availability.swift
[93/165] Compiling SwiftDiagnostics Note.swift
[94/165] Compiling SwiftBasicFormat Syntax+Extensions.swift
[95/165] Compiling SwiftBasicFormat InferIndentation.swift
[96/165] Emitting module SwiftBasicFormat
[97/165] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[98/165] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[99/165] Compiling SwiftBasicFormat Indenter.swift
[100/165] Compiling SwiftDiagnostics FixIt.swift
[101/165] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[102/165] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[103/165] Compiling SwiftParser CharacterInfo.swift
[104/165] Compiling SwiftParser CollectionNodes+Parsable.swift
[105/165] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[107/165] Compiling SwiftBasicFormat BasicFormat.swift
[109/165] Compiling SwiftParser TokenSpec.swift
[110/165] Compiling SwiftParser TokenSpecSet.swift
[111/165] Compiling SwiftParser TopLevel.swift
[112/165] Compiling SwiftParser TriviaParser.swift
[113/165] Compiling SwiftParser Types.swift
[114/165] Compiling SwiftParser StringLiterals.swift
[115/165] Compiling SwiftParser SwiftParserCompatibility.swift
[116/165] Compiling SwiftParser SwiftVersion.swift
[117/165] Compiling SwiftParser SyntaxUtils.swift
[118/165] Compiling SwiftParser TokenConsumer.swift
[119/165] Compiling SwiftParser TokenPrecedence.swift
[120/170] Emitting module SwiftParser
[121/170] Compiling SwiftParser Parser.swift
[122/170] Compiling SwiftParser Patterns.swift
[123/170] Compiling SwiftParser Recovery.swift
[124/170] Compiling SwiftParser Specifiers.swift
[125/170] Compiling SwiftParser Statements.swift
[126/170] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[127/170] Compiling SwiftParser LoopProgressCondition.swift
[128/170] Compiling SwiftParser Modifiers.swift
[129/170] Compiling SwiftParser Names.swift
[130/170] Compiling SwiftParser Nominals.swift
[131/170] Compiling SwiftParser Parameters.swift
[132/170] Compiling SwiftParser ParseSourceFile.swift
[133/170] Compiling SwiftParser Lexeme.swift
[134/170] Compiling SwiftParser LexemeSequence.swift
[135/170] Compiling SwiftParser Lexer.swift
[136/170] Compiling SwiftParser RegexLiteralLexer.swift
[137/170] Compiling SwiftParser UnicodeScalarExtensions.swift
[138/170] Compiling SwiftParser Lookahead.swift
[143/170] Compiling SwiftParser CompilerFiles.swift
[144/170] Compiling SwiftParser Declarations.swift
[145/170] Compiling SwiftParser Directives.swift
[146/170] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[147/170] Compiling SwiftParser Expressions.swift
[148/170] Compiling SwiftParser IncrementalParseTransition.swift
[149/170] Compiling SwiftParser IsValidIdentifier.swift
[150/170] Compiling SwiftParser Cursor.swift
[151/170] Compiling SwiftParser ExperimentalFeatures.swift
[152/170] Compiling SwiftParser IsLexerClassified.swift
[153/170] Compiling SwiftParser LayoutNodes+Parsable.swift
[154/170] Compiling SwiftParser Parser+TokenSpecSet.swift
[155/170] Compiling SwiftParser TokenSpecStaticMembers.swift
[157/193] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[158/194] Compiling SwiftOperators PrecedenceGroup.swift
[159/195] Compiling SwiftOperators Operator.swift
[160/195] Compiling SwiftOperators OperatorError+Diagnostics.swift
[161/195] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[162/195] Compiling SwiftOperators OperatorTable.swift
[163/195] Compiling SwiftOperators PrecedenceGraph.swift
[164/195] Compiling SwiftOperators OperatorTable+Semantics.swift
[165/195] Compiling SwiftOperators SyntaxSynthesis.swift
[166/195] Emitting module SwiftOperators
[167/195] Compiling SwiftOperators OperatorError.swift
[168/195] Compiling SwiftOperators OperatorTable+Defaults.swift
[169/195] Compiling SwiftOperators OperatorTable+Folding.swift
[171/196] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[172/196] Compiling SwiftParserDiagnostics Utils.swift
[173/196] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[174/196] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[175/196] Compiling SwiftParserDiagnostics PresenceUtils.swift
[178/196] Emitting module SwiftParserDiagnostics
[179/195] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[180/195] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[184/210] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[185/210] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[186/211] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[187/211] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[188/211] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[189/211] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[190/211] Compiling SwiftSyntaxBuilder Indenter.swift
[191/211] Compiling SwiftSyntaxBuilder ListBuilder.swift
[192/211] Emitting module SwiftSyntaxBuilder
[193/211] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[194/211] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[195/211] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[196/211] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[197/211] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[198/211] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[199/211] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[201/228] Emitting module SwiftSyntaxMacros
[202/230] Compiling SwiftSyntaxMacros MemberMacro.swift
[203/230] Compiling SwiftSyntaxMacros PeerMacro.swift
[204/230] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[205/230] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[206/230] Compiling SwiftSyntaxMacros AccessorMacro.swift
[207/230] Compiling SwiftSyntaxMacros AttachedMacro.swift
[208/230] Compiling SwiftSyntaxMacros BodyMacro.swift
[209/230] Compiling SwiftSyntaxMacros Macro.swift
[210/230] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[211/230] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[212/230] Compiling SwiftSyntaxMacros Macro+Format.swift
[213/230] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[214/230] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[215/230] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[216/230] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[217/230] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[218/230] Compiling SwiftSyntaxMacros PreambleMacro.swift
[219/230] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[221/239] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[222/240] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[223/240] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[224/240] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[225/240] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[226/240] Emitting module SwiftSyntaxMacroExpansion
[227/240] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[228/240] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[229/240] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[230/240] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[232/252] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[233/252] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[234/252] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[235/252] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[236/253] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[237/253] Emitting module SwiftCompilerPluginMessageHandling
[238/253] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[239/253] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[240/253] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[241/253] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[242/253] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[243/253] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[244/253] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[246/255] Emitting module SwiftCompilerPlugin
[247/255] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[249/267] Emitting module PapyrusPlugin
[250/268] Compiling PapyrusPlugin String+Utilities.swift
[251/268] Compiling PapyrusPlugin SwiftSyntax+Utilities.swift
[252/268] Compiling PapyrusPlugin API.swift
[253/268] Compiling PapyrusPlugin Declaration.swift
[254/268] Compiling PapyrusPlugin APIMacro.swift
[255/268] Compiling PapyrusPlugin DecoratorMacro.swift
[256/268] Compiling PapyrusPlugin Plugin.swift
[257/268] Compiling PapyrusPlugin PapyrusPluginError.swift
[258/268] Compiling PapyrusPlugin EndpointAttribute.swift
[259/268] Compiling PapyrusPlugin EndpointParameter.swift
[260/268] Compiling PapyrusPlugin MockMacro.swift
[261/268] Compiling PapyrusPlugin RoutesMacro.swift
[262/268] Write Objects.LinkFileList
[263/268] Linking PapyrusPlugin-tool
[265/316] Compiling Papyrus Coders.swift
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
[266/316] Compiling Papyrus String+Multipart.swift
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
[267/316] Compiling Papyrus URLSession+Papyrus.swift
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
[268/316] Compiling Papyrus HTTPBodyDecoder.swift
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:11:43: error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
11 | self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
| `- error: argument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'
12 | }
13 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:41: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:62:63: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
60 | let body: Data?
61 | let headers: [String: String]?
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:69:37: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
67 | self.error = error
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
70 | .allHeaderFields
71 | .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:70:14: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
68 | self.body = body
69 | let headerPairs = (response as? HTTPURLResponse)?
70 | .allHeaderFields
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
71 | .compactMap { key, value -> (String, String)? in
72 | guard let key = key as? String, let value = value as? String else {
[269/319] Compiling Papyrus HTTPBodyEncoder.swift
[270/319] Compiling Papyrus HTTPService.swift
[271/319] Compiling Papyrus CurlInterceptor.swift
[272/319] Compiling Papyrus KeyMappable.swift
[273/319] Compiling Papyrus RouterRequest.swift
[274/319] Compiling Papyrus RouterResponse.swift
[275/319] Compiling Papyrus URLEncodedForm.swift
[276/322] Compiling Papyrus PapyrusRequest.swift
[277/322] Compiling Papyrus PapyrusResponse.swift
[278/322] Compiling Papyrus Provider.swift
[279/322] Compiling Papyrus Part.swift
[280/322] Compiling Papyrus PapyrusError.swift
[281/322] Compiling Papyrus PapyrusMacros.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[282/322] Emitting module Papyrus
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:41: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:8:55: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
6 | extension Provider {
7 | public convenience init(baseURL: String,
8 | urlSession: URLSession = .shared,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
9 | modifiers: [RequestModifier] = [],
10 | interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:17:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
15 | // MARK: `HTTPService` Conformance
16 |
17 | extension URLSession: HTTPService {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
18 | public func build(method: String, url: URL, headers: [String: String], body: Data?) -> PapyrusRequest {
19 | var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:50:28: error: cannot find type 'URLRequest' in scope
48 |
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
| `- error: cannot find type 'URLRequest' in scope
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
52 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:51:29: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | extension PapyrusResponse {
50 | public var urlRequest: URLRequest { (self as! _Response).urlRequest }
51 | public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:55:21: error: cannot find type 'URLRequest' in scope
53 |
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
56 | let urlResponse: URLResponse?
57 |
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:56:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
54 | private struct _Response: PapyrusResponse {
55 | let urlRequest: URLRequest
56 | let urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 |
58 | var request: PapyrusRequest? { urlRequest }
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:19: error: cannot find type 'URLRequest' in scope
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: cannot find type 'URLRequest' in scope
65 | self.urlRequest = request
66 | self.urlResponse = response
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:64:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
62 | var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
63 |
64 | init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
65 | self.urlRequest = request
66 | self.urlResponse = response
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/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:89:28: error: cannot find type 'URLRequest' in scope
87 |
88 | extension PapyrusRequest {
89 | public var urlRequest: URLRequest {
| `- error: cannot find type 'URLRequest' in scope
90 | (self as! URLRequest)
91 | }
/host/spi-builder-workspace/Papyrus/Sources/Extensions/URLSession+Papyrus.swift:94:11: error: cannot find type 'URLRequest' in scope
92 | }
93 |
94 | extension URLRequest: PapyrusRequest {
| `- error: cannot find type 'URLRequest' in scope
95 | public var body: Data? {
96 | get { httpBody }
[288/322] Compiling Papyrus KeyMapping.swift
[289/322] Compiling Papyrus MultipartDecoder.swift
[290/322] Compiling Papyrus MultipartEncoder.swift
[298/322] Compiling Papyrus RequestBuilder.swift
[299/322] Compiling Papyrus PapyrusRouter.swift
[300/322] Compiling Papyrus RequestParser.swift
[313/322] Compiling Papyrus URLEncodedFormDecoder.swift
[314/322] Compiling Papyrus URLEncodedFormEncoder.swift
[315/322] Compiling Papyrus URLEncodedFormNode.swift
BUILD FAILURE 6.1 wasm