website icon indicating copy to clipboard operation
website copied to clipboard

flutter build <DIRECTORY> doesn't use <DIRECTORY>

Open zzzjim opened this issue 8 months ago • 3 comments

Page URL

https://docs.flutter.dev/reference/flutter-cli/

Page source

https://github.com/flutter/website/tree/main/src/content/reference/flutter-cli.md

Describe the problem

flutter create --platforms=ios my_app flutter build ios-framework ./my_app Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.

Tried we also flutter create --platforms=web my_app flutter build web ./my_app/ Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project.

Expected fix

Either remove <DIRECTORY> from documentation or fix tools to change into the directory specified.

Additional context

No response

I would like to fix this problem.

  • [ ] I will try and fix this problem on docs.flutter.dev.

zzzjim avatar Feb 24 '25 18:02 zzzjim