概要
すでにcocoapodをインストールしてあるのにも関わらず上記のエラーが表示された解決方法のメモです。
環境
- macOS (M1)Sonoma 14
- Android Studio Giraffe |2022.3.1
- Flutter 3.22.3
- Dart 3.4.4
- cocoapod をhomebrew経由でインストール済み
解決した手順
- M1で必要な手順らしい(要らないかも)
sudo arch -x86_64 gem install ffi
arch -x86_64 pod repo update
arch -x86_64 pod install
command + Tab + q などでAndroid Studioを完全に終了させる
以下のコマンドを実行する
open /Applications/Android\ Studio.app
参考
https://qiita.com/tetsukick/items/24ffa82f84682e0066d0
https://hack-it-iron.hatenablog.com/entry/2021/06/09/103729
https://forums.developer.apple.com/forums/thread/699454
https://zenn.dev/hi_okuma/articles/1193c0b5df8a29