Build Information
Failed to build Netrofit, reference 0.1.1 (cd874e), with Swift 6.1 for Android on 8 Mar 2026 14:06:46 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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/winddpan/Netrofit.git
Reference: 0.1.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/winddpan/Netrofit
* tag 0.1.1 -> FETCH_HEAD
HEAD is now at cd874ef Add Swift 6 concurrency support with Sendable conformance
Cloned https://github.com/winddpan/Netrofit.git
Revision (git rev-parse @):
cd874ef94615829fe489ca697077f7d562052db8
SUCCESS checkout https://github.com/winddpan/Netrofit.git at 0.1.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/winddpan/Netrofit.git
https://github.com/winddpan/Netrofit.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "600.0.1",
"upper_bound" : "603.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax"
}
],
"manifest_display_name" : "Netrofit",
"name" : "Netrofit",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
},
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "6.0"
},
{
"name" : "maccatalyst",
"version" : "13.0"
}
],
"products" : [
{
"name" : "Netrofit",
"targets" : [
"Netrofit"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "NetrofitClient",
"targets" : [
"NetrofitClient"
],
"type" : {
"executable" : null
}
},
{
"name" : "NetrofitMacros",
"targets" : [
"NetrofitMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "NetrofitTests",
"module_type" : "SwiftTarget",
"name" : "NetrofitTests",
"path" : "Sources/NetrofitTests",
"sources" : [
"AnyCodable.swift",
"HTTPBinTests.swift",
"LLMSSETests.swift",
"TestNetrofitInterceptors.swift"
],
"target_dependencies" : [
"Netrofit"
],
"type" : "test"
},
{
"c99name" : "NetrofitMacros",
"module_type" : "SwiftTarget",
"name" : "NetrofitMacros",
"path" : "Sources/NetrofitMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"Netrofit",
"NetrofitClient",
"NetrofitMacros"
],
"sources" : [
"APIMacro.swift",
"EmptyMacro.swift",
"MethodMacro.swift",
"Plugin.swift",
"Utils/AttributeDecl+.swift",
"Utils/FunctionDecl+.swift",
"Utils/PayloadFormat.swift",
"Utils/String+.swift"
],
"type" : "macro"
},
{
"c99name" : "NetrofitClient",
"module_type" : "SwiftTarget",
"name" : "NetrofitClient",
"path" : "Sources/NetrofitClient",
"product_memberships" : [
"NetrofitClient"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"Netrofit"
],
"type" : "executable"
},
{
"c99name" : "Netrofit",
"module_type" : "SwiftTarget",
"name" : "Netrofit",
"path" : "Sources/Netrofit",
"product_memberships" : [
"Netrofit",
"NetrofitClient"
],
"sources" : [
"AttributeWrappers.swift",
"HTTPBodyDecoder/DynamicContentTypeDecoder.swift",
"HTTPBodyDecoder/EventStreamingDecoder.swift",
"HTTPBodyDecoder/HTTPBodyDecoder.swift",
"HTTPBodyDecoder/JSONDecoder.swift",
"HTTPBodyDecoder/TextPlainDecoder.swift",
"HTTPBodyEncoder/HTTPBodyEncoder.swift",
"HTTPBodyEncoder/JSONEncoder.swift",
"HTTPBodyEncoder/MultipartEncoder.swift",
"HTTPBodyEncoder/TextPlainEncoder.swift",
"HTTPBodyEncoder/URLEncodedFormEncoder.swift",
"NetrofitMacros.swift",
"NetrofitPlugin.swift",
"NetrofitProvider.swift",
"NetrofitResponse.swift",
"NetrofitSessionProtocols.swift",
"RequestBuilder.swift",
"Utils/AnyEncodable.swift",
"Utils/String+URLPathPart.swift",
"_Netrofit/_NetrofitSession.swift",
"_Netrofit/_NetrofitTask.swift"
],
"target_dependencies" : [
"NetrofitMacros"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/swiftlang/swift-syntax
[1/74621] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax from cache (7.65s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 602.0.0 (11.74s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 602.0.0
Building for debugging...
[0/44] Write sources
[19/44] Compiling _SwiftSyntaxCShims PlatformMutex.c
[20/44] Write swift-version-24593BA9C3E375BF.txt
[22/54] Compiling SwiftSyntax509 Empty.swift
[23/54] Emitting module SwiftSyntax509
[24/55] Emitting module SwiftSyntax602
[25/55] Compiling SwiftSyntax602 Empty.swift
[27/56] Compiling SwiftSyntax601 Empty.swift
[28/56] Emitting module SwiftSyntax601
[30/57] Emitting module SwiftSyntax510
[31/57] Compiling SwiftSyntax510 Empty.swift
[32/58] Compiling SwiftSyntax600 Empty.swift
[33/58] Emitting module SwiftSyntax600
[33/59] Wrapping AST for SwiftSyntax509 for debugging
[37/59] Wrapping AST for SwiftSyntax602 for debugging
[38/59] Wrapping AST for SwiftSyntax601 for debugging
[39/59] Wrapping AST for SwiftSyntax510 for debugging
[40/59] Wrapping AST for SwiftSyntax600 for debugging
[42/122] Compiling SwiftSyntax AbsolutePosition.swift
[43/122] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[44/122] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[45/122] Compiling SwiftSyntax Assert.swift
[46/122] Compiling SwiftSyntax BumpPtrAllocator.swift
[47/122] Compiling SwiftSyntax CommonAncestor.swift
[48/122] Compiling SwiftSyntax Convenience.swift
[49/122] Compiling SwiftSyntax CustomTraits.swift
[50/122] Compiling SwiftSyntax EditorPlaceholder.swift
[51/130] Compiling SwiftSyntax Identifier.swift
[52/130] Compiling SwiftSyntax MemoryLayout.swift
[53/130] Compiling SwiftSyntax MissingNodeInitializers.swift
[54/130] Compiling SwiftSyntax RawSyntax.swift
[55/130] Compiling SwiftSyntax RawSyntaxArena.swift
[56/130] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[57/130] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[58/130] Compiling SwiftSyntax RawSyntaxTokenView.swift
[59/130] Compiling SwiftSyntax SourceEdit.swift
[60/130] Compiling SwiftSyntax SourceLength.swift
[61/130] Compiling SwiftSyntax SourceLocation.swift
[62/130] Compiling SwiftSyntax SourcePresence.swift
[63/130] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[64/130] Compiling SwiftSyntax Syntax.swift
[65/130] Compiling SwiftSyntax SyntaxChildren.swift
[66/130] Compiling SwiftSyntax SyntaxCollection.swift
[67/130] Compiling SwiftSyntax SyntaxHashable.swift
[68/130] Compiling SwiftSyntax SyntaxIdentifier.swift
[69/130] Compiling SwiftSyntax SyntaxNodeStructure.swift
[70/130] Compiling SwiftSyntax SyntaxProtocol.swift
[71/130] Compiling SwiftSyntax SyntaxText.swift
[72/130] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[73/130] Compiling SwiftSyntax TokenDiagnostic.swift
[74/130] Compiling SwiftSyntax TokenSequence.swift
[75/130] Compiling SwiftSyntax TokenSyntax.swift
[76/130] Compiling SwiftSyntax Trivia.swift
[77/130] Compiling SwiftSyntax Utils.swift
[78/130] Emitting module SwiftSyntax
[79/130] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[80/130] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[81/130] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[82/130] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[83/130] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[84/130] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[85/130] Compiling SwiftSyntax RawSyntaxValidation.swift
[86/130] Compiling SwiftSyntax SyntaxNodesAB.swift
[87/130] Compiling SwiftSyntax SyntaxRewriter.swift
[88/130] Compiling SwiftSyntax SyntaxTraits.swift
[89/130] Compiling SwiftSyntax SyntaxVisitor.swift
[90/130] Compiling SwiftSyntax TokenKind.swift
[91/130] Compiling SwiftSyntax Tokens.swift
[92/130] Compiling SwiftSyntax TriviaPieces.swift
[93/130] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[94/130] Compiling SwiftSyntax RawSyntaxNodesC.swift
[95/130] Compiling SwiftSyntax RawSyntaxNodesD.swift
[96/130] Compiling SwiftSyntax ChildNameForKeyPath.swift
[97/130] Compiling SwiftSyntax Keyword.swift
[98/130] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[99/130] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[100/130] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[101/130] Compiling SwiftSyntax SyntaxBaseNodes.swift
[102/130] Compiling SwiftSyntax SyntaxCollections.swift
[103/130] Compiling SwiftSyntax SyntaxEnum.swift
[104/130] Compiling SwiftSyntax SyntaxKind.swift
[105/130] Compiling SwiftSyntax SyntaxNodesC.swift
[106/130] Compiling SwiftSyntax SyntaxNodesD.swift
[107/130] Compiling SwiftSyntax SyntaxNodesEF.swift
[108/130] Compiling SwiftSyntax SyntaxNodesGHI.swift
[109/130] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[110/130] Compiling SwiftSyntax SyntaxNodesOP.swift
[111/130] Compiling SwiftSyntax SyntaxNodesQRS.swift
[112/130] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[113/131] Wrapping AST for SwiftSyntax for debugging
[115/190] Compiling SwiftDiagnostics Message.swift
[116/191] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[117/191] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[118/191] Compiling SwiftBasicFormat Syntax+Extensions.swift
[119/191] Compiling SwiftParser CharacterInfo.swift
[120/191] Compiling SwiftParser CollectionNodes+Parsable.swift
[121/191] Compiling SwiftBasicFormat InferIndentation.swift
[122/191] Emitting module SwiftDiagnostics
[123/191] Compiling SwiftParser Attributes.swift
[124/191] Compiling SwiftParser Availability.swift
[125/191] Compiling SwiftBasicFormat Indenter.swift
[126/191] Compiling SwiftDiagnostics Note.swift
[127/191] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[128/191] Compiling SwiftDiagnostics FixIt.swift
[129/191] Emitting module SwiftBasicFormat
[130/191] Compiling SwiftBasicFormat BasicFormat.swift
[131/192] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[132/192] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[134/193] Wrapping AST for SwiftDiagnostics for debugging
[135/193] Wrapping AST for SwiftBasicFormat for debugging
[137/193] Compiling SwiftParser TokenSpec.swift
[138/193] Compiling SwiftParser TokenSpecSet.swift
[139/193] Compiling SwiftParser TopLevel.swift
[140/193] Compiling SwiftParser TriviaParser.swift
[141/193] Compiling SwiftParser Types.swift
[142/193] Compiling SwiftParser StringLiterals.swift
[143/193] Compiling SwiftParser SwiftParserCompatibility.swift
[144/193] Compiling SwiftParser SwiftVersion.swift
[145/193] Compiling SwiftParser SyntaxUtils.swift
[146/193] Compiling SwiftParser TokenConsumer.swift
[147/193] Compiling SwiftParser TokenPrecedence.swift
[148/198] Emitting module SwiftParser
[149/198] Compiling SwiftParser LoopProgressCondition.swift
[150/198] Compiling SwiftParser Modifiers.swift
[151/198] Compiling SwiftParser Names.swift
[152/198] Compiling SwiftParser Nominals.swift
[153/198] Compiling SwiftParser Parameters.swift
[154/198] Compiling SwiftParser ParseSourceFile.swift
[155/198] Compiling SwiftParser Lexeme.swift
[156/198] Compiling SwiftParser LexemeSequence.swift
[157/198] Compiling SwiftParser Lexer.swift
[158/198] Compiling SwiftParser RegexLiteralLexer.swift
[159/198] Compiling SwiftParser UnicodeScalarExtensions.swift
[160/198] Compiling SwiftParser Lookahead.swift
[161/198] Compiling SwiftParser Parser.swift
[162/198] Compiling SwiftParser Patterns.swift
[163/198] Compiling SwiftParser Recovery.swift
[164/198] Compiling SwiftParser Specifiers.swift
[165/198] Compiling SwiftParser Statements.swift
[166/198] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[167/198] Compiling SwiftParser Directives.swift
[168/198] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[169/198] Compiling SwiftParser Expressions.swift
[170/198] Compiling SwiftParser IncrementalParseTransition.swift
[171/198] Compiling SwiftParser IsValidIdentifier.swift
[172/198] Compiling SwiftParser Cursor.swift
[177/198] Compiling SwiftParser CompilerFiles.swift
[178/198] Compiling SwiftParser Declarations.swift
[179/198] Compiling SwiftParser ExperimentalFeatures.swift
[180/198] Compiling SwiftParser IsLexerClassified.swift
[181/198] Compiling SwiftParser LayoutNodes+Parsable.swift
[182/198] Compiling SwiftParser Parser+TokenSpecSet.swift
[183/198] Compiling SwiftParser TokenSpecStaticMembers.swift
[184/211] Wrapping AST for SwiftParser for debugging
[186/222] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[187/223] Compiling SwiftOperators PrecedenceGroup.swift
[188/224] Emitting module SwiftOperators
[189/224] Compiling SwiftOperators OperatorTable.swift
[190/224] Compiling SwiftOperators PrecedenceGraph.swift
[191/224] Compiling SwiftOperators OperatorTable+Semantics.swift
[192/224] Compiling SwiftOperators OperatorError.swift
[193/224] Compiling SwiftOperators OperatorTable+Defaults.swift
[194/224] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[195/224] Compiling SwiftOperators SyntaxSynthesis.swift
[196/224] Compiling SwiftOperators OperatorTable+Folding.swift
[197/224] Compiling SwiftOperators Operator.swift
[198/224] Compiling SwiftOperators OperatorError+Diagnostics.swift
[199/225] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[200/225] Compiling SwiftParserDiagnostics Utils.swift
[201/225] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[202/225] Wrapping AST for SwiftOperators for debugging
[204/225] Emitting module SwiftParserDiagnostics
[205/225] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[206/225] Compiling SwiftParserDiagnostics PresenceUtils.swift
[211/225] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[212/225] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[213/226] Wrapping AST for SwiftParserDiagnostics for debugging
[215/241] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[216/241] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[217/242] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[218/242] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[219/242] Compiling SwiftSyntaxBuilder Indenter.swift
[220/242] Compiling SwiftSyntaxBuilder ListBuilder.swift
[221/242] Emitting module SwiftSyntaxBuilder
[222/242] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[223/242] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[224/242] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[225/242] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[226/242] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[227/242] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[228/242] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[229/242] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[230/242] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[231/243] Wrapping AST for SwiftSyntaxBuilder for debugging
[233/260] Emitting module SwiftSyntaxMacros
[234/262] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[235/262] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[236/262] Compiling SwiftSyntaxMacros MemberMacro.swift
[237/262] Compiling SwiftSyntaxMacros PeerMacro.swift
[238/262] Compiling SwiftSyntaxMacros AccessorMacro.swift
[239/262] Compiling SwiftSyntaxMacros AttachedMacro.swift
[240/262] Compiling SwiftSyntaxMacros BodyMacro.swift
[241/262] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[242/262] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[243/262] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[244/262] Compiling SwiftSyntaxMacros Macro+Format.swift
[245/262] Compiling SwiftSyntaxMacros Macro.swift
[246/262] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[247/262] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[248/262] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[249/262] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[250/262] Compiling SwiftSyntaxMacros PreambleMacro.swift
[251/262] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[252/263] Wrapping AST for SwiftSyntaxMacros for debugging
[254/272] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[255/273] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[256/273] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[257/273] Emitting module SwiftSyntaxMacroExpansion
[258/273] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[259/273] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[260/273] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[261/273] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[262/273] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[263/273] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[264/274] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[266/286] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[267/287] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[268/287] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[269/287] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[270/287] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[271/287] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[272/287] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[273/287] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[274/287] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[275/287] Emitting module SwiftCompilerPluginMessageHandling
[276/287] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[277/287] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[278/287] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[279/288] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[281/290] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[282/290] Emitting module SwiftCompilerPlugin
[283/291] Wrapping AST for SwiftCompilerPlugin for debugging
[285/299] Compiling NetrofitMacros FunctionDecl+.swift
[286/299] Compiling NetrofitMacros PayloadFormat.swift
[287/300] Compiling NetrofitMacros EmptyMacro.swift
[288/300] Emitting module NetrofitMacros
/host/spi-builder-workspace/Sources/NetrofitMacros/APIMacro.swift:5:8: warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
3 | import SwiftSyntaxMacros
4 |
5 | struct APIMacro: MemberMacro {
| `- warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
6 | static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
7 | var attributes: AttributeListSyntax?
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntaxMacros/MacroProtocols/MemberMacro.swift:89:22: note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
53 | /// - Returns: the set of member declarations introduced by this macro, which
54 | /// are nested inside the `attachedTo` declaration.
55 | static func expansion(
| `- note: requirement 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
56 | of node: AttributeSyntax,
57 | providingMembersOf declaration: some DeclGroupSyntax,
:
87 | message: "`MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter"
88 | )
89 | public static func expansion(
| `- note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
90 | of node: AttributeSyntax,
91 | providingMembersOf declaration: some DeclGroupSyntax,
[289/300] Compiling NetrofitMacros APIMacro.swift
/host/spi-builder-workspace/Sources/NetrofitMacros/APIMacro.swift:5:8: warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
3 | import SwiftSyntaxMacros
4 |
5 | struct APIMacro: MemberMacro {
| `- warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
6 | static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
7 | var attributes: AttributeListSyntax?
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntaxMacros/MacroProtocols/MemberMacro.swift:89:22: note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
53 | /// - Returns: the set of member declarations introduced by this macro, which
54 | /// are nested inside the `attachedTo` declaration.
55 | static func expansion(
| `- note: requirement 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
56 | of node: AttributeSyntax,
57 | providingMembersOf declaration: some DeclGroupSyntax,
:
87 | message: "`MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter"
88 | )
89 | public static func expansion(
| `- note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
90 | of node: AttributeSyntax,
91 | providingMembersOf declaration: some DeclGroupSyntax,
[290/300] Compiling NetrofitMacros Plugin.swift
[291/300] Compiling NetrofitMacros AttributeDecl+.swift
[292/300] Compiling NetrofitMacros String+.swift
[293/300] Compiling NetrofitMacros MethodMacro.swift
[294/301] Wrapping AST for NetrofitMacros for debugging
[295/301] Write Objects.LinkFileList
[296/301] Linking NetrofitMacros-tool
[298/321] Compiling Netrofit NetrofitSessionProtocols.swift
[299/321] Compiling Netrofit RequestBuilder.swift
[300/321] Compiling Netrofit TextPlainEncoder.swift
[301/321] Compiling Netrofit URLEncodedFormEncoder.swift
[302/321] Compiling Netrofit NetrofitMacros.swift
[303/321] Compiling Netrofit HTTPBodyEncoder.swift
[304/321] Compiling Netrofit JSONEncoder.swift
[305/321] Compiling Netrofit MultipartEncoder.swift
[306/321] Compiling Netrofit AnyEncodable.swift
[307/321] Compiling Netrofit String+URLPathPart.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[308/323] Emitting module Netrofit
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
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
[309/323] Compiling Netrofit HTTPBodyDecoder.swift
[310/323] Compiling Netrofit JSONDecoder.swift
[311/323] Compiling Netrofit TextPlainDecoder.swift
[312/323] Compiling Netrofit NetrofitPlugin.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[313/323] Compiling Netrofit NetrofitProvider.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[314/323] Compiling Netrofit NetrofitResponse.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[315/323] Compiling Netrofit AttributeWrappers.swift
[316/323] Compiling Netrofit DynamicContentTypeDecoder.swift
[317/323] Compiling Netrofit EventStreamingDecoder.swift
[318/323] Compiling Netrofit _NetrofitSession.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:94: error: 'nil' requires a contextual type
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:37:23: error: cannot find 'URLRequest' in scope
35 |
36 | func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
37 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
38 | request.httpMethod = method
39 | request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | func resume() {
51 | guard dataTask == nil else { return }
52 | let task = urlSession.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | task.resume()
54 | dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
80 | let decoder = builder.decoder
81 | let deocdeKeyPath = builder.responseKeyPath
82 | return AsyncStream<T> { continuation in
| `- error: type of expression is ambiguous without a type annotation
83 | let wrapper = StreamWrapper(
84 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 | let decoder = builder.decoder
112 | let deocdeKeyPath = builder.responseKeyPath
113 | return AsyncThrowingStream(T.self) { continuation in
| `- error: type of expression is ambiguous without a type annotation
114 | let wrapper = ThrowingStreamWrapper(
115 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 | guard let k = key as? String,
197 | let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 | response.body = responseData
207 | response.headers = headers
208 | response.statusCode = httpResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 | for plugin in plugins {
[319/323] Compiling Netrofit _NetrofitTask.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:94: error: 'nil' requires a contextual type
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:37:23: error: cannot find 'URLRequest' in scope
35 |
36 | func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
37 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
38 | request.httpMethod = method
39 | request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | func resume() {
51 | guard dataTask == nil else { return }
52 | let task = urlSession.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | task.resume()
54 | dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
80 | let decoder = builder.decoder
81 | let deocdeKeyPath = builder.responseKeyPath
82 | return AsyncStream<T> { continuation in
| `- error: type of expression is ambiguous without a type annotation
83 | let wrapper = StreamWrapper(
84 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 | let decoder = builder.decoder
112 | let deocdeKeyPath = builder.responseKeyPath
113 | return AsyncThrowingStream(T.self) { continuation in
| `- error: type of expression is ambiguous without a type annotation
114 | let wrapper = ThrowingStreamWrapper(
115 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 | guard let k = key as? String,
197 | let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 | response.body = responseData
207 | response.headers = headers
208 | response.statusCode = httpResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 | for plugin in plugins {
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:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/34] Compiling SwiftSyntax602 Empty.swift
[3/34] Emitting module SwiftSyntax509
[4/34] Compiling SwiftSyntax509 Empty.swift
[5/35] Emitting module SwiftSyntax600
[6/35] Compiling SwiftSyntax600 Empty.swift
[7/36] Emitting module SwiftSyntax510
[8/36] Compiling SwiftSyntax510 Empty.swift
[9/37] Emitting module SwiftSyntax602
[11/37] Emitting module SwiftSyntax601
[12/37] Compiling SwiftSyntax601 Empty.swift
[17/97] Compiling SwiftSyntax SyntaxNodeStructure.swift
[18/97] Compiling SwiftSyntax SyntaxProtocol.swift
[19/97] Compiling SwiftSyntax SyntaxText.swift
[20/97] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[21/97] Compiling SwiftSyntax TokenDiagnostic.swift
[22/97] Compiling SwiftSyntax TokenSequence.swift
[23/97] Compiling SwiftSyntax TokenSyntax.swift
[24/97] Compiling SwiftSyntax Trivia.swift
[25/97] Compiling SwiftSyntax Utils.swift
[26/105] Compiling SwiftSyntax Identifier.swift
[27/105] Compiling SwiftSyntax MemoryLayout.swift
[28/105] Compiling SwiftSyntax MissingNodeInitializers.swift
[29/105] Compiling SwiftSyntax RawSyntax.swift
[30/105] Compiling SwiftSyntax RawSyntaxArena.swift
[31/105] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[32/105] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[33/105] Compiling SwiftSyntax RawSyntaxTokenView.swift
[34/105] Compiling SwiftSyntax SourceEdit.swift
[35/105] Compiling SwiftSyntax AbsolutePosition.swift
[36/105] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[37/105] Compiling SwiftSyntax ArenaAllocatedBuffer.swift
[38/105] Compiling SwiftSyntax Assert.swift
[39/105] Compiling SwiftSyntax BumpPtrAllocator.swift
[40/105] Compiling SwiftSyntax CommonAncestor.swift
[41/105] Compiling SwiftSyntax Convenience.swift
[42/105] Compiling SwiftSyntax CustomTraits.swift
[43/105] Compiling SwiftSyntax EditorPlaceholder.swift
[44/105] Compiling SwiftSyntax SourceLength.swift
[45/105] Compiling SwiftSyntax SourceLocation.swift
[46/105] Compiling SwiftSyntax SourcePresence.swift
[47/105] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[48/105] Compiling SwiftSyntax Syntax.swift
[49/105] Compiling SwiftSyntax SyntaxChildren.swift
[50/105] Compiling SwiftSyntax SyntaxCollection.swift
[51/105] Compiling SwiftSyntax SyntaxHashable.swift
[52/105] Compiling SwiftSyntax SyntaxIdentifier.swift
[53/105] Emitting module SwiftSyntax
[54/105] Compiling SwiftSyntax SyntaxRewriter.swift
[55/105] Compiling SwiftSyntax SyntaxTraits.swift
[56/105] Compiling SwiftSyntax SyntaxVisitor.swift
[57/105] Compiling SwiftSyntax TokenKind.swift
[58/105] Compiling SwiftSyntax Tokens.swift
[59/105] Compiling SwiftSyntax TriviaPieces.swift
[60/105] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[61/105] Compiling SwiftSyntax RawSyntaxNodesC.swift
[62/105] Compiling SwiftSyntax RawSyntaxNodesD.swift
[63/105] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[64/105] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[65/105] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[66/105] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[67/105] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[68/105] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[69/105] Compiling SwiftSyntax RawSyntaxValidation.swift
[70/105] Compiling SwiftSyntax SyntaxNodesAB.swift
[71/105] Compiling SwiftSyntax ChildNameForKeyPath.swift
[72/105] Compiling SwiftSyntax Keyword.swift
[73/105] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[74/105] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[75/105] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[76/105] Compiling SwiftSyntax SyntaxBaseNodes.swift
[77/105] Compiling SwiftSyntax SyntaxCollections.swift
[78/105] Compiling SwiftSyntax SyntaxEnum.swift
[79/105] Compiling SwiftSyntax SyntaxKind.swift
[80/105] Compiling SwiftSyntax SyntaxNodesC.swift
[81/105] Compiling SwiftSyntax SyntaxNodesD.swift
[82/105] Compiling SwiftSyntax SyntaxNodesEF.swift
[83/105] Compiling SwiftSyntax SyntaxNodesGHI.swift
[84/105] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[85/105] Compiling SwiftSyntax SyntaxNodesOP.swift
[86/105] Compiling SwiftSyntax SyntaxNodesQRS.swift
[87/105] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[89/164] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[90/164] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[91/164] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[92/165] Compiling SwiftDiagnostics FixIt.swift
[93/165] Compiling SwiftBasicFormat Syntax+Extensions.swift
[94/165] Compiling SwiftDiagnostics Message.swift
[95/165] Emitting module SwiftBasicFormat
[96/165] Compiling SwiftDiagnostics Note.swift
[97/165] Emitting module SwiftDiagnostics
[98/165] Compiling SwiftParser Attributes.swift
[99/165] Compiling SwiftParser Availability.swift
[100/165] Compiling SwiftBasicFormat InferIndentation.swift
[101/165] Compiling SwiftBasicFormat Indenter.swift
[102/165] Compiling SwiftParser CharacterInfo.swift
[103/165] Compiling SwiftParser CollectionNodes+Parsable.swift
[104/165] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[105/165] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[107/166] Compiling SwiftBasicFormat BasicFormat.swift
[109/165] Compiling SwiftParser Lexeme.swift
[110/165] Compiling SwiftParser LexemeSequence.swift
[111/165] Compiling SwiftParser Lexer.swift
[112/165] Compiling SwiftParser RegexLiteralLexer.swift
[113/165] Compiling SwiftParser UnicodeScalarExtensions.swift
[114/165] Compiling SwiftParser Lookahead.swift
[115/170] Compiling SwiftParser StringLiterals.swift
[116/170] Compiling SwiftParser SwiftParserCompatibility.swift
[117/170] Compiling SwiftParser SwiftVersion.swift
[118/170] Compiling SwiftParser SyntaxUtils.swift
[119/170] Compiling SwiftParser TokenConsumer.swift
[120/170] Compiling SwiftParser TokenPrecedence.swift
[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 TokenSpec.swift
[128/170] Compiling SwiftParser TokenSpecSet.swift
[129/170] Compiling SwiftParser TopLevel.swift
[130/170] Compiling SwiftParser TriviaParser.swift
[131/170] Compiling SwiftParser Types.swift
[132/170] Compiling SwiftParser LoopProgressCondition.swift
[133/170] Compiling SwiftParser Modifiers.swift
[134/170] Compiling SwiftParser Names.swift
[135/170] Compiling SwiftParser Nominals.swift
[136/170] Compiling SwiftParser Parameters.swift
[137/170] Compiling SwiftParser ParseSourceFile.swift
[142/170] Compiling SwiftParser CompilerFiles.swift
[143/170] Compiling SwiftParser Declarations.swift
[144/170] Emitting module SwiftParser
[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 SwiftOperators OperatorTable.swift
[158/194] Compiling SwiftOperators PrecedenceGraph.swift
[159/194] Compiling SwiftOperators PrecedenceGroup.swift
[160/194] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[161/195] Compiling SwiftOperators OperatorTable+Folding.swift
[162/195] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[163/195] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[164/195] Emitting module SwiftOperators
[165/195] Compiling SwiftOperators OperatorTable+Semantics.swift
[166/195] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[167/195] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[168/195] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[169/195] Compiling SwiftOperators SyntaxSynthesis.swift
[171/196] Emitting module SwiftParserDiagnostics
[172/195] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[173/195] Compiling SwiftParserDiagnostics Utils.swift
[174/195] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[177/195] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[178/195] Compiling SwiftParserDiagnostics PresenceUtils.swift
[179/195] Compiling SwiftParserDiagnostics MissingNodesError.swift
[180/195] Compiling SwiftParserDiagnostics MissingTokenError.swift
[184/210] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[185/210] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[186/211] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[187/211] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[188/211] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[189/211] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[190/211] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[191/211] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[192/211] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[193/211] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[194/211] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[195/211] Compiling SwiftSyntaxBuilder Indenter.swift
[196/211] Compiling SwiftSyntaxBuilder ListBuilder.swift
[197/211] Emitting module SwiftSyntaxBuilder
[198/211] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[199/211] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[201/228] Compiling SwiftSyntaxMacros MemberMacro.swift
[202/228] Compiling SwiftSyntaxMacros PeerMacro.swift
[203/230] Compiling SwiftSyntaxMacros AccessorMacro.swift
[204/230] Compiling SwiftSyntaxMacros AttachedMacro.swift
[205/230] Compiling SwiftSyntaxMacros BodyMacro.swift
[206/230] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[207/230] Compiling SwiftSyntaxMacros Macro+Format.swift
[208/230] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[209/230] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[210/230] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[211/230] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[212/230] Emitting module SwiftSyntaxMacros
[213/230] Compiling SwiftSyntaxMacros Macro.swift
[214/230] Compiling SwiftSyntaxMacros MemberAttributeMacro.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 IndentationUtils.swift
[223/240] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[224/240] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[225/240] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[226/240] Emitting module SwiftSyntaxMacroExpansion
[227/240] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[228/240] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[229/240] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[230/240] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[232/252] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[233/252] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[234/253] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[235/253] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[236/253] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[237/253] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[238/253] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[239/253] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[240/253] Emitting module SwiftCompilerPluginMessageHandling
[241/253] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[242/253] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[243/253] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[244/253] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[246/255] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[247/255] Emitting module SwiftCompilerPlugin
[249/263] Emitting module NetrofitMacros
/host/spi-builder-workspace/Sources/NetrofitMacros/APIMacro.swift:5:8: warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
3 | import SwiftSyntaxMacros
4 |
5 | struct APIMacro: MemberMacro {
| `- warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
6 | static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
7 | var attributes: AttributeListSyntax?
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntaxMacros/MacroProtocols/MemberMacro.swift:89:22: note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
53 | /// - Returns: the set of member declarations introduced by this macro, which
54 | /// are nested inside the `attachedTo` declaration.
55 | static func expansion(
| `- note: requirement 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
56 | of node: AttributeSyntax,
57 | providingMembersOf declaration: some DeclGroupSyntax,
:
87 | message: "`MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter"
88 | )
89 | public static func expansion(
| `- note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
90 | of node: AttributeSyntax,
91 | providingMembersOf declaration: some DeclGroupSyntax,
[250/263] Compiling NetrofitMacros PayloadFormat.swift
[251/264] Compiling NetrofitMacros AttributeDecl+.swift
[252/264] Compiling NetrofitMacros Plugin.swift
[253/264] Compiling NetrofitMacros FunctionDecl+.swift
[254/264] Compiling NetrofitMacros String+.swift
[255/264] Compiling NetrofitMacros APIMacro.swift
/host/spi-builder-workspace/Sources/NetrofitMacros/APIMacro.swift:5:8: warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
3 | import SwiftSyntaxMacros
4 |
5 | struct APIMacro: MemberMacro {
| `- warning: deprecated default implementation is used to satisfy static method 'expansion(of:providingMembersOf:conformingTo:in:)' required by protocol 'MemberMacro': `MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter
6 | static func expansion(of node: AttributeSyntax, providingMembersOf declaration: some DeclGroupSyntax, in context: some MacroExpansionContext) throws -> [DeclSyntax] {
7 | var attributes: AttributeListSyntax?
/host/spi-builder-workspace/.build/checkouts/swift-syntax/Sources/SwiftSyntaxMacros/MacroProtocols/MemberMacro.swift:89:22: note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
53 | /// - Returns: the set of member declarations introduced by this macro, which
54 | /// are nested inside the `attachedTo` declaration.
55 | static func expansion(
| `- note: requirement 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
56 | of node: AttributeSyntax,
57 | providingMembersOf declaration: some DeclGroupSyntax,
:
87 | message: "`MemberMacro` conformance should implement the `expansion` function that takes a `conformingTo` parameter"
88 | )
89 | public static func expansion(
| `- note: 'expansion(of:providingMembersOf:conformingTo:in:)' declared here
90 | of node: AttributeSyntax,
91 | providingMembersOf declaration: some DeclGroupSyntax,
[256/264] Compiling NetrofitMacros MethodMacro.swift
[257/264] Compiling NetrofitMacros EmptyMacro.swift
[258/264] Write Objects.LinkFileList
[259/264] Linking NetrofitMacros-tool
error: emit-module command failed with exit code 1 (use -v to see invocation)
[261/284] Emitting module Netrofit
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
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
[262/284] Compiling Netrofit TextPlainEncoder.swift
[263/284] Compiling Netrofit URLEncodedFormEncoder.swift
[264/284] Compiling Netrofit NetrofitMacros.swift
[265/286] Compiling Netrofit HTTPBodyDecoder.swift
[266/286] Compiling Netrofit JSONDecoder.swift
[267/286] Compiling Netrofit TextPlainDecoder.swift
[268/286] Compiling Netrofit AttributeWrappers.swift
[269/286] Compiling Netrofit DynamicContentTypeDecoder.swift
[270/286] Compiling Netrofit EventStreamingDecoder.swift
[271/286] Compiling Netrofit AnyEncodable.swift
[272/286] Compiling Netrofit String+URLPathPart.swift
[273/286] Compiling Netrofit NetrofitSessionProtocols.swift
[274/286] Compiling Netrofit RequestBuilder.swift
[275/286] Compiling Netrofit NetrofitPlugin.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[276/286] Compiling Netrofit NetrofitProvider.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[277/286] Compiling Netrofit NetrofitResponse.swift
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:9:25: error: cannot find type 'URLRequest' in scope
7 |
8 | public struct NetrofitResponse: Sendable {
9 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
10 | public var body: Data?
11 | public var headers: [String: String]?
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
[278/286] Compiling Netrofit HTTPBodyEncoder.swift
[279/286] Compiling Netrofit JSONEncoder.swift
[280/286] Compiling Netrofit MultipartEncoder.swift
[281/286] Compiling Netrofit _NetrofitSession.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:94: error: 'nil' requires a contextual type
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:37:23: error: cannot find 'URLRequest' in scope
35 |
36 | func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
37 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
38 | request.httpMethod = method
39 | request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | func resume() {
51 | guard dataTask == nil else { return }
52 | let task = urlSession.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | task.resume()
54 | dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
80 | let decoder = builder.decoder
81 | let deocdeKeyPath = builder.responseKeyPath
82 | return AsyncStream<T> { continuation in
| `- error: type of expression is ambiguous without a type annotation
83 | let wrapper = StreamWrapper(
84 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 | let decoder = builder.decoder
112 | let deocdeKeyPath = builder.responseKeyPath
113 | return AsyncThrowingStream(T.self) { continuation in
| `- error: type of expression is ambiguous without a type annotation
114 | let wrapper = ThrowingStreamWrapper(
115 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 | guard let k = key as? String,
197 | let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 | response.body = responseData
207 | response.headers = headers
208 | response.statusCode = httpResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 | for plugin in plugins {
[282/286] Compiling Netrofit _NetrofitTask.swift
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
7 | plugins: [NetrofitPlugin] = []
8 | ) {
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:6:51: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
4 | public convenience init(
5 | baseURL: String,
6 | configuration: URLSessionConfiguration = .default,
| `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
7 | plugins: [NetrofitPlugin] = []
8 | ) {
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:14:79: error: cannot find type 'URLSessionDataDelegate' in scope
12 | }
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
| `- error: cannot find type 'URLSessionDataDelegate' in scope
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:15:24: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | private var urlSession: URLSession!
17 | private let lock = NSLock()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:16:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | final class _NetrofitSession: NSObject, NetrofitSession, @unchecked Sendable, URLSessionDataDelegate {
15 | let configuration: URLSessionConfiguration
16 | private var urlSession: URLSession!
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | private let lock = NSLock()
18 | private var _createdTasks = Set<_NetrofitTask>()
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:30:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 | }
29 |
30 | init(configuration: URLSessionConfiguration) {
| `- error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 | self.configuration = configuration
32 | super.init()
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionConfiguration = AnyObject
| `- note: 'URLSessionConfiguration' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:128: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.urlResponse = response
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:47:95: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | }
46 |
47 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse) async -> URLSession.ResponseDisposition {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
49 | _task.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/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:54:54: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | }
53 |
54 | func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
55 | if let _task = createdTasks.first(where: { $0.dataTask === dataTask }) {
56 | _task.didReceiveData(data)
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:32: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:60:50: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
58 | }
59 |
60 | func urlSession(_ session: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
61 | if let _task = createdTasks.first(where: { $0.dataTask === task }) {
62 | _task.didCompleteWithError(error)
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:22: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:33:94: error: 'nil' requires a contextual type
31 | self.configuration = configuration
32 | super.init()
33 | urlSession = URLSession(configuration: configuration, delegate: self, delegateQueue: nil)
| `- error: 'nil' requires a contextual type
34 | }
35 |
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitSession.swift:37:23: error: cannot find 'URLRequest' in scope
35 |
36 | func createTask(method: String, url: URL, headers: [String: String]?, body: Data?, plugins: [NetrofitPlugin]) -> NetrofitTask {
37 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
38 | request.httpMethod = method
39 | request.httpBody = body
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:43: error: cannot find type 'URLRequest' in scope
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: cannot find type 'URLRequest' in scope
45 | self.urlSession = urlSession
46 | self.request = request
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:32:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |
31 | let uuid = UUID()
32 | let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:33:18: error: cannot find type 'URLRequest' in scope
31 | let uuid = UUID()
32 | let urlSession: URLSession
33 | let request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:35:22: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
33 | let request: URLRequest
34 | let plugins: [NetrofitPlugin]
35 | var urlResponse: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
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/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:38:32: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
36 |
37 | private(set) var responseData = Data()
38 | private(set) var dataTask: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
39 |
40 | private var state: EventStreamingState = .idle
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:44:22: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
42 | private var lineBuffer = Data() // Buffer for accumulating incomplete lines in SSE streaming
43 |
44 | init(urlSession: URLSession, request: URLRequest, plugins: [NetrofitPlugin]) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | self.urlSession = urlSession
46 | self.request = request
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:52:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
50 | func resume() {
51 | guard dataTask == nil else { return }
52 | let task = urlSession.dataTask(with: request)
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | task.resume()
54 | dataTask = task
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:82:16: error: type of expression is ambiguous without a type annotation
80 | let decoder = builder.decoder
81 | let deocdeKeyPath = builder.responseKeyPath
82 | return AsyncStream<T> { continuation in
| `- error: type of expression is ambiguous without a type annotation
83 | let wrapper = StreamWrapper(
84 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:113:16: error: type of expression is ambiguous without a type annotation
111 | let decoder = builder.decoder
112 | let deocdeKeyPath = builder.responseKeyPath
113 | return AsyncThrowingStream(T.self) { continuation in
| `- error: type of expression is ambiguous without a type annotation
114 | let wrapper = ThrowingStreamWrapper(
115 | decoder: decoder,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:40: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:194:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
192 | dataTask = nil
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
196 | guard let k = key as? String,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:195:37: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
193 |
194 | let httpResponse = urlResponse as? HTTPURLResponse
195 | let headers = httpResponse?.allHeaderFields.compactMap { key, value -> (String, String)? in
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'
196 | guard let k = key as? String,
197 | let v = value as? String
/host/spi-builder-workspace/Sources/Netrofit/NetrofitResponse.swift:15:26: error: cannot find type 'URLRequest' in scope
13 | public var error: Error?
14 |
15 | public init(request: URLRequest) {
| `- error: cannot find type 'URLRequest' in scope
16 | self.request = request
17 | }
/host/spi-builder-workspace/Sources/Netrofit/_Netrofit/_NetrofitTask.swift:208:45: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
206 | response.body = responseData
207 | response.headers = headers
208 | response.statusCode = httpResponse?.statusCode
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |
210 | for plugin in plugins {
BUILD FAILURE 6.1 android