[英]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 update
或pod 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:通过此修复为我工作:
Go to /ios
folder inside your Project. Go 到项目中的
/ios
文件夹。
Delete Podfile.lock
( YourProject/ios/Podfile.lock
) if you haven't.如果还没有,请删除
Podfile.lock
( YourProject/ios/Podfile.lock
)。
Open your Podfile
, also in your ios/
folder.打开你的
Podfile
,也在你的ios/
文件夹中。
Locate this bit:找到这个位:
target 'Runner' do
pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => '8.6.0'
tag => '8.6.0'
to tag => '8.5.0'
tag => '8.6.0'
更改为tag => '8.5.0'
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.