How to save time when using circleci with cocoapods

Theodore Gonzalez
WanderCodes
Published in
1 min readJan 5, 2020

When using pods with circleci, the circleci team recommends to check in your pods in the repo.

However, most people doesn’t like it because it will take a huge space in your repo. So caching is my preferred solution.

First step is to restore cache.

Second step, if cache is not found, update the pods repo from circleci mirror and install pods. This step takes around 5 minutes so you better skip it if unnecessary.

Third step, save cache if key is still not occupied.

Note that the cache lives for 30 days. So if you are still not satisfied, save it in s3 which you will use once every 30 days.

--

--