Open cengit opened 3 years ago
this is because you can't connect to the dl.google.com when installing, but in my case, I can access the .tar file(https://dl.google.com/firebase/ios/analytics/85d51ebb1b58f88f/FirebaseAnalytics-7.0.0.tar.gz) from chrome. so I download it and upload it to a web-server(https://cenday.com/pod/FirebaseAnalytics-7.0.0.tar.gz) for later use.
so my solution is: change the installing source from dl.google.com to cenday.com (my own server, you can setup one yourself)
step by step on how to change the spec source:
pod repo
# result
cocoapods
- Type: git (master)
- URL: https://github.com/CocoaPods/Specs.git
- Path: /Users/YOUR_NAME/.cocoapods/repos/cocoapods # in my case: /Users/cen/.cocoapods/repos/cocoapods
find /Users/cen/.cocoapods/repos/cocoapods/Specs -name FirebaseAnalytics
# result
/Users/cen/.cocoapods/repos/cocoapods/Specs/e/2/1/FirebaseAnalytics
cd /Users/cen/.cocoapods/repos/cocoapods/Specs/e/2/1/FirebaseAnalytics/7.0.0/ # remember open the version folder
// old
{
"source": {
"http": "https://dl.google.com/firebase/ios/analytics/85d51ebb1b58f88f/FirebaseAnalytics-7.0.0.tar.gz"
}
}
// new: you can use any source you can access. { "source": { "http": "https://cenday.com/pod/FirebaseAnalytics-7.0.0.tar.gz" } }
after you completed above steps, goto ios folder and execute:
pod install
you should be good to go!!! cheers
pod install
then below error happens