OGeek|极客世界-中国程序员成长平台

标题: ios - 我无法使用终端安装 firebase pod [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 20:09
标题: ios - 我无法使用终端安装 firebase pod

在我的项目中安装 Firebase/Core 时,我的终端出现红色错误。我可以安装其他 pod,例如 SwiftyJSON,但我无法使用 Firebase 来安装!谁能帮帮我?!

[!] Error installing Firebase
[!] /usr/bin/curl -f -L -o /var/folders/g5/fqsn7z4d25s2kc7ycblfgnn40000gn/T/d20180516-4404-1t05mp4/file.tgz https://dl.google.com/dl/cpdc/c84ce83f9f8217ed/Firebase-5.0.1.tar.gz --create-dirs --netrc-optional

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
curl: (22) The requested URL returned error: 404 



Best Answer-推荐答案


您的 podfile 应如下所示

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

target ‘yourProjectName’ do
  # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for yourProjectName

pod 'SwiftyJSON’
pod 'Firebase/Core'

end

关于ios - 我无法使用终端安装 firebase pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50361779/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4