LoginSignup
0
0

More than 1 year has passed since last update.

【Flutter】【Firebase】CocoaPods could not find compatible versions for pod "FirebaseFirestore": の解決法

Last updated at Posted at 2022-09-04

Flutterの環境構築を進めていく上でFirebaseの追加作業をしている途中でビルドが通らない事態に。

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":
  In Podfile:
    FirebaseFirestore (from `https://github.com/invertase/firestore-ios-sdk-frameworks.git`, tag `9.3.0`)

    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`) was resolved to 3.4.6, which depends on
      Firebase/Firestore (= 9.4.0) was resolved to 9.4.0, which depends on
        FirebaseFirestore (~> 9.4.0)

どうやら元々のバージョンが古いためエラーが発生した模様。

pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '9.3.0'

Podfileにて
記述の通りにバージョンを[9.3.0]の部分を[9.4.0]に書き換えるとビルドが通るようになりました。
今回のようなエラーが出た場合は既存のバージョンを指定のバージョンにアップデートするとビルドが通るかもしれません。参考の程に。

0
0
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
0
0