Hey all!
We’ve received couple of reports of building an xcode project takes too long. This obviously happens because you have a 100% clean environment in each build started, however there are multiple cache approaches you can try.
Caching dependencies
Caching dependencies is an elemental way to save some time in case if bintray or any dependency host has service outages.
- How to cache CocoaPods dependencies
- How to cache Carthage dependencies
- How to cache Xamarin dependencies
Caching build sources
This is where we need to join our power! In some case caching DerivedData and/or temp folders are gives you the expected build time boost, but it won’t help most of the times.
To cache DerivedData the simplest way is to set -derivedDataPath ~/dData
flag in the xcode steps additional flags inputs, then cache ~/dData folder.
For now this thread is open for collecting feedbacks if you have a long build time, and what did you tried already to speed it up and please attach a filtered build log or xcode part of the build log if you can.
Let’s see if someone have a good idea to try!