我无法用终端安装firebase pod

时间:2018-05-16 02:49:35

标签: ios firebase terminal install cocoapods

在我的项目中安装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 

1 个答案:

答案 0 :(得分:0)

您的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