iOS Builds slow, any solution to speed it up?

Are these caching improvements available yet?

Hi!

It is still under closed beta testing!

Hi,

How do we sign up to try the new macs?

Hi @salman.muhammad! The discussion above isn’t about new hardware but a brand-new caching system for Xcode being developed by us :slight_smile: This is in closed beta at the moment, so there is no way to publicly apply at the moment :frowning: In case you need more build time in general, make sure to contact us on our on-site chat so we can take a look at your workflows and see what could be improved.

Thanks We upgraded to Elite and builds are much faster

So my cache is huge (~2GB) because of react-native and such.
I noticed that cache:push required at one point >15 minutes!
The build time basically shifted from yarn/pod installation to cache push.

Is the bandwidth restricted on the servers? I would argue that pushing things from one server to another should have the upload speed of a private home…?

Hey @EyMaddis,

Please check if you have compression enabled in your Cache Push step. Compression makes caching slower in some setups (eg. if you have many small files cached).

Compression is set to false. I wonder whether it is smarter to cache the internal yarn package cache instead of node_modules (which are already .t.gz files, I think)

Here an example how to reduce iOS build times with about 80% by caching build pods:

Amount of code in pods can be huge. Pods don’t change often. On CI, all pods are compiled over and over again, which is very time intensive. What if we compile Pods once and use the result over and over again? This repo contains a demo how to accomplish this.