Reigle 技術ブログ


Apple Silicon (M1) の pod installできない問題の修正、pod installの方法



M1 Macにて、pod installを実行した際に、以下のエラーが発生します。

firebase_core: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "Firebase/CoreOnly":
  In Podfile:
    firebase_core (from `.symlinks/plugins/firebase_core/ios`) was resolved to 1.23.0, which depends on
      Firebase/CoreOnly (= 9.5.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/CoreOnly (= 9.5.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

M1 Macでのpod install方法


sudo arch -x86_64 gem install cocoapods
sudo arch -x86_64 gem install ffi

以下でpod installを実行することで、エラーなくインストールが完了します。

arch -x86_64 pod install