Build Information
Failed to build SwiftRequest, reference main (280747
), with Swift 6.2 (beta) for macOS (SPM) on 20 Jun 2025 06:43:38 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ailtonvivaz/swift-request.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ailtonvivaz/swift-request
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2807472 Merge pull request #1 from ailtonvivaz/service-executor
Cloned https://github.com/ailtonvivaz/swift-request.git
Revision (git rev-parse @):
280747298268344b79ac53809ffea3269fe5b614
SUCCESS checkout https://github.com/ailtonvivaz/swift-request.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.2
Building package at path: $PWD
https://github.com/ailtonvivaz/swift-request.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/17] Write sources
[14/17] Write swift-version-1EA4D86E10B52AF.txt
[16/19] Compiling SwiftSyntax509 Empty.swift
[17/19] Emitting module SwiftSyntax509
[18/65] Compiling SwiftSyntax AbsolutePosition.swift
[19/65] Compiling SwiftSyntax Assert.swift
[20/65] Compiling SwiftSyntax BumpPtrAllocator.swift
[21/65] Compiling SwiftSyntax CommonAncestor.swift
[22/65] Compiling SwiftSyntax Convenience.swift
[23/70] Compiling SwiftSyntax MemoryLayout.swift
[24/70] Compiling SwiftSyntax MissingNodeInitializers.swift
[25/70] Compiling SwiftSyntax RawSyntax.swift
[26/70] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[27/70] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[28/70] Compiling SwiftSyntax RawSyntaxTokenView.swift
[29/70] Compiling SwiftSyntax SourceLength.swift
[30/70] Compiling SwiftSyntax SourceLocation.swift
[31/70] Compiling SwiftSyntax SourcePresence.swift
[32/70] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[33/70] Compiling SwiftSyntax SyntaxText.swift
[34/70] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[35/70] Compiling SwiftSyntax TokenDiagnostic.swift
[36/70] Compiling SwiftSyntax TokenSyntax.swift
[37/70] Compiling SwiftSyntax Trivia.swift
[38/70] Emitting module SwiftSyntax
[39/70] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[40/70] Compiling SwiftSyntax SyntaxBaseNodes.swift
[41/70] Compiling SwiftSyntax SyntaxCollections.swift
[42/70] Compiling SwiftSyntax SyntaxEnum.swift
[43/70] Compiling SwiftSyntax SyntaxKind.swift
[44/70] Compiling SwiftSyntax Syntax.swift
[45/70] Compiling SwiftSyntax SyntaxArena.swift
[46/70] Compiling SwiftSyntax SyntaxChildren.swift
[47/70] Compiling SwiftSyntax SyntaxCollection.swift
[48/70] Compiling SwiftSyntax SyntaxData.swift
[49/70] Compiling SwiftSyntax Utils.swift
[50/70] Compiling SwiftSyntax ChildNameForKeyPath.swift
[51/70] Compiling SwiftSyntax Keyword.swift
[52/70] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[53/70] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[54/70] Compiling SwiftSyntax SyntaxExprNodes.swift
[55/70] Compiling SwiftSyntax SyntaxNodes.swift
[56/70] Compiling SwiftSyntax SyntaxPatternNodes.swift
[57/70] Compiling SwiftSyntax SyntaxStmtNodes.swift
[58/70] Compiling SwiftSyntax SyntaxTypeNodes.swift
[59/70] Compiling SwiftSyntax Tokens.swift
[60/70] Compiling SwiftSyntax TriviaPieces.swift
[61/70] Compiling SwiftSyntax RawSyntaxNodes.swift
[62/70] Compiling SwiftSyntax RawSyntaxValidation.swift
[63/70] Compiling SwiftSyntax SyntaxDeclNodes.swift
[64/70] Compiling SwiftSyntax SyntaxRewriter.swift
[65/70] Compiling SwiftSyntax SyntaxTraits.swift
[66/70] Compiling SwiftSyntax SyntaxTransform.swift
[67/70] Compiling SwiftSyntax SyntaxVisitor.swift
[68/70] Compiling SwiftSyntax TokenKind.swift
[69/122] Compiling SwiftDiagnostics Note.swift
[70/122] Compiling SwiftDiagnostics Message.swift
[71/122] Compiling SwiftBasicFormat Syntax+Extensions.swift
[72/122] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[73/122] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[74/122] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[75/122] Compiling SwiftDiagnostics FixIt.swift
[76/122] Compiling SwiftDiagnostics Diagnostic.swift
[77/122] Emitting module SwiftDiagnostics
[78/122] Compiling SwiftDiagnostics Convenience.swift
[79/122] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[80/122] Emitting module SwiftBasicFormat
[81/122] Compiling SwiftBasicFormat BasicFormat.swift
[82/122] Compiling SwiftParser SyntaxUtils.swift
[83/122] Compiling SwiftParser TokenConsumer.swift
[84/122] Compiling SwiftParser TokenPrecedence.swift
[85/122] Compiling SwiftParser TokenSpec.swift
[86/122] Compiling SwiftParser Lexeme.swift
[87/122] Compiling SwiftParser LexemeSequence.swift
[88/122] Compiling SwiftParser Lexer.swift
[89/122] Compiling SwiftParser RegexLiteralLexer.swift
[90/126] Compiling SwiftParser Statements.swift
[91/126] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[92/126] Compiling SwiftParser StringLiterals.swift
[93/126] Compiling SwiftParser SwiftParserCompatibility.swift
[94/126] Compiling SwiftParser UnicodeScalarExtensions.swift
[95/126] Compiling SwiftParser Lookahead.swift
[96/126] Compiling SwiftParser LoopProgressCondition.swift
[97/126] Compiling SwiftParser Modifiers.swift
[98/126] Compiling SwiftParser Parser.swift
[99/126] Compiling SwiftParser Patterns.swift
[100/126] Compiling SwiftParser Recovery.swift
[101/126] Compiling SwiftParser Specifiers.swift
[102/126] Compiling SwiftParser Names.swift
[103/126] Compiling SwiftParser Nominals.swift
[104/126] Compiling SwiftParser Parameters.swift
[105/126] Compiling SwiftParser ParseSourceFile.swift
[106/126] Compiling SwiftParser TokenSpecSet.swift
[107/126] Compiling SwiftParser TopLevel.swift
[108/126] Compiling SwiftParser TriviaParser.swift
[109/126] Compiling SwiftParser Types.swift
[110/126] Emitting module SwiftParser
[111/126] Compiling SwiftParser IsLexerClassified.swift
[112/126] Compiling SwiftParser LayoutNodes+Parsable.swift
[113/126] Compiling SwiftParser Parser+TokenSpecSet.swift
[114/126] Compiling SwiftParser TokenSpecStaticMembers.swift
[115/126] Compiling SwiftParser Attributes.swift
[116/126] Compiling SwiftParser Availability.swift
[117/126] Compiling SwiftParser CharacterInfo.swift
[118/126] Compiling SwiftParser CollectionNodes+Parsable.swift
[119/126] Compiling SwiftParser Declarations.swift
[120/126] Compiling SwiftParser Directives.swift
[121/126] Compiling SwiftParser ExperimentalFeatures.swift
[122/126] Compiling SwiftParser Expressions.swift
[123/126] Compiling SwiftParser IncrementalParseTransition.swift
[124/126] Compiling SwiftParser Cursor.swift
[125/149] Compiling SwiftOperators PrecedenceGroup.swift
[126/150] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[127/151] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[128/151] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[129/151] Compiling SwiftOperators SyntaxSynthesis.swift
[130/151] Compiling SwiftOperators OperatorTable.swift
[131/151] Compiling SwiftOperators PrecedenceGraph.swift
[132/151] Compiling SwiftOperators OperatorTable+Semantics.swift
[133/151] Compiling SwiftOperators OperatorError.swift
[134/151] Compiling SwiftOperators Operator.swift
[135/151] Compiling SwiftOperators OperatorTable+Defaults.swift
[136/151] Compiling SwiftOperators OperatorError+Diagnostics.swift
[137/151] Emitting module SwiftOperators
[138/151] Compiling SwiftOperators OperatorTable+Folding.swift
[139/151] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[140/151] Compiling SwiftParserDiagnostics PresenceUtils.swift
[141/151] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[142/151] Compiling SwiftParserDiagnostics Utils.swift
[143/151] Compiling SwiftParserDiagnostics MissingNodesError.swift
[144/151] Compiling SwiftParserDiagnostics MissingTokenError.swift
[145/151] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[146/151] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[147/151] Emitting module SwiftParserDiagnostics
[148/151] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[149/151] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[150/165] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[151/165] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[152/165] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[153/165] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[154/166] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[155/166] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[156/166] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[157/166] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[158/166] Compiling SwiftSyntaxBuilder Indenter.swift
[159/166] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[160/166] Emitting module SwiftSyntaxBuilder
[161/166] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[162/166] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[163/166] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[164/166] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[165/180] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[166/180] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[167/181] Compiling SwiftSyntaxMacros Macro.swift
[168/181] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[169/181] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[170/181] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[171/181] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[172/181] Compiling SwiftSyntaxMacros AccessorMacro.swift
[173/181] Compiling SwiftSyntaxMacros AttachedMacro.swift
[174/181] Compiling SwiftSyntaxMacros Macro+Format.swift
[175/181] Compiling SwiftSyntaxMacros MemberMacro.swift
[176/181] Emitting module SwiftSyntaxMacros
[177/181] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[178/181] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[179/181] Compiling SwiftSyntaxMacros PeerMacro.swift
[180/189] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[181/189] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[182/189] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[183/189] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[184/189] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[185/189] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[186/189] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[187/189] Emitting module SwiftSyntaxMacroExpansion
[188/196] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[189/196] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[190/196] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[191/196] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[192/196] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[193/196] Emitting module SwiftCompilerPluginMessageHandling
[194/196] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[195/198] Emitting module SwiftCompilerPlugin
[196/198] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[197/209] Compiling SwiftRequestMacros SimpleDiagnosticMessage.swift
[198/209] Compiling SwiftRequestMacros ServiceMacro.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:29: warning: 'argument' is deprecated: renamed to 'arguments' [#DeprecatedDeclaration]
19 | }
20 |
21 | let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
| |- warning: 'argument' is deprecated: renamed to 'arguments' [#DeprecatedDeclaration]
| `- note: use 'arguments' instead
22 |
23 | let declarations = protocolDecl.memberBlock.members
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:42: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
19 | }
20 |
21 | let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
| |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprListSyntax' instead
22 |
23 | let declarations = protocolDecl.memberBlock.members
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:21:86: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
19 | }
20 |
21 | let resource = node.argument?.as(TupleExprElementListSyntax.self)?.first?.as(TupleExprElementSyntax.self)?.expression
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
22 |
23 | let declarations = protocolDecl.memberBlock.members
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:50:50: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
48 | ) -> FunctionDeclSyntax? {
49 | // TODO: require method
50 | guard let method = declaration.attributes?.first?.as(AttributeSyntax.self)?.attributeName.description else {
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
51 | context.diagnose(diagnostics.methodRequired(node: declaration))
52 | return nil
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMacro.swift:71:29: warning: 'identifier' is deprecated: renamed to 'name' [#DeprecatedDeclaration]
69 | }
70 |
71 | return protocolDecl.identifier.text
| |- warning: 'identifier' is deprecated: renamed to 'name' [#DeprecatedDeclaration]
| `- note: use 'name' instead
72 | }
73 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[199/209] Emitting module SwiftRequestMacros
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
12 | }
13 |
14 | static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
| |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprListSyntax' instead
15 | return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[200/209] Compiling SwiftRequestMacros MethodDiagnostics.swift
[201/209] Compiling SwiftRequestMacros RequestDiagnostics.swift
[202/209] Compiling SwiftRequestMacros ServiceMethodExpander.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:30:70: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax' [#DeprecatedDeclaration]
28 | for attributeElement in attributes {
29 | guard let attribute = attributeElement.as(AttributeSyntax.self),
30 | let attributeType = attribute.attributeName.as(SimpleTypeIdentifierSyntax.self)
| |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax' [#DeprecatedDeclaration]
| `- note: use 'IdentifierTypeSyntax' instead
31 | else {
32 | continue
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:27:12: error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
25 | var methodAttribute: AttributeSyntax!
26 |
27 | if let attributes = declaration.attributes {
| `- error: initializer for conditional binding must have Optional type, not 'AttributeListSyntax'
28 | for attributeElement in attributes {
29 | guard let attribute = attributeElement.as(AttributeSyntax.self),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:64:61: error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
62 | )
63 | .with(\.signature.input.parameterList, convert(declaration.signature.input.parameterList))
64 | .with(\.attributes, newListAttributes.isEmpty ? nil : newListAttributes)
| `- error: 'nil' cannot be used in context expecting type 'AttributeListSyntax'
65 | .with(\.body, codeBlock)
66 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:72:61: error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
70 | private func convert(_ parameters: FunctionParameterListSyntax) -> FunctionParameterListSyntax {
71 | FunctionParameterListSyntax(parameters.map { parameter in
72 | var newParameter = parameter.with(\.attributes, nil)
| `- error: 'nil' is not compatible with expected argument type 'AttributeListSyntax'
73 |
74 | if parameter.type.is(OptionalTypeSyntax.self) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:88:13: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
86 | ) -> FunctionCallExprSyntax{
87 | FunctionCallExprSyntax(callee: "Request" as ExprSyntax) {
88 | TupleExprElementSyntax(label: "url", expression: endpoint)
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
89 |
90 | if method != "GET" {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:91:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
89 |
90 | if method != "GET" {
91 | TupleExprElementSyntax(label: "method", expression: StringLiteralExprSyntax(content: method))
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
92 | }
93 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:95:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
93 |
94 | if let queryParams = expandParameter("QueryParam", of: declaration, in: context) {
95 | TupleExprElementSyntax(label: "queryParams", expression: queryParams)
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
96 | }
97 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:99:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
97 |
98 | if let headers = expandParameter("Header", of: declaration, in: context) {
99 | TupleExprElementSyntax(label: "headers", expression: headers)
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
100 | }
101 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:103:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
101 |
102 | if let formFields = expandParameter("FormField", of: declaration, in: context) {
103 | TupleExprElementSyntax(label: "formFields", expression: formFields)
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
104 | }
105 |
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:17: warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
105 |
106 | if let body = expandBody(of: declaration, in: context) {
107 | TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
| |- warning: 'TupleExprElementSyntax' is deprecated: renamed to 'LabeledExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprSyntax' instead
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax' [#DeprecatedDeclaration]
105 |
106 | if let body = expandBody(of: declaration, in: context) {
107 | TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
| |- warning: 'IdentifierExprSyntax' is deprecated: renamed to 'DeclReferenceExprSyntax' [#DeprecatedDeclaration]
| `- note: use 'DeclReferenceExprSyntax' instead
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:107:67: warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)' [#DeprecatedDeclaration]
105 |
106 | if let body = expandBody(of: declaration, in: context) {
107 | TupleExprElementSyntax(label: "body", expression: IdentifierExprSyntax(identifier: body))
| |- warning: 'init(leadingTrivia:_:identifier:_:declNameArguments:_:trailingTrivia:)' is deprecated: renamed to 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)' [#DeprecatedDeclaration]
| `- note: use 'DeclReferenceExprSyntax(leadingTrivia:_:baseName:_:argumentNames:_:trailingTrivia:)' instead
108 | }
109 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:143:17: warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)' [#DeprecatedDeclaration]
141 | let dict = DictionaryElementListSyntax {
142 | for parameter in parameters {
143 | DictionaryElementSyntax(
| |- warning: 'init(leadingTrivia:_:keyExpression:_:colon:_:valueExpression:_:trailingComma:_:trailingTrivia:)' is deprecated: renamed to 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)' [#DeprecatedDeclaration]
| `- note: use 'DictionaryElementSyntax(leadingTrivia:_:key:_:colon:_:value:_:trailingComma:_:trailingTrivia:)' instead
144 | keyExpression: StringLiteralExprSyntax(content: parameter.name),
145 | valueExpression: "\(raw: parameter.value)" as ExprSyntax
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:35: warning: 'argument' is deprecated: renamed to 'arguments' [#DeprecatedDeclaration]
156 | in context: some MacroExpansionContext
157 | ) -> ExprSyntax? {
158 | let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
| |- warning: 'argument' is deprecated: renamed to 'arguments' [#DeprecatedDeclaration]
| `- note: use 'arguments' instead
159 |
160 | let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:158:48: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
156 | in context: some MacroExpansionContext
157 | ) -> ExprSyntax? {
158 | let arguments = attribute.argument?.as(TupleExprElementListSyntax.self)
| |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprListSyntax' instead
159 |
160 | let parameters: [FunctionNamedParameter] = getParameters(from: declaration, with: "Path")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:211:52: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax' [#DeprecatedDeclaration]
209 |
210 | // replace
211 | let newPath = pathLiteral.with(\.segments, StringLiteralSegmentsSyntax(
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax' [#DeprecatedDeclaration]
| `- note: use 'StringLiteralSegmentListSyntax' instead
212 | pathLiteral.segments.compactMap { segment in
213 | guard let stringSegment = segment.as(StringSegmentSyntax.self) else {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:221:24: warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax' [#DeprecatedDeclaration]
219 | }
220 |
221 | return StringLiteralSegmentsSyntax.Element(StringSegmentSyntax(content: .stringSegment(newPath)))
| |- warning: 'StringLiteralSegmentsSyntax' is deprecated: renamed to 'StringLiteralSegmentListSyntax' [#DeprecatedDeclaration]
| `- note: use 'StringLiteralSegmentListSyntax' instead
222 | }
223 | ))
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/ServiceMethodExpander.swift:232:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
230 | private func getParameters<T: FunctionParameter>(from declaration: FunctionDeclSyntax, with attributeName: String) -> [T] {
231 | return declaration.signature.input.parameterList.filter { parameter in
232 | parameter.attributes?.contains(where: { attribute in
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
233 | attribute.as(AttributeSyntax.self)?.attributeName.as(SimpleTypeIdentifierSyntax.self)?.name.text == attributeName
234 | }) ?? false
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[203/209] Compiling SwiftRequestMacros ParamMacro.swift
[204/209] Compiling SwiftRequestMacros ServiceDiagnostics.swift
[205/209] Compiling SwiftRequestMacros MethodMacro.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:20:51: error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
18 | }
19 |
20 | if let staticModifier = funcDecl.modifiers?.first(where: {
| `- error: cannot use optional chaining on non-optional value of type 'DeclModifierListSyntax'
21 | $0.name.tokenKind == TokenKind.keyword(.static)
22 | })?.as(DeclModifierSyntax.self) {
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:51: warning: 'output' is deprecated: renamed to 'returnClause' [#DeprecatedDeclaration]
31 | }
32 |
33 | guard let returnType = funcDecl.signature.output?.returnType else {
| |- warning: 'output' is deprecated: renamed to 'returnClause' [#DeprecatedDeclaration]
| `- note: use 'returnClause' instead
34 | context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 | return []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:33:59: warning: 'returnType' is deprecated: renamed to 'type' [#DeprecatedDeclaration]
31 | }
32 |
33 | guard let returnType = funcDecl.signature.output?.returnType else {
| |- warning: 'returnType' is deprecated: renamed to 'type' [#DeprecatedDeclaration]
| `- note: use 'type' instead
34 | context.diagnose(diagnostics.outputTypeRequired(node: funcDecl))
35 | return []
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:50:26: warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax' [#DeprecatedDeclaration]
48 | in context: some MacroExpansionContext
49 | ) -> Bool {
50 | if outputType.is(SimpleTypeIdentifierSyntax.self) {
| |- warning: 'SimpleTypeIdentifierSyntax' is deprecated: renamed to 'IdentifierTypeSyntax' [#DeprecatedDeclaration]
| `- note: use 'IdentifierTypeSyntax' instead
51 | return true
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/MethodMacro.swift:55:51: warning: 'elementType' is deprecated: renamed to 'element' [#DeprecatedDeclaration]
53 |
54 | if let arrayType = outputType.as(ArrayTypeSyntax.self) {
55 | return validate(outputType: arrayType.elementType, in: context)
| |- warning: 'elementType' is deprecated: renamed to 'element' [#DeprecatedDeclaration]
| `- note: use 'element' instead
56 | }
57 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[206/209] Compiling SwiftRequestMacros Diagnostics.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
12 | }
13 |
14 | static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
| |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprListSyntax' instead
15 | return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 | static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 | return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 | }
17 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[207/209] Compiling SwiftRequestMacros FunctionParameter.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:14:71: warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
12 | }
13 |
14 | static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
| |- warning: 'TupleExprElementListSyntax' is deprecated: renamed to 'LabeledExprListSyntax' [#DeprecatedDeclaration]
| `- note: use 'LabeledExprListSyntax' instead
15 | return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftRequestMacros/FunctionParameter.swift:15:33: error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
13 |
14 | static func getArguments(from syntax: FunctionParameterSyntax) -> TupleExprElementListSyntax? {
15 | return syntax.attributes?.first?.as(AttributeSyntax.self)?.argument?.as(TupleExprElementListSyntax.self)
| `- error: cannot use optional chaining on non-optional value of type 'AttributeListSyntax'
16 | }
17 | }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[208/210] Compiling SwiftRequestMacros SwiftRequestPlugin.swift
Fetching https://github.com/apple/swift-syntax.git
[1/70906] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.50s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (6.24s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
BUILD FAILURE 6.2 macosSpm