Search code examples
ioscontinuous-integrationteamcitycarthage

How to use iOS Carthage with TeamCity?


I need to up TeamCity CI/CD for my iOS project. I'm using Carthage for dependency management.

I understood that performing carthage update for each build is a bad idea. A build-agent will be rebuilding frameworks for every new build. It's very time-consuming operation.

Is there any approach for the caching my dependencies for speedup a build?


Solution

  • Possible approach would be setting up a separate build configuration (e.g.,"Producer") that executes carthage update (whenever needed), then uploads zipped Carthage/Build to build server. Other build configurations for your project should have an artifact dependency on "Producer" and fetch binaries back to Carthage/Build