简体   繁体   English

CocoaPods 找不到 pod“FirebaseFirestore”的兼容版本:

[英]CocoaPods could not find compatible versions for pod "FirebaseFirestore":

I have a problem that I cannot seem to resolve.我有一个似乎无法解决的问题。 I have tried all of the solutions listed here previously, but nothing is resolving the error.我已经尝试过这里之前列出的所有解决方案,但没有任何方法可以解决错误。 I am building an app using Flutterflow.io, which is a low-code platform.我正在使用 Flutterflow.io 构建一个应用程序,这是一个低代码平台。 Everything has worked great for a local iOS build using Andriod Studio up to today (Andriod build is still working), but now the CocoasPods and Firebase are not connecting.到目前为止,对于使用 Andriod Studio 的本地 iOS 构建,一切都运行良好(Andriod 构建仍在工作),但现在 CocoasPods 和 Firebase 没有连接。 Any help would be greatly appreciated!任何帮助将不胜感激!

[!] CocoaPods could not find compatible versions for pod "FirebaseFirestore":

In Podfile: FirebaseFirestore (from https://github.com/invertase/firestore-ios-sdk-frameworks.git , tag 8.6.0 )在 Podfile 中:FirebaseFirestore(来自https://github.com/invertase/firestore-ios-sdk-frameworks.git ,标签8.6.0

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

I also receive this message from the run mode.我也从运行模式收到此消息。

"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 Firebase/Auth inside your development pod firebase_auth . You should run pod update Firebase/Auth to apply changes you've made." “您有:* 过时的源代码库,您可以使用pod repo updatepod install --repo-update 。* 更改了开发 pod firebase_auth中依赖Firebase/Auth的约束。您应该运行pod update Firebase/Auth以应用您所做的更改。”

I have tried updating the pods, the repo, run pod update Firebase/Auth , and delete the podfile.lock folder, but to no avail.我尝试更新 pod、repo、运行pod update Firebase/Auth并删除 podfile.lock 文件夹,但无济于事。 Everything seems to point to the same issue with the Pods and Firestore not communicating.一切似乎都指向同一个问题,即 Pod 和 Firestore 无法通信。 I apologize for my lack of expertise as I am new to any type of computer programming.对于我缺乏专业知识,我深表歉意,因为我对任何类型的计算机编程都是陌生的。

Worked for me with this fix:通过此修复为我工作:

  1. Go to /ios folder inside your Project. Go 到项目中的/ios文件夹。

  2. Delete Podfile.lock ( YourProject/ios/Podfile.lock ) if you haven't.如果还没有,请删除Podfile.lock ( YourProject/ios/Podfile.lock )。

  3. Open your Podfile , also in your ios/ folder.打开你的Podfile ,也在你的ios/文件夹中。

  4. Locate this bit:找到这个位:

target 'Runner' do
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
  1. Change the tag => '8.6.0' to tag => '8.5.0'tag => '8.6.0'更改为tag => '8.5.0'
  2. Run pod install again.再次运行pod install Make sure you are inside the ios/ folder.确保你在ios/文件夹中。 ( cd ios ) ( cd ios )

Then try flutter run again outside the ios folder, and should run.然后尝试flutter run ,应该可以运行。

Hope this helps with the Firestore issue.希望这有助于解决 Firestore 问题。

2022 2022年

in <project folder>/ios/Podfile Change tag to 8.15.0

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

Apply same code inside pod file in ios folder of flutter在 flutter 的 ios 文件夹中的 pod 文件中应用相同的代码

  target 'Runner' do
  use_frameworks!
  use_modular_headers!
  pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.9.1'
  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 CocoaPods 在 Flutter 项目中找不到 pod“FirebaseCore”的兼容版本 - CocoaPods could not find compatible versions for pod "FirebaseCore" in Flutter Project CocoaPods 找不到 pod“Firebase/Everything”的兼容版本 - CocoaPods could not find compatible versions for pod "Firebase/Everything" CocoaPods 找不到 pod“GTMSessionFetcher/Core”的兼容版本 - CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core" CocoaPods 找不到 pod“Firebase/Database”的兼容版本 [Geofire 问题] - CocoaPods could not find compatible versions for pod "Firebase/Database" [Geofire issue] CocoaPods 找不到 pod“Firebase/CoreOnly”的兼容版本 - CocoaPods could not find compatible versions for pod "Firebase/CoreOnly" CocoaPods 找不到 pod“Firebase/Auth”的兼容版本: - CocoaPods could not find compatible versions for pod "Firebase/Auth": CocoaPods 找不到 pod“FirebaseCore”的兼容版本:为 flutter iOS 构建运行 pod 安装时出错 - CocoaPods could not find compatible versions for pod "FirebaseCore" : error on running pod install for flutter iOS build CocoaPods 找不到 pod“Firebase/Core”的兼容版本 | cloud_firestore,Flutter - CocoaPods could not find compatible versions for pod "Firebase/Core” | cloud_firestore, Flutter React-native iOS:Cocoapods 找不到 pod“Firebase/CoreOnly”、“Google-Maps-iOS-Utils”和“GoogleMaps”的兼容版本 - React-native iOS : Cocoapods could not find compatible version for pod "Firebase/CoreOnly","Google-Maps-iOS-Utils" & "GoogleMaps" 错误:无法在任何存储库中找到有效的 gem 'cocoapods' (&gt;= 0) - ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM