Flutter - 无法通过带有 firebase_code 包的 cocoapods 1.15.2 运行?

问题描述 投票:0回答:1

当我在 flutter 项目上运行 pod update 时,我遇到了这样的问题:

Updating local specs repositories
Analyzing dependencies
firebase_core: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
firebase_messaging: Using Firebase SDK version '10.24.0' defined in 'firebase_core'
[!] CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/0/3/5/Firebase/10.25.0/Firebase.podspec.json Response: SSL peer certificate or SSH remote key was not OK

[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

对此有什么想法吗?

flutter firebase cocoapods
1个回答
0
投票

运行以下命令:

  1. cd ios
  2. pod 仓库删除主干
  3. 吊舱安装
© www.soinside.com 2019 - 2024. All rights reserved.