LoginSignup
7
3

More than 1 year has passed since last update.

Flutter pod install エラー

Last updated at Posted at 2022-01-09

Exception: Error running pod install

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

iOSビルド時のエラー。dependencies updateすると発生することが多い。
クリーンしてうまくいくときもあれば、そうでない場合もあったが、これやっとけば正解な手順がわかったのでメモ。

手順

  1. cd ios
  2. ios/Pods/ios/Podfile ios/Podfile.lock手動で削除
  3. flutter run
  4. 必要ならば、sudo arch -x86_64 gem install ffi 一度やればよい
  5. arch -x86_64 pod install --repo-update
  6. flutter clean
  7. flutter run
7
3
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
7
3