概要
Flutter初心者です。環境構築で詰まったのでメモ書き。
FlutterのプロジェクトをGitHubからcloneしてきた際、環境構築の手順としては
まずfirebaseと連携するために
flutterfire configure
pubspec.yamlファイルに記述されているパッケージをダウンロード・インストールするため
flutter pub get
flutter run
でエラー
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Error running pod install
Error launching application on iPhone 13 Pro Max.
対処
iosフォルダにあるPodfileとPodfile.lockを削除する。
プロジェクトフォルダにて下記コマンドを実行
flutter clean
iosフォルダで
cd ios
pod repo update
最後プロジェクトフォルダにて
flutter run
以上でiosは動いた。