I used the command: swift build --product media-generation-kit-cli with the media-generation-kit v1.20260401.0
This produced the error:
media-generation/Sources/MediaGenerationKitCLI/MediaGenerationKitCLI.swift:1707:11: error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1705 | negativePrompt: finalNegativePrompt, 1706 | inputs: generationInputs 1707 | ) { state, _ in | `- error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1708 | switch state { 1709 | case .uploading(let uploaded, let total):
To stop the error, I edited line 1707 to
) { state in
I used the command: swift build --product media-generation-kit-cli with the media-generation-kit v1.20260401.0
This produced the error:
media-generation/Sources/MediaGenerationKitCLI/MediaGenerationKitCLI.swift:1707:11: error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1705 | negativePrompt: finalNegativePrompt, 1706 | inputs: generationInputs 1707 | ) { state, _ in | `- error: contextual closure type '(MediaGenerationPipeline.State) -> Void' expects 1 argument, but 2 were used in closure body 1708 | switch state { 1709 | case .uploading(let uploaded, let total):To stop the error, I edited line 1707 to
) { state in