We retrieve cached Cocoapods specs, as recommended, with the following shell command:
curl -sS https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash
Last week I ran a build and it failed because one of my podspecs was not yet in the cached repo - it had been published just that day. I reran my build at a later time and it passed, presumably because the cache had been updated from the master Cocoapods repo with the podspec I needed.
What is the best practice to avoid such failures in the future? Should I use the --repo-update option when I do my pod install, to get the latest specs that aren’t yet in the cache, or is there a better way?
(Also, just for my curiosity, how frequently is CircleCI’s podspec cache updated from the master repo?)