Avoid rebuild of pods


Our project use some pods that take a lot of time to build each time we launch an archiving. How can we avoid this task to save time, if pods haven’t changed between builds? We’ve tried to cache pods (pulling before install, pushing at the end of the workflow) but it doesn’t work because compiled frameworks are saved on temp directories.


In general, if you know where the directory is located, you can configure it with the Build Cache.

An important note for Swift though: if you have a framework built with Swift version X, that won’t work with Swift version Y, so you have to make sure that if you switch between Swift (Xcode) versions you have to clear / ignore the cache somehow. This mechanism is built into the Carthage step, as there we had to implement caching in the step due to lack of built in cache support in carthage.