Build Information
Failed to build SwiftMVI, reference 0.2.0 (8c2837
), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 22:05:53 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/xtro/SwiftMVI.git
Reference: 0.2.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/xtro/SwiftMVI
* tag 0.2.0 -> FETCH_HEAD
HEAD is now at 8c28374 Add modules, view, feature, usecases
Cloned https://github.com/xtro/SwiftMVI.git
Revision (git rev-parse @):
8c28374f865e8c2188f42c82b4ae8c829de939bb
SUCCESS checkout https://github.com/xtro/SwiftMVI.git at 0.2.0
Fetching https://github.com/gringoireDM/EnumKit.git
Fetching https://github.com/xtro/SwiftUseCase.git
Fetching https://github.com/pointfreeco/swift-case-paths.git
[1/319] Fetching enumkit
[27/414] Fetching enumkit, swiftusecase
[153/4588] Fetching enumkit, swiftusecase, swift-case-paths
Fetched https://github.com/gringoireDM/EnumKit.git from cache (0.77s)
[386/4269] Fetching swiftusecase, swift-case-paths
Fetched https://github.com/pointfreeco/swift-case-paths.git from cache (1.06s)
Fetched https://github.com/xtro/SwiftUseCase.git from cache (1.06s)
Computing version for https://github.com/xtro/SwiftUseCase.git
Computed https://github.com/xtro/SwiftUseCase.git at 0.2.0 (0.51s)
Fetching https://github.com/apple/swift-syntax.git
[1/66399] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.20s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.74s)
Computing version for https://github.com/pointfreeco/swift-case-paths.git
Computed https://github.com/pointfreeco/swift-case-paths.git at 0.14.1 (0.63s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/4985] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.49s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.63s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/pointfreeco/swift-case-paths.git
Working copy of https://github.com/pointfreeco/swift-case-paths.git resolved at 0.14.1
Creating working copy for https://github.com/xtro/SwiftUseCase.git
Working copy of https://github.com/xtro/SwiftUseCase.git resolved at 0.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swiftmvi",
"name": "SwiftMVI",
"url": "https://github.com/xtro/SwiftMVI.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftMVI",
"dependencies": [
{
"identity": "swiftusecase",
"name": "SwiftUseCase",
"url": "https://github.com/xtro/SwiftUseCase.git",
"version": "0.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftUseCase",
"dependencies": [
{
"identity": "swift-syntax",
"name": "swift-syntax",
"url": "https://github.com/apple/swift-syntax.git",
"version": "509.0.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
},
{
"identity": "swift-case-paths",
"name": "swift-case-paths",
"url": "https://github.com/pointfreeco/swift-case-paths.git",
"version": "0.14.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-case-paths",
"dependencies": [
{
"identity": "xctest-dynamic-overlay",
"name": "xctest-dynamic-overlay",
"url": "https://github.com/pointfreeco/xctest-dynamic-overlay",
"version": "0.9.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/xctest-dynamic-overlay",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/xtro/SwiftMVI.git
[1/239] Fetching swiftmvi
Fetched https://github.com/xtro/SwiftMVI.git from cache (1.08s)
Fetching https://github.com/xtro/SwiftUseCase.git from cache
Fetching https://github.com/pointfreeco/swift-case-paths.git from cache
Fetched https://github.com/xtro/SwiftUseCase.git from cache (0.51s)
Fetched https://github.com/pointfreeco/swift-case-paths.git from cache (0.51s)
Computing version for https://github.com/xtro/SwiftUseCase.git
Computed https://github.com/xtro/SwiftUseCase.git at 0.2.0 (0.02s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.81s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0 (0.03s)
Computing version for https://github.com/pointfreeco/swift-case-paths.git
Computed https://github.com/pointfreeco/swift-case-paths.git at 0.14.1 (0.04s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay from cache
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.47s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (0.03s)
Creating working copy for https://github.com/pointfreeco/swift-case-paths.git
Working copy of https://github.com/pointfreeco/swift-case-paths.git resolved at 0.14.1
Creating working copy for https://github.com/xtro/SwiftUseCase.git
Working copy of https://github.com/xtro/SwiftUseCase.git resolved at 0.2.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/xtro/SwiftMVI.git
Working copy of https://github.com/xtro/SwiftMVI.git resolved at 0.2.0 (8c28374)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0
warning: '.resolve-product-dependencies': dependency 'swiftmvi' is not used by any target
Found 2 product dependencies
- SwiftUseCase
- swift-case-paths
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/xtro/SwiftMVI.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/21] Write sources
[18/21] Write swift-version--7754E27361AE5C74.txt
[20/32] Emitting module SwiftSyntax509
[21/32] Compiling SwiftSyntax509 Empty.swift
[22/78] Emitting module XCTestDynamicOverlay
[23/78] Compiling SwiftSyntax MemoryLayout.swift
[24/78] Compiling SwiftSyntax MissingNodeInitializers.swift
[25/78] Compiling SwiftSyntax RawSyntax.swift
[26/78] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[27/78] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[28/83] Compiling SwiftSyntax SyntaxText.swift
[29/83] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[30/83] Compiling SwiftSyntax TokenDiagnostic.swift
[31/83] Compiling SwiftSyntax TokenSyntax.swift
[32/83] Compiling SwiftSyntax Trivia.swift
[33/83] Compiling SwiftSyntax RawSyntaxTokenView.swift
[34/83] Compiling SwiftSyntax SourceLength.swift
[35/83] Compiling SwiftSyntax SourceLocation.swift
[36/83] Compiling SwiftSyntax SourcePresence.swift
[37/83] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[38/83] Compiling XCTestDynamicOverlay XCTFail.swift
[39/83] Compiling XCTestDynamicOverlay XCTIsTesting.swift
[40/83] Compiling XCTestDynamicOverlay XCTCurrentTestCase.swift
[41/83] Compiling XCTestDynamicOverlay Unimplemented.swift
[42/83] Compiling XCTestDynamicOverlay GeneratePlaceholder.swift
[43/83] Compiling XCTestDynamicOverlay Deprecations.swift
[44/83] Compiling XCTestDynamicOverlay DefaultInitializable.swift
[45/83] Compiling XCTestDynamicOverlay RuntimeWarnings.swift
[46/91] Compiling CasePaths OpenExistential.swift
[47/91] Compiling CasePaths TypeName.swift
[48/91] Compiling CasePaths XCTUnwrap.swift
[49/91] Compiling CasePaths Operators.swift
[50/91] Compiling CasePaths CasePaths.swift
[51/91] Emitting module CasePaths
[52/91] Compiling CasePaths CasePath.swift
[53/91] Compiling CasePaths EnumReflection.swift
[54/91] Emitting module SwiftSyntax
[55/91] Compiling SwiftSyntax Syntax.swift
[56/91] Compiling SwiftSyntax SyntaxArena.swift
[57/91] Compiling SwiftSyntax SyntaxChildren.swift
[58/91] Compiling SwiftSyntax SyntaxCollection.swift
[59/91] Compiling SwiftSyntax SyntaxData.swift
[60/91] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[61/91] Compiling SwiftSyntax SyntaxBaseNodes.swift
[62/91] Compiling SwiftSyntax SyntaxCollections.swift
[63/91] Compiling SwiftSyntax SyntaxEnum.swift
[64/91] Compiling SwiftSyntax SyntaxKind.swift
[65/91] Compiling SwiftSyntax Utils.swift
[66/91] Compiling SwiftSyntax ChildNameForKeyPath.swift
[67/91] Compiling SwiftSyntax Keyword.swift
[68/91] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[69/91] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[70/91] Compiling SwiftSyntax Tokens.swift
[71/91] Compiling SwiftSyntax TriviaPieces.swift
[72/91] Compiling SwiftSyntax RawSyntaxNodes.swift
[73/91] Compiling SwiftSyntax RawSyntaxValidation.swift
[74/91] Compiling SwiftSyntax SyntaxDeclNodes.swift
[75/91] Compiling SwiftSyntax AbsolutePosition.swift
[76/91] Compiling SwiftSyntax Assert.swift
[77/91] Compiling SwiftSyntax BumpPtrAllocator.swift
[78/91] Compiling SwiftSyntax CommonAncestor.swift
[79/91] Compiling SwiftSyntax Convenience.swift
[80/91] Compiling SwiftSyntax SyntaxRewriter.swift
[81/91] Compiling SwiftSyntax SyntaxTraits.swift
[82/91] Compiling SwiftSyntax SyntaxTransform.swift
[83/91] Compiling SwiftSyntax SyntaxVisitor.swift
[84/91] Compiling SwiftSyntax TokenKind.swift
[85/91] Compiling SwiftSyntax SyntaxExprNodes.swift
[86/91] Compiling SwiftSyntax SyntaxNodes.swift
[87/91] Compiling SwiftSyntax SyntaxPatternNodes.swift
[88/91] Compiling SwiftSyntax SyntaxStmtNodes.swift
[89/91] Compiling SwiftSyntax SyntaxTypeNodes.swift
[90/143] Compiling SwiftDiagnostics Convenience.swift
[91/143] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[92/143] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[93/143] Compiling SwiftBasicFormat Syntax+Extensions.swift
[94/143] Compiling SwiftDiagnostics Diagnostic.swift
[95/143] Compiling SwiftDiagnostics FixIt.swift
[96/143] Compiling SwiftDiagnostics Note.swift
[97/143] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[98/143] Emitting module SwiftDiagnostics
[99/143] Compiling SwiftDiagnostics Message.swift
[100/143] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[101/143] Emitting module SwiftBasicFormat
[102/143] Compiling SwiftBasicFormat BasicFormat.swift
[103/143] Compiling SwiftParser Lexeme.swift
[104/143] Compiling SwiftParser LexemeSequence.swift
[105/143] Compiling SwiftParser Lexer.swift
[106/143] Compiling SwiftParser RegexLiteralLexer.swift
[107/147] Compiling SwiftParser SyntaxUtils.swift
[108/147] Compiling SwiftParser TokenConsumer.swift
[109/147] Compiling SwiftParser TokenPrecedence.swift
[110/147] Compiling SwiftParser TokenSpec.swift
[111/147] Compiling SwiftParser Statements.swift
[112/147] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[113/147] Compiling SwiftParser StringLiterals.swift
[114/147] Compiling SwiftParser SwiftParserCompatibility.swift
[115/147] Compiling SwiftParser UnicodeScalarExtensions.swift
[116/147] Compiling SwiftParser Lookahead.swift
[117/147] Compiling SwiftParser LoopProgressCondition.swift
[118/147] Compiling SwiftParser Modifiers.swift
[119/147] Compiling SwiftParser Parser.swift
[120/147] Compiling SwiftParser Patterns.swift
[121/147] Compiling SwiftParser Recovery.swift
[122/147] Compiling SwiftParser Specifiers.swift
[123/147] Compiling SwiftParser Names.swift
[124/147] Compiling SwiftParser Nominals.swift
[125/147] Compiling SwiftParser Parameters.swift
[126/147] Compiling SwiftParser ParseSourceFile.swift
[127/147] Compiling SwiftParser TokenSpecSet.swift
[128/147] Compiling SwiftParser TopLevel.swift
[129/147] Compiling SwiftParser TriviaParser.swift
[130/147] Compiling SwiftParser Types.swift
[131/147] Compiling SwiftParser Attributes.swift
[132/147] Compiling SwiftParser Availability.swift
[133/147] Compiling SwiftParser CharacterInfo.swift
[134/147] Compiling SwiftParser CollectionNodes+Parsable.swift
[135/147] Compiling SwiftParser Declarations.swift
[136/147] Compiling SwiftParser IsLexerClassified.swift
[137/147] Compiling SwiftParser LayoutNodes+Parsable.swift
[138/147] Compiling SwiftParser Parser+TokenSpecSet.swift
[139/147] Compiling SwiftParser TokenSpecStaticMembers.swift
[140/147] Emitting module SwiftParser
[141/147] Compiling SwiftParser Directives.swift
[142/147] Compiling SwiftParser ExperimentalFeatures.swift
[143/147] Compiling SwiftParser Expressions.swift
[144/147] Compiling SwiftParser IncrementalParseTransition.swift
[145/147] Compiling SwiftParser Cursor.swift
[146/170] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[147/171] Compiling SwiftOperators PrecedenceGraph.swift
[148/171] Compiling SwiftOperators PrecedenceGroup.swift
[149/172] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[150/172] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[151/172] Compiling SwiftOperators SyntaxSynthesis.swift
[152/172] Compiling SwiftParserDiagnostics PresenceUtils.swift
[153/172] Compiling SwiftOperators OperatorTable.swift
[154/172] Compiling SwiftOperators OperatorTable+Semantics.swift
[155/172] Compiling SwiftOperators OperatorTable+Defaults.swift
[156/172] Compiling SwiftOperators OperatorError.swift
[157/172] Compiling SwiftOperators OperatorError+Diagnostics.swift
[158/172] Compiling SwiftOperators OperatorTable+Folding.swift
[159/172] Compiling SwiftOperators Operator.swift
[160/172] Emitting module SwiftOperators
[161/172] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[162/172] Compiling SwiftParserDiagnostics Utils.swift
[163/172] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[164/172] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[165/172] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[166/172] Emitting module SwiftParserDiagnostics
[167/172] Compiling SwiftParserDiagnostics MissingNodesError.swift
[168/172] Compiling SwiftParserDiagnostics MissingTokenError.swift
[169/172] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[170/172] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[171/186] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[172/186] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[173/186] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[174/186] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[175/187] Compiling SwiftSyntaxBuilder Indenter.swift
[176/187] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[177/187] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[178/187] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[179/187] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[180/187] Emitting module SwiftSyntaxBuilder
[181/187] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[182/187] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[183/187] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[184/187] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[185/187] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[186/201] Compiling SwiftSyntaxMacros Macro.swift
[187/201] Compiling SwiftSyntaxMacros MemberMacro.swift
[188/201] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[189/202] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[190/202] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[191/202] Compiling SwiftSyntaxMacros Macro+Format.swift
[192/202] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[193/202] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[194/202] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[195/202] Compiling SwiftSyntaxMacros AccessorMacro.swift
[196/202] Compiling SwiftSyntaxMacros AttachedMacro.swift
[197/202] Emitting module SwiftSyntaxMacros
[198/202] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[199/202] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[200/202] Compiling SwiftSyntaxMacros PeerMacro.swift
[201/210] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[202/210] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[203/210] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[204/210] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[205/210] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[206/210] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[207/210] Emitting module SwiftSyntaxMacroExpansion
[208/210] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[209/217] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[210/217] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[211/217] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[212/217] Emitting module SwiftCompilerPluginMessageHandling
[213/217] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[214/217] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[215/217] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[216/219] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[217/219] Emitting module SwiftCompilerPlugin
[218/222] Compiling Macros Plugin.swift
[219/222] Compiling Macros UsecaseMacro.swift
[220/222] Emitting module Macros
[220/222] Write Objects.LinkFileList
[221/222] Linking Macros-tool
[223/224] Emitting module SwiftUseCaseMacro
[224/224] Compiling SwiftUseCaseMacro SwiftUseCaseMacro.swift
[225/244] Emitting module SwiftUseCase
[226/246] Compiling SwiftUseCase UseCase.swift
[227/246] Compiling SwiftUseCase UseCaseable.swift
[228/246] Compiling SwiftUseCase ThrowingUseCase+Publisher.swift
[229/246] Compiling SwiftUseCase ThrowingUseCase.swift
[230/246] Compiling SwiftUseCase AsyncThrowingUseCase.swift
[231/246] Compiling SwiftUseCase AsyncUseCase+Callbacks.swift
[232/246] Compiling SwiftUseCase AsyncUseCase+Publisher.swift
[233/246] Compiling SwiftUseCase AsyncUseCase.swift
[234/246] Compiling SwiftUseCase Executables.swift
[235/246] Compiling SwiftUseCase ThrowingUseCase+Callbacks.swift
[236/246] Compiling SwiftUseCase AsyncUsecaseable.swift
[237/246] Compiling SwiftUseCase CombineUseCase.swift
[238/246] Compiling SwiftUseCase UseCase+Callbacks.swift
[239/246] Compiling SwiftUseCase UseCase+Publisher.swift
[240/246] Compiling SwiftUseCase AnyUseCase.swift
[241/246] Compiling SwiftUseCase AsyncExecutables.swift
[242/246] Compiling SwiftUseCase AsyncThrowingUseCase+Callbacks.swift
[243/246] Compiling SwiftUseCase AsyncThrowingUseCase+Publisher.swift
[244/246] Compiling SwiftUseCase AnyUseCase+Callbacks.swift
[245/246] Compiling SwiftUseCase AnyUseCase+Combine.swift
[246/246] Compiling SwiftUseCase AnyUseCase+Resolve.swift
[247/277] Compiling SwiftMVI AsyncActionReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncActionReducer.swift:29:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | @discardableResult
28 | func callAsFunction(action: Action, priority: TaskPriority? = nil) -> Task<Void, Never> {
29 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await reduce(action: action)
| | `- note: closure captures non-Sendable 'action'
| `- note: closure captures non-Sendable 'self'
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncIntentReducer.swift:18:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | @discardableResult
17 | func callAsFunction(_ intent: Intent, priority: TaskPriority? = nil) -> Task<Void, Never> {
18 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
19 | await reduce(intent: intent)
| | `- note: closure captures non-Sendable 'intent'
| `- note: closure captures non-Sendable 'self'
20 | }
21 | }
[248/277] Compiling SwiftMVI AsyncEffectReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncActionReducer.swift:29:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | @discardableResult
28 | func callAsFunction(action: Action, priority: TaskPriority? = nil) -> Task<Void, Never> {
29 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await reduce(action: action)
| | `- note: closure captures non-Sendable 'action'
| `- note: closure captures non-Sendable 'self'
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncIntentReducer.swift:18:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | @discardableResult
17 | func callAsFunction(_ intent: Intent, priority: TaskPriority? = nil) -> Task<Void, Never> {
18 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
19 | await reduce(intent: intent)
| | `- note: closure captures non-Sendable 'intent'
| `- note: closure captures non-Sendable 'self'
20 | }
21 | }
[249/277] Compiling SwiftMVI AsyncIntentReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncActionReducer.swift:29:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
27 | @discardableResult
28 | func callAsFunction(action: Action, priority: TaskPriority? = nil) -> Task<Void, Never> {
29 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
30 | await reduce(action: action)
| | `- note: closure captures non-Sendable 'action'
| `- note: closure captures non-Sendable 'self'
31 | }
32 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/AsyncIntentReducer.swift:18:43: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
16 | @discardableResult
17 | func callAsFunction(_ intent: Intent, priority: TaskPriority? = nil) -> Task<Void, Never> {
18 | Task.detached(priority: priority) { [self] in
| `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
19 | await reduce(intent: intent)
| | `- note: closure captures non-Sendable 'intent'
| `- note: closure captures non-Sendable 'self'
20 | }
21 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[250/280] Emitting module SwiftMVI
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:17: error: cannot find type 'SyncUseCase' in scope
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncUseCase' in scope
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:49: error: 'Result' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:64: error: 'Parameter' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:17: error: cannot find type 'SyncUseCase' in scope
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: cannot find type 'SyncUseCase' in scope
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:76: error: 'Result' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:60: error: 'Parameter' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:17: error: cannot find type 'SyncThrowingUseCase' in scope
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:64: error: 'Result' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:79: error: 'Parameter' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:17: error: cannot find type 'SyncThrowingUseCase' in scope
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:91: error: 'Result' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:68: error: 'Parameter' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network.swift:9:23: warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Network {
9 | public static let dataTask: DataTask = .init()
| |- warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dataTask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: note: consider making struct 'DataTask' conform to the 'Sendable' protocol
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- note: consider making struct 'DataTask' conform to the 'Sendable' protocol
12 | public struct Parameter {
13 | let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:38:17: warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public var execute: AsyncThrowingExecutable<Parameter, Result> = { parameter in
20 | class CancellableWrapper {
| `- note: class 'CancellableWrapper' does not conform to the 'Sendable' protocol
21 | var dataTask: URLSessionDataTask?
22 | }
:
36 | }
37 | } onCancel: {
38 | urlSessionTask.dataTask?.cancel()
| `- warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | public struct Parameter {
| `- note: consider making struct 'Parameter' conform to the 'Sendable' protocol
13 | let request: URLRequest
14 | let session: URLSession
[251/280] Compiling SwiftMVI FeatureView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:16:12: note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
14 | private let persistent: Bool
15 |
16 | public init(_ reducer: Reducer, _ path: AnyPath<Reducer.State, Value>, persistent: Bool = false, @ViewBuilder content: @escaping (Value) -> Content) {
| `- note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
17 | self.reducer = reducer
18 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:45:72: warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
9 |
10 | public struct StateReducerView<Content: View, Reducer: ReducibleState, Value>: View {
11 | private let reducer: Reducer
| `- note: property declared here
12 | private let path: AnyPath<Reducer.State, Value>
13 | private let content: (Value) -> Content
:
43 |
44 | public var body: some View {
45 | PublishedPathView(reducer, persistent: persistent, map: { _ in reducer.state }, publisher: reducer.statePublisher, path: path, content: content)
| `- warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| |- warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.path' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
[252/280] Compiling SwiftMVI PublishedPathView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:16:12: note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
14 | private let persistent: Bool
15 |
16 | public init(_ reducer: Reducer, _ path: AnyPath<Reducer.State, Value>, persistent: Bool = false, @ViewBuilder content: @escaping (Value) -> Content) {
| `- note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
17 | self.reducer = reducer
18 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:45:72: warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
9 |
10 | public struct StateReducerView<Content: View, Reducer: ReducibleState, Value>: View {
11 | private let reducer: Reducer
| `- note: property declared here
12 | private let path: AnyPath<Reducer.State, Value>
13 | private let content: (Value) -> Content
:
43 |
44 | public var body: some View {
45 | PublishedPathView(reducer, persistent: persistent, map: { _ in reducer.state }, publisher: reducer.statePublisher, path: path, content: content)
| `- warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| |- warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.path' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
[253/280] Compiling SwiftMVI StateReducerView.swift
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: call to main actor-isolated initializer 'init(_:_:persistent:content:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:16:12: note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
14 | private let persistent: Bool
15 |
16 | public init(_ reducer: Reducer, _ path: AnyPath<Reducer.State, Value>, persistent: Bool = false, @ViewBuilder content: @escaping (Value) -> Content) {
| `- note: calls to initializer 'init(_:_:persistent:content:)' from outside of its actor context are implicitly asynchronous
17 | self.reducer = reducer
18 | self.path = path
/Users/admin/builder/spi-builder-workspace/Sources/Views/StateReducerView.swift:45:72: warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
9 |
10 | public struct StateReducerView<Content: View, Reducer: ReducibleState, Value>: View {
11 | private let reducer: Reducer
| `- note: property declared here
12 | private let path: AnyPath<Reducer.State, Value>
13 | private let content: (Value) -> Content
:
43 |
44 | public var body: some View {
45 | PublishedPathView(reducer, persistent: persistent, map: { _ in reducer.state }, publisher: reducer.statePublisher, path: path, content: content)
| `- warning: main actor-isolated property 'reducer' can not be referenced from a Sendable closure; this is an error in the Swift 6 language mode
46 | }
47 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type 'Self.ReducerType' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| |- warning: sending 'self.path' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self.path' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
20 | body($0)
21 | }
/Users/admin/builder/spi-builder-workspace/Sources/Views/FeatureView.swift:19:9: warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
17 | public extension FeatureView {
18 | var body: some View {
19 | StateReducerView(feature, path) {
| `- warning: sending task-isolated value of type '(Self.Value) -> Self.ReducedView' with later accesses to main actor-isolated context risks causing data races; this is an error in the Swift 6 language mode
20 | body($0)
21 | }
[254/280] Compiling SwiftMVI Transformer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/OptionalValueFeature.swift:23:21: warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public class OptionalValueFeature<Value: Equatable>: IntentReducer & Processing & OptionalReducibleState {
| `- note: consider making generic parameter 'OptionalValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
10 | public typealias State = Value
11 | public var state: State?
:
21 | if newState != state {
22 | state {
23 | newState
| `- warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
[255/280] Compiling SwiftMVI ValuePublisher.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/OptionalValueFeature.swift:23:21: warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public class OptionalValueFeature<Value: Equatable>: IntentReducer & Processing & OptionalReducibleState {
| `- note: consider making generic parameter 'OptionalValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
10 | public typealias State = Value
11 | public var state: State?
:
21 | if newState != state {
22 | state {
23 | newState
| `- warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
[256/280] Compiling SwiftMVI ListFeature.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/OptionalValueFeature.swift:23:21: warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public class OptionalValueFeature<Value: Equatable>: IntentReducer & Processing & OptionalReducibleState {
| `- note: consider making generic parameter 'OptionalValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
10 | public typealias State = Value
11 | public var state: State?
:
21 | if newState != state {
22 | state {
23 | newState
| `- warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
[257/280] Compiling SwiftMVI OptionalValueFeature.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/OptionalValueFeature.swift:23:21: warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
7 | import SwiftUI
8 |
9 | public class OptionalValueFeature<Value: Equatable>: IntentReducer & Processing & OptionalReducibleState {
| `- note: consider making generic parameter 'OptionalValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
10 | public typealias State = Value
11 | public var state: State?
:
21 | if newState != state {
22 | state {
23 | newState
| `- warning: capture of 'newState' with non-sendable type 'OptionalValueFeature<Value>.State?' (aka 'Optional<Value>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | }
25 | }
[258/280] Compiling SwiftMVI Observer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:17: error: cannot find type 'SyncUseCase' in scope
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncUseCase' in scope
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:49: error: 'Result' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:64: error: 'Parameter' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:17: error: cannot find type 'SyncUseCase' in scope
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: cannot find type 'SyncUseCase' in scope
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:76: error: 'Result' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:60: error: 'Parameter' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:17: error: cannot find type 'SyncThrowingUseCase' in scope
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:64: error: 'Result' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:79: error: 'Parameter' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:17: error: cannot find type 'SyncThrowingUseCase' in scope
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:91: error: 'Result' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:68: error: 'Parameter' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:57:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
55 | var binding: Binding<Value> {
56 | Binding { [self] in
57 | get()
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } set: { [self] in
59 | set($0)
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:59:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
57 | get()
58 | } set: { [self] in
59 | set($0)
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[259/280] Compiling SwiftMVI Processing+UseCase.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:17: error: cannot find type 'SyncUseCase' in scope
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncUseCase' in scope
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:49: error: 'Result' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:64: error: 'Parameter' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:17: error: cannot find type 'SyncUseCase' in scope
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: cannot find type 'SyncUseCase' in scope
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:76: error: 'Result' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:60: error: 'Parameter' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:17: error: cannot find type 'SyncThrowingUseCase' in scope
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:64: error: 'Result' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:79: error: 'Parameter' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:17: error: cannot find type 'SyncThrowingUseCase' in scope
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:91: error: 'Result' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:68: error: 'Parameter' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:57:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
55 | var binding: Binding<Value> {
56 | Binding { [self] in
57 | get()
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } set: { [self] in
59 | set($0)
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:59:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
57 | get()
58 | } set: { [self] in
59 | set($0)
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[260/280] Compiling SwiftMVI Processing.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:17: error: cannot find type 'SyncUseCase' in scope
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncUseCase' in scope
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:49: error: 'Result' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:64: error: 'Parameter' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:17: error: cannot find type 'SyncUseCase' in scope
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: cannot find type 'SyncUseCase' in scope
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:76: error: 'Result' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:60: error: 'Parameter' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:17: error: cannot find type 'SyncThrowingUseCase' in scope
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:64: error: 'Result' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:79: error: 'Parameter' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:17: error: cannot find type 'SyncThrowingUseCase' in scope
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:91: error: 'Result' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:68: error: 'Parameter' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:57:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
55 | var binding: Binding<Value> {
56 | Binding { [self] in
57 | get()
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } set: { [self] in
59 | set($0)
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:59:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
57 | get()
58 | } set: { [self] in
59 | set($0)
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[261/280] Compiling SwiftMVI Property.swift
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:17: error: cannot find type 'SyncUseCase' in scope
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncUseCase' in scope
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:49: error: 'Result' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:15:64: error: 'Parameter' is not a member type of type 'U'
13 | /// - usecase: An executable UseCase
14 | /// - Returns: Result of the executed usecase
15 | func run<U: SyncUseCase>(_ usecase: U) -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
16 | return run(usecase, ())
17 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:17: error: cannot find type 'SyncUseCase' in scope
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: cannot find type 'SyncUseCase' in scope
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:76: error: 'Result' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:24:60: error: 'Parameter' is not a member type of type 'U'
22 | /// - usecase: An executable UseCase
23 | /// - Returns: Result of the executed usecase
24 | func run<U: SyncUseCase>(_ usecase: U, _ parameters: U.Parameter) -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
25 | usecase(parameters)
26 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:17: error: cannot find type 'SyncThrowingUseCase' in scope
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:64: error: 'Result' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Result' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:35:79: error: 'Parameter' is not a member type of type 'U'
33 | /// - usecase: An executable UseCase
34 | /// - Returns: Result of the executed usecase
35 | func run<U: SyncThrowingUseCase>(_ usecase: U) throws -> U.Result where U.Parameter == Void {
| `- error: 'Parameter' is not a member type of type 'U'
36 | return try run(usecase, ())
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:17: error: cannot find type 'SyncThrowingUseCase' in scope
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: cannot find type 'SyncThrowingUseCase' in scope
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:91: error: 'Result' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Result' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Processing+UseCase.swift:44:68: error: 'Parameter' is not a member type of type 'U'
42 | /// - usecase: An executable UseCase
43 | /// - Returns: Result of the executed usecase
44 | func run<U: SyncThrowingUseCase>(_ usecase: U, _ parameters: U.Parameter) throws -> U.Result {
| `- error: 'Parameter' is not a member type of type 'U'
45 | try usecase(parameters)
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:57:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
55 | var binding: Binding<Value> {
56 | Binding { [self] in
57 | get()
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
58 | } set: { [self] in
59 | set($0)
/Users/admin/builder/spi-builder-workspace/Sources/Core/Property.swift:59:13: warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 |
10 | /// Feature representation as a property. A property has a setter and getter function with the same type of a value.
11 | public struct Property<Value> {
| `- note: consider making generic struct 'Property' conform to the 'Sendable' protocol
12 | public init(set: @escaping (Value) -> Void, get: @escaping () -> Value) {
13 | self.set = set
:
57 | get()
58 | } set: { [self] in
59 | set($0)
| `- warning: capture of 'self' with non-sendable type 'Property<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
60 | }
61 | }
[262/280] Compiling SwiftMVI IntentReducer.swift
[263/280] Compiling SwiftMVI ReactionReducer.swift
[264/280] Compiling SwiftMVI OptionalReducibleState.swift
[265/280] Compiling SwiftMVI AsyncReactionReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:124:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
122 | .sink { _ in
123 | } receiveValue: {
124 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
125 | cancellable?.cancel()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:139:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
137 | .sink { _ in
138 | } receiveValue: {
139 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
140 | cancellable?.cancel()
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:155:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
153 | .sink { _ in
154 | } receiveValue: {
155 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
156 | cancellable?.cancel()
157 | }
[266/280] Compiling SwiftMVI EffectReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:124:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
122 | .sink { _ in
123 | } receiveValue: {
124 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
125 | cancellable?.cancel()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:139:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
137 | .sink { _ in
138 | } receiveValue: {
139 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
140 | cancellable?.cancel()
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:155:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
153 | .sink { _ in
154 | } receiveValue: {
155 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
156 | cancellable?.cancel()
157 | }
[267/280] Compiling SwiftMVI EventReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:124:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
122 | .sink { _ in
123 | } receiveValue: {
124 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
125 | cancellable?.cancel()
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:139:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
137 | .sink { _ in
138 | } receiveValue: {
139 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
140 | cancellable?.cancel()
141 | }
/Users/admin/builder/spi-builder-workspace/Sources/Reducers/EventReducer.swift:155:34: warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
153 | .sink { _ in
154 | } receiveValue: {
155 | continuation.resume(returning: $0)
| |- warning: sending '$0' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated '$0' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
156 | cancellable?.cancel()
157 | }
[268/280] Compiling SwiftMVI ValueFeature+ViewLifecycle.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/ValueFeature.swift:28:17: warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import SwiftUI
7 |
8 | public class ValueFeature<Value>: ReducibleState {
| `- note: consider making generic parameter 'ValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
9 | public typealias State = Value
10 | public var state: State
:
26 | case let .update(newState):
27 | state {
28 | newState
| `- warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | }
30 | }
[269/280] Compiling SwiftMVI ValueFeature.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/ValueFeature.swift:28:17: warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import SwiftUI
7 |
8 | public class ValueFeature<Value>: ReducibleState {
| `- note: consider making generic parameter 'ValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
9 | public typealias State = Value
10 | public var state: State
:
26 | case let .update(newState):
27 | state {
28 | newState
| `- warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | }
30 | }
[270/280] Compiling SwiftMVI ActionReducer.swift
/Users/admin/builder/spi-builder-workspace/Sources/Modules/ValueFeature.swift:28:17: warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
6 | import SwiftUI
7 |
8 | public class ValueFeature<Value>: ReducibleState {
| `- note: consider making generic parameter 'ValueFeature<Value>.State' (aka 'Value') conform to the 'Sendable' protocol
9 | public typealias State = Value
10 | public var state: State
:
26 | case let .update(newState):
27 | state {
28 | newState
| `- warning: capture of 'newState' with non-sendable type 'ValueFeature<Value>.State' (aka 'Value') in a `@Sendable` closure; this is an error in the Swift 6 language mode
29 | }
30 | }
[271/280] Compiling SwiftMVI AnyPath.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:20:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | var binding: Binding<Value> {
19 | Binding { [self] in
20 | value.get()
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | } set: { [self] in
22 | value.set($0)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:22:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | value.get()
21 | } set: { [self] in
22 | value.set($0)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:39:23: warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
37 | },
38 | get: { [self] in
39 | state != nil
| `- warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
40 | }
41 | )
[272/280] Compiling SwiftMVI Binding.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:20:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | var binding: Binding<Value> {
19 | Binding { [self] in
20 | value.get()
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | } set: { [self] in
22 | value.set($0)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:22:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | value.get()
21 | } set: { [self] in
22 | value.set($0)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:39:23: warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
37 | },
38 | get: { [self] in
39 | state != nil
| `- warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
40 | }
41 | )
[273/280] Compiling SwiftMVI FeatureModule.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:20:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | var binding: Binding<Value> {
19 | Binding { [self] in
20 | value.get()
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | } set: { [self] in
22 | value.set($0)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:22:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | value.get()
21 | } set: { [self] in
22 | value.set($0)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:39:23: warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
37 | },
38 | get: { [self] in
39 | state != nil
| `- warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
40 | }
41 | )
[274/280] Compiling SwiftMVI Modulable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:20:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | var binding: Binding<Value> {
19 | Binding { [self] in
20 | value.get()
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | } set: { [self] in
22 | value.set($0)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:22:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
20 | value.get()
21 | } set: { [self] in
22 | value.set($0)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
23 | }
24 | }
/Users/admin/builder/spi-builder-workspace/Sources/Core/Modulable.swift:39:23: warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
37 | },
38 | get: { [self] in
39 | state != nil
| `- warning: comparing non-optional value of type 'Self.State' to 'nil' always returns true
40 | }
41 | )
[275/280] Compiling SwiftMVI Alert+EventReducer.swift
[276/280] Compiling SwiftMVI Alert+StateReducer.swift
[277/280] Compiling SwiftMVI EventReducerView.swift
[278/280] Compiling SwiftMVI ReducibleState.swift
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network.swift:9:23: warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Network {
9 | public static let dataTask: DataTask = .init()
| |- warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dataTask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: note: consider making struct 'DataTask' conform to the 'Sendable' protocol
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- note: consider making struct 'DataTask' conform to the 'Sendable' protocol
12 | public struct Parameter {
13 | let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:38:17: warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public var execute: AsyncThrowingExecutable<Parameter, Result> = { parameter in
20 | class CancellableWrapper {
| `- note: class 'CancellableWrapper' does not conform to the 'Sendable' protocol
21 | var dataTask: URLSessionDataTask?
22 | }
:
36 | }
37 | } onCancel: {
38 | urlSessionTask.dataTask?.cancel()
| `- warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | public struct Parameter {
| `- note: consider making struct 'Parameter' conform to the 'Sendable' protocol
13 | let request: URLRequest
14 | let session: URLSession
[279/280] Compiling SwiftMVI Network.swift
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network.swift:9:23: warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Network {
9 | public static let dataTask: DataTask = .init()
| |- warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dataTask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: note: consider making struct 'DataTask' conform to the 'Sendable' protocol
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- note: consider making struct 'DataTask' conform to the 'Sendable' protocol
12 | public struct Parameter {
13 | let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:38:17: warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public var execute: AsyncThrowingExecutable<Parameter, Result> = { parameter in
20 | class CancellableWrapper {
| `- note: class 'CancellableWrapper' does not conform to the 'Sendable' protocol
21 | var dataTask: URLSessionDataTask?
22 | }
:
36 | }
37 | } onCancel: {
38 | urlSessionTask.dataTask?.cancel()
| `- warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | public struct Parameter {
| `- note: consider making struct 'Parameter' conform to the 'Sendable' protocol
13 | let request: URLRequest
14 | let session: URLSession
[280/280] Compiling SwiftMVI NetworkDataTask.swift
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network.swift:9:23: warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
7 |
8 | public enum Network {
9 | public static let dataTask: DataTask = .init()
| |- warning: static property 'dataTask' is not concurrency-safe because non-'Sendable' type 'Network.DataTask' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'dataTask' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 | }
11 |
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: note: consider making struct 'DataTask' conform to the 'Sendable' protocol
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- note: consider making struct 'DataTask' conform to the 'Sendable' protocol
12 | public struct Parameter {
13 | let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:38:17: warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 |
19 | public var execute: AsyncThrowingExecutable<Parameter, Result> = { parameter in
20 | class CancellableWrapper {
| `- note: class 'CancellableWrapper' does not conform to the 'Sendable' protocol
21 | var dataTask: URLSessionDataTask?
22 | }
:
36 | }
37 | } onCancel: {
38 | urlSessionTask.dataTask?.cancel()
| `- warning: capture of 'urlSessionTask' with non-sendable type 'CancellableWrapper' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | }
40 | }
/Users/admin/builder/spi-builder-workspace/Sources/Use Cases/Network/NetworkDataTask.swift:11:12: warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
9 | public extension Network {
10 | /// A **DataTask** is an assyncronous usecase that able to download data from internet or throwing an error.
11 | struct DataTask: AsyncThrowingUseCase {
| `- warning: type 'Network.DataTask.Parameter' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
12 | public struct Parameter {
| `- note: consider making struct 'Parameter' conform to the 'Sendable' protocol
13 | let request: URLRequest
14 | let session: URLSession
BUILD FAILURE 6.0 macosSpm