简体   繁体   English

我无法在 iOS 中安装 FireStore pod

[英]I can't install FireStore pod in iOS

I can't install FireStore pod in iOS.我无法在 iOS 中安装 FireStore pod。

 1. [:] CDN: trunk Repo update failed - 2 error(s): CDN: trunk URL couldn't be downloaded: https.//cdn.jsdelivr.net/cocoa/Specs/4/3/f/FirebaseFirestoreSwift/0.2/FirebaseFirestoreSwift.podspec:json Response: Timeout was reached CDN: trunk URL couldn't be downloaded: https.//cdn.jsdelivr.net/cocoa/Specs/4/3/f/FirebaseFirestoreSwift/0.3.0/FirebaseFirestoreSwift.podspec:json Response: Timeout was reached

and this error too还有这个错误

Analyzing dependencies [:] CocoaPods could not find compatible versions for pod "nanopb". In snapshot (Podfile:lock). nanopb (= 1.30905,0. ~> 1.30905:0) In Podfile. FireStore was resolved to 1.0,0. which depends on FirebaseFirestore (~> 0.14) was resolved to 0.16,1. which depends on nanopb (~> 0.3.8) Firebase/Auth was resolved to 6.29,0. which depends on Firebase/CoreOnly (= 6.29.0) was resolved to 6.29,0. which depends on FirebaseCore (= 6.9.2) was resolved to 6.9,2. which depends on FirebaseCoreDiagnostics (~> 1.3) was resolved to 1.5,0. which depends on nanopb (~> 1.30905.0)

Running these commands solved it for me:运行这些命令为我解决了它:

  1. pod repo remove trunk
  2. pod install

pod update might resolve. pod update可能会解决。

If not, examine the generated Podfile.lock to see why FirebaseFirestore is restricted to a very old version.如果不是,请检查生成的Podfile.lock以了解为什么 FirebaseFirestore 被限制为非常旧的版本。

This solved my problem:这解决了我的问题:

pod repo update --verbose

I also got this Response: Timeout was reached error.我也收到了这个Response: Timeout was reached错误。 The solution for me was to connect to a VPN, using an American server (sitting in Germany).我的解决方案是使用美国服务器(位于德国)连接到 VPN。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM