Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the purpose of “--cache-builds” in carthage?

As titled, what's the purpose of "--cache-builds" in carthage command line? if missing this, what could happen and what's the benefit to have this?

like image 965
Ivan Avatar asked Sep 08 '25 10:09

Ivan


1 Answers

From docs:

Caching builds

By default Carthage will rebuild a dependency regardless of whether it's the same resolved version as before. Passing the --cache-builds will cause carthage to avoid rebuilding a dependency if it can. See information on version files for details on how Carthage performs this caching.

Note: At this time --cache-builds is incompatible with --use-submodules. Using both will result in working copy and committed changes to your submodule dependency not being correctly rebuilt.

like image 134
Ivan Avatar answered Sep 11 '25 10:09

Ivan