Swift CocoaPods could not find対処方法

Pocket

pod installを実行して CocoaPods could not find compatible versions for pod “Firebase/Analytics”が出た場合の対処方法

Analyzing dependencies
Adding spec repo trunk with CDN https://cdn.cocoapods.org/
[!] CocoaPods could not find compatible versions for pod “Firebase/Analytics”:
  In snapshot (Podfile.lock):
    Firebase/Analytics (= 6.7.0)
 
  In Podfile:
    Firebase/Analytics
 
None of your spec sources contain a spec satisfying the dependencies: Firebase/Analytics, Firebase/Analytics (= 6.7.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.

リポジトリが「out-of-date」古いから更新しろと書いているので下記を実行する

pod repo update
pod install –repo-update

再度下記を実行する

pod deintegrate
pod install

2022 MJELD TECHNOLOGIES. ALL RIGHTS RESERVED