Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when trying to install Firebase with pod relative to nanopb

I'm trying to install Firebase in my swift application with Cocoapod like this :

pod 'Firebase/Core'
pod 'Firebase/Messaging'

But got an error when i'm processing the pod install :

[!] Error installing nanopb
[!] /usr/bin/curl -f -L -o /var/folders/82/qk0yjdtx5xl0hnzsk2s2h30h0000gn/T/d20170722-19429-tm6t4q/file.tgz http://koti.kapsi.fi/~jpa/nanopb/download/nanopb-0.3.8.tar.gz --create-dirs --netrc-optional

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   330  100   330    0     0   1941      0 --:--:-- --:--:-- --:--:--  1952
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 503 Service Unavailable

Just the server down ? or am I missing something Is there an other way to do without nanopb ?

like image 996
Lucas78 Avatar asked Jul 22 '17 10:07

Lucas78


3 Answers

According to https://github.com/CocoaPods/Specs/blob/master/Specs/8/b/d/FirebaseCore/4.0.4/FirebaseCore.podspec.json, nanopb is added in dependencies on FirebaseCore 4.0.4.

But nanopb server is not working now.(http://jpa.kapsi.fi/nanopb/download/nanopb-0.3.8.tar.gz).

So you should specify Firebase/Core version to 4.0.3.

pod 'Firebase/Core', '4.0.3'
like image 166
Dongjin Suh Avatar answered Nov 05 '22 15:11

Dongjin Suh


I finally add

pod 'Firebase', '4.0.3'

this resolve the problem

like image 20
Lucas78 Avatar answered Nov 05 '22 14:11

Lucas78


yes! so if you retry later, it should work.

Since it is a public repo, an address like https://github.com/CocoaPods/Specs.git.

enter image description here

like image 26
Nazmul Hasan Avatar answered Nov 05 '22 15:11

Nazmul Hasan