Skip to content

Conversation

@lordvins226
Copy link

Issue

Starting with Flutter 3.35+, the --ios-language flag is only supported for plugin templates. Passing this flag to other template types (app, module, package) causes the generator to fail with an error.

Failing Command

flutter create --project-name=ui_atom --org=com.example --android-language=kotlin --ios-language=swift --template=module libs/ui/ui-atom

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

Fix

This PR restricts the --ios-language flag to only be included when generating plugin templates. For all other templates (app, module, package), the flag is now excluded from the Flutter create command.

The fix also updates the interactive prompts to only ask for iOS language selection when the user is creating a plugin template.

Test Plan

Tested with all template types to verify that only plugin templates include the --ios-language flag in the generated Flutter create command.

@sonarqubecloud
Copy link

@lordvins226
Copy link
Author

Hi @tinesoft . This PR fixes a compatibility issue with Flutter 3.35+ where the --ios-language flag was causing errors for non-plugin templates. Would appreciate a review when you have a chance. Thanks!

@nx-cloud
Copy link

nx-cloud bot commented Oct 12, 2025

View your CI Pipeline Execution ↗ for commit 7648cb4

Command Status Duration Result
nx run-many -t lint test build ✅ Succeeded 1m 14s View ↗

☁️ Nx Cloud last updated this comment at 2025-10-12 03:40:13 UTC

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