I have Android Studio with Flutter plugin installed.
Flutter SDK is also installed on my Mac through Android Studio and I know path to it.
I want to run my app in release mode on real iOS device. Not only to hide "slow mode" banner that can be done using this code as I know
new MaterialApp(
debugShowCheckedModeBanner: false,
...
but also to check how my app works.
I found this instructions https://flutter.io/ios-release/ but still can't build app in release mode.
Each time I try to run flutter command in terminal, I got:
flutter: command not found
I think that it is because I had installed Flutter SDK from Android Studio and I should update some pathes.
So what are my steps to build flutter app in release mode using Xcode?
Best Answer
Even after running
flutter build ios
, Xcode always ran the Debug version (slow mode).To solve this, I had to change the Build Configuration of the Run schema:
Hoping this is helpful.