LoginSignup
23
10

More than 3 years have passed since last update.

pod install するとCocoaPods could not find compatible versions for pod "cloud_firestore" のエラー

Last updated at Posted at 2021-03-21

背景

上記のチュートリアルに取り組む中、pod install をしたところ、次のエラーが出ました。

 [!] CocoaPods could not find compatible versions for pod "cloud_firestore":
  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)

Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target. 

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

原因

パッケージの cloud_firestore のバージョンに対して、platformのiOSのバージョンが低いということを言っています。

解決

platformのバージョンを指定しているPodfileを編集します。Podfileの一番上です。
以下のようにデフォルトではバージョンが9.0に設定されており、コメントアウトされています。

# Uncomment this line to define a global platform for your project
#platform :ios, '9.0'

書いてある通り、バージョンを上げてコメントを無効にします。

# Uncomment this line to define a global platform for your project
platform :ios, '10.6'

現時点(2021/3/21)ではiOSのデフォルトが10.6と書いてあるので、従いました。

以上で、

pod install

がうまくいきました。

23
10
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
23
10