Hi,
in order to speed up the build time, I would like to use the cache to store derived data.
I managed to set everything up.
set a specific folder to use as derived data folder
build
push out derived data folder (using push cache step)
then the second time
pull the cache
set the same specific folder as derived data
build
the problem is that the second time, the process is not faster since xcodebuild rebuild again (almost) everything.
But it seems that everything should work, and actually some of the steps the second time are skipped (because itâs using the information included in the derived data).
I tested the same configuration on my local machine and the second time nothing get builds (as expected) and the build is much faster.
Is that because every time we use a different virtual machine?
Weâll soon work on caching, will check this too and reply here once we found the right config/balance for DerivedData (which changes in every build).
You can configure it manually (the whole cache can be configured manually) if you want to, but no automatic caching for DerivedData yet (mainly because it can cause tons of issues if there are files from a previous, completely unrelated build -
e.g. if the previous cache contained files from a different Xcode/Swift version).
No update on this AFAIK. Keeping xcode cache files while it has to work in a continuously changing environment(new vm instance per build started) still causes unlimited edge-cases.
Weâve been trying to make it work, but without any success for now. The issue is 3 years old so maybe Xcodeâs build system has changed for the better in the meantime.