FlutterアプリをiOSの実機で動かすときに途中で落ちる
Launching lib/main_development.dart on ○○のiPhone in debug mode...
main_development.dart:1
Automatically signing iOS for device deployment using specified development team in Xcode project: aaaaaaaaaa
Xcode build done. 72.8s
(lldb) warning: libobjc.A.dylib is being read from process memory. This indicates that LLDB could not find the on-disk shared cache for this device. This will likely reduce debugging performance.
iOS Observatory not discovered after 30 seconds. This is taking much longer than expected...
process interrupt
error: Failed to halt process: Halt timed out. State = running
Error launching application on ○○のiPhone.
Exited
上記のようなエラーが出てくる場合はキャッシュが悪さをしている。対応策としては下記。
iPhoneの再起動
Flutterのクリーンと再ビルド
flutter clean
flutter pub get
flutter run
Xcodeプロジェクトのクリーン
xcodeでFlutterのiosプロジェクトを開いて、Product > Clean Build Folder
Xcodeのバージョンアップ
iOSのバージョンアップ後など、これでハマりがち。
Cocoapodsのアップデート
sudo gem install cocoapods
#Flutter
#ios
#トラブル
#技術メモ
public.icon