0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Flutter】開発中にリリースビルドを試す

Posted at

Android/iOS両OSで開発している時に、
開発中のdebugビルドだとうまくいくが、リリースしたアプリだとグレー画面
で表示されることがあった。

その際の知見をまとめておく!

Androidのリリースビルド

以下コマンドを実行

flutter build apk --release

 

apkファイルが以下パスに出力される

build/app/outputs/flutter-apk/app-release.apk

 
作成されたapkファイルを実機にインストールする

flutter install

実機やエミュレータなど接続していたらどの端末にインストールするかの確認が出るので
番号を押下する

iOSのリリースビルド

以下コマンドを実行

flutter build ios --release

ipaファイルが以下パスに出力される


/build/ios/iphoneos/Runner.app

以下流れはAndroidと同じ。

flutter install

を実行して実機にiOSリリースビルドしたipaをインストール

まとめ

開発中のデバッグビルドとリリースビルドで差異がある場合が出てくるとは。。
flutter沼だな。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?