Based on what we’ve found to be popular opinion (Best practice for use of cached Cocoapods specs), we download cocoapods pods spec using this line:
curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
We are finding that recently, just the download (and perhaps the expanding) of the pod specs has been taking over 10 minutes resulting in the build errors of the form:
#!/bin/bash --login -o pipefail curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf cd ios && bundle exec pod install && cd - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1588 100 1588 0 0 29407 0 --:--:-- --:--:-- --:--:-- 29407 Downloading CocoaPods master repo from https://cocoapods-specs.circleci.com... Too long with no output (exceeded 10m0s): context deadline exceeded
This seems a bit over the top. It downloads to my laptop in less that 1 min. Perhaps some more time for decompressing. Seems like a fail on circlecis ability to deal with the pod spec. Is there a recommendation on how to mitigate this issue? It’s just eating into my build time and costing money. On a good day, the same build works in less than 5 min.