无法使用 Cocoapod 将 firebase 存储添加到我的 SwiftUI 应用程序

Unable to add firebase storage to my SwiftUI app using Cocoapod

我正在尝试使用 cocoapods 将 firebase 添加到我的 SwiftUI 应用程序。我已经将 'Firebase/Auth' 和 'Firebase/Firestore' 添加到我的播客文件中,一切都很好。但是当我尝试添加 'Firebase/Storage' 时出现错误“CDN: trunk Repo update failed - 31 error(s):”

我尝试了 pod repo remove trunk 然后 pod install 现在即使尝试添加 'Firebase/Auth' 和 'Firebase/Firestore'

也会出现同样的错误

我的 pod 文件

# Uncomment the next line to define a global platform for your project
 platform :ios, '13.0'

target 'SwiftUI-Chat' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for SwiftUI-Chat
pod 'Firebase/Auth'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
end 

错误:

 [!] CDN: trunk Repo update failed - 31 error(s):
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.1/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.2/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.3/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.4/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.5/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.0.6/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK
    CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/3/c/c/FirebaseStorage/1.1.0/FirebaseStorage.podspec.json Response: SSL peer certificate or SSH remote key was not OK

请重试。

这似乎是一个已解决的区域特定问题。更多详情请见 https://github.com/CocoaPods/CocoaPods/issues/9834#issuecomment-636947377