# Is downloading cocoapods from S3 still advantageous?

**URL:** <https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890>\
**Category:** Mobile\
**Tags:** cocoapods, ios\
**Created:** [October 14, 2019, 1:39pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890 "2019-10-14T13:39:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeroHerkenrath](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GeroHerkenrath](https://discuss.circleci.com/u/GeroHerkenrath)\
**Post date:** [October 14, 2019, 1:39pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/1 "2019-10-14T13:39:24Z")

</div>

Hello everyone!

Since cocoapods 1.8 the pod tool uses the CDN instead of git to resolve and download pods. Locally I’ve already seen that this is a lot faster than it was in the past (no surprise there).

On CircleCI I am currently still using the small helper script that loads a clone of the repo from S3 (see [here](https://discuss.circleci.com/t/downloading-cocoapods-from-s3-in-projects-with-manual-configuration/8732) ). That had also been a great help in the past, but I am wondering whether it’s still useful now? Unpacking that repo takes quite a lot of time, so perhaps skipping it and relying on the CDN alone is better?

I’m pretty sure that’s the case, but wanted to know either some sort of official statement/advice or experience reports by others.

Thanks in advance!

- Gero

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [October 14, 2019, 1:46pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/2 "2019-10-14T13:46:26Z")

</div>

Hi Gero,

This is news to me, I have not been keeping too close an eye on Cocoapods development. This does sound like an improvement.

Our helper script downloads a nightly snapshot of the Cocoapods repo and stores it as a tarball on S3. When we download it into the build, the download is very fast (it takes seconds) and then extracting the tarball takes the vast majority of the time – extracting 200,000 small files from a tarball takes a long time, even locally for me a very high-end 2018 MBP.

I’ll make a JIRA for our team to look into the new release of Cocoapods and make whatever changes are necessary on our end to support/document/advertise the new distribution mechanism.

Marc

---

<div class="post-metadata">

**Author:** ![marc](https://sea2.discourse-cdn.com/circleci/user_avatar/discuss.circleci.com/marc/32/835_2.png) [@marc](https://discuss.circleci.com/u/marc)\
**Post date:** [October 14, 2019, 1:57pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/3 "2019-10-14T13:57:51Z")

</div>

Logged as CIRCLE-21789

---

<div class="post-metadata">

**Author:** ![GeroHerkenrath](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GeroHerkenrath](https://discuss.circleci.com/u/GeroHerkenrath)\
**Post date:** [October 14, 2019, 2:02pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/4 "2019-10-14T14:02:20Z")

</div>

Hi Marc,

I know, you can actually see that it just takes the time to extracts the data, the download is very fast. Even with that unpacking time it was obviously a great help already, I really appreciated (and still appreciate) the idea. I just wanted to give a heads-up about the CDN update. I would have tried it myself on the side of a feature, but atm it’s not a good time for me to do so because of some inter-project-related stuff. Besides, I obviously can’t update your docs, so hence the ping. 🙂

Thanks for putting this on your radar!

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [November 26, 2019, 11:31am UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/5 "2019-11-26T11:31:20Z")

</div>

Hey Gero,

Just wanted to provide an update on this. We have made some changes to our docs and now suggest the use of 1.8 with the CDN. In our testing it does appear faster and also less cumbersome to use!

Check out the new best practises documentation here: [https://circleci.com/docs/2.0/testing-ios/#best-practices](https://circleci.com/docs/2.0/testing-ios/#best-practices)

If you have any feedback for us, please do let us know!

---

<div class="post-metadata">

**Author:** ![GeroHerkenrath](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GeroHerkenrath](https://discuss.circleci.com/u/GeroHerkenrath)\
**Post date:** [December 3, 2019, 12:35pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/6 "2019-12-03T12:35:40Z")

</div>

Thanks a lot! I am at the moment unfortunately busy with another (non-iOS) project, but I will change my pipeline eventually and let you know should I encounter any problems.

Thank you for looking into this and even updating your best practices/recommendations! 🙂

- Gero

---

<div class="post-metadata">

**Author:** ![GeroHerkenrath](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GeroHerkenrath](https://discuss.circleci.com/u/GeroHerkenrath)\
**Post date:** [January 21, 2020, 10:40am UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/7 "2020-01-21T10:40:30Z")

</div>

Hey, just a short update: This change is awesome. While getting the specs repo in the past took over 4 minutes using the CDN now takes about one and a half. And if you cache the pods (or check them into version control, which I myself cannot do for various reasons) it’s even faster (less than half a minute).

Thanks for the great work, CircleCI team! 🙂

---

<div class="post-metadata">

**Author:** ![bytesguy](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bytesguy](https://discuss.circleci.com/u/bytesguy)\
**Post date:** [February 11, 2020, 3:03pm UTC](https://discuss.circleci.com/t/is-downloading-cocoapods-from-s3-still-advantageous/32890/8 "2020-02-11T15:03:39Z")

</div>

Hey Gero, glad to hear you are seeing an improvement in the job speed!
