kubernetes Pod安装错误抖动:CocoaPods找不到pod“Firebase/Messaging”的兼容版本:

zi8p0yeb  于 2022-11-02  发布在  Kubernetes
关注(0)|答案(1)|浏览(218)

我遇到了这个错误,而试图运行pod安装。请我能做些什么来解决这个问题?
请注意,我已经尝试删除podfile.lock,flutter clean,pod更新,pod repo更新,删除ios/pod文件和.symlinks文件夹。这些都不能解决我的问题。请帮助

Analyzing dependencies
firebase_analytics: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_database: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_dynamic_links: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '9.5.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "GoogleAppMeasurement":
  In snapshot (Podfile.lock):
    GoogleAppMeasurement (= 9.5.0)

  In Podfile:
    google_mobile_ads (from `.symlinks/plugins/google_mobile_ads/ios`) was resolved to 2.1.0, which depends on
      Google-Mobile-Ads-SDK (= 8.13.0) was resolved to 8.13.0, which depends on
        GoogleAppMeasurement (< 9.0, >= 7.0)

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * changed the constraints of dependency `GoogleAppMeasurement` inside your development pod `google_mobile_ads`.
   You should run `pod update GoogleAppMeasurement` to apply changes you've made.
mwngjboj

mwngjboj1#

对我有效的解决方案是:
1.我更改了google_移动的_ads:1.1.0从发布规范.yaml到谷歌移动的广告:^2.1.0版本
1.跑扑酒馆
1.在ios文件夹中删除podfile.lock和.symlinks文件夹。
1.运行pod安装,Flutter清洁,然后Flutter运行。
1.它一开始没有运行,我尝试pod安装--repo-update和flutter再次运行. Boom我的构建成功了

相关问题