Skip to content

Swift Error building media-generation-kit-cli #2

Description

@ekt1701

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions