はじめに
flutterから実機確認~iOSの審査までを行なったので、覚書です。
2回目以降は早そうですが、1度目なので、ちょいハマりました...。合わせてまとめてます。
1.試しに、build iosしてみると...
$flutter build ios
...と怒られる。
2.Provisioning Profileを入れる
Runnerというプロジェクトファイルを開く
iOS developerの方の操作は、割愛。
いつものようにAppIDを作って、デバイスを登録して、ProvisioningProfileを作って、登録する流れ。
3.気を取り直して、再度build ios
$flutter build ios
4.実機にinstall
実機をUSBで接続して、
$flutter decices
するがデバイスが見つからず...
$flutter doctor
すると...
iOS toolchai関連がごっそり抜けてた....
ので上から順番に実行。
brew update 〜 brew install ios-deploy
無事見つかった。
$flutter install
すると無事実機にinstall完了。
そのほか Firebaseを利用していた場合..
Unhandled Exception: PlatformException(google_sign_in, Your app is missing support for the following URL schemes: com.googleusercontent.apps.xxxxx
->
Runner.xcworkspaceを開く
REVERSED_CLIENT_IDの中身をRunner->URLType(1)のURLSchemesに入れる