Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I build only build release mode framework in flutter?

I create a fluter module and I want to build it into framework. I use command:

flutter build ios-framework

everything works fine, I got debug ,profile,release 3 modes content. To save time, can I only build release mode? flutter build ios-framework --release not work.

Thanks!

like image 950
user17889964 Avatar asked Nov 17 '25 14:11

user17889964


1 Answers

You can find some useful option when you use flutter build ios-framework -h

...

 --[no-]debug                     Whether to produce a framework for the debug build configuration. By default, all build configurations are built.
                                     (defaults to on)
 --[no-]profile                   Whether to produce a framework for the profile build configuration. By default, all build configurations are built.
                                     (defaults to on)
 --[no-]release                   Whether to produce a framework for the release build configuration. By default, all build configurations are built.
                                     (defaults to on)
...

So, you can use flutter build ios-framework --no-debug --no-profile to produce frameworks just for release mode

like image 200
HanleyLee Avatar answered Nov 19 '25 09:11

HanleyLee



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!