Skip to content

Conversation

@noblebuildsai
Copy link

Problem

When creating a Flutter project using:
get create project:"my cool project"

the CLI was passing -i swift -a kotlin to flutter create, which caused the
following error:

The "ios-language" option is only supported for "--template=plugin"

Solution

Removed the -i and -a flags from the flutter create command because:

  • These flags are only supported for plugin templates (--template=plugin)
  • For regular Flutter projects, Flutter already defaults to Swift and Kotlin
  • Passing these flags was unnecessary and caused project creation to fail

Testing

  • Tested locally by creating a project with spaces in the name
  • Project creation now succeeds without errors
  • Flutter still uses Swift/Kotlin by default (as expected)

The -i (ios-language) and -a (android-language) flags are only supported for plugin templates, not regular Flutter projects.

This was causing the error: The ios-language option is only supported for --template=plugin.

Flutter uses Swift/Kotlin by default for regular projects, so these flags are not needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant