はじめに
ios, macosでビルドしようとしたらたまにこのエラー出て毎回解決方法ググってるので、半ば自分用のメモとして残します。
結論
エラー分
Error: CocoaPods's specs repository is too out-of-date to satisfy dependencies.
To update the CocoaPods specs, run:
pod repo update
Exception: Error running pod install
以下のコマンドを順に実行していくと直ります。
解決策
cd ios(macos) # ←ビルドできない方のディレクトリに移動
rm Podfile.lock
pod install --repo-update
cd ..
flutter clean
flutter run