ios - 无法使用 cocoapods 安装 Firebase。它说 "Unable to get local issuer certificate"

标签 ios xcode swift firebase cocoapods

有什么意见或建议吗?我的 pod 文件如下所示:

Uncomment this line to define a global platform for your project

platform :ios, '8.0'

Uncomment this line if you're using Swift

use_frameworks!

target 'ScheduleBuilder' do

pod 'SwiftyJSON', '~> 2.3'

pod 'Firebase', '>= 2.5.0'

end

The error I get when I try to install Firebase with cocoapods.

最佳答案

解决方案是删除并重新安装curl。

如果您使用的是brew,那么它只是:

brew 卸载curl 酿造安装 curl 酿造链接 curl --force

或者

最后,您可以在项目文件夹中使用此解决方案:

echo 不安全 >> ~/.curlrc

关于ios - 无法使用 cocoapods 安装 Firebase。它说 "Unable to get local issuer certificate",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35692158/

相关文章:

ios - 为什么 NSNotificationCenter 可以实现强引用循环而不是 UIView.animateWithDuration?

swift - 在 swift 2 后台运行代码

ios - 如何动态切换屏幕

ios - swift 中 GCDAsyncUDPSocket getHost 的数据类型是什么

ios - 带有 Storyboard的呈现模态 Controller 上的导航栏

iphone - iOS 如何在没有堆栈跟踪的情况下调试崩溃,如 : [__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array?

ios - 搜索并返回 cloudkit 记录的单个字段

ios - 我以某种方式搞砸了 Xcode

ios - Ionic Cordova iOS xxx 不支持预配配置文件 Azure Pipelines

ios - 使用 Xcode storyboard 导致 Xcode 卡住,Interface Builder Cocoa Touch Tool 飙升至 %99