My Cartfile has many libraries. When I do carthage update
it goes through all the libraries. That can take very long time.
Is there a way to update just a s
Looks like carthage update repo-name
doesn't work on Carthage 0.36.0
.
I solved this problem by manually updating Carthage.resolved
. For example, add to a Cartfile
a new dependency:
github "konkab/AlamofireNetworkActivityLogger" ~> 3.0.0
Add to a Cartfile.resolved
a new dependency manually:
github "konkab/AlamofireNetworkActivityLogger" "3.0.0"
Then do carthage bootstrap
to only update one dependency:
carthage bootstrap
It will use Carthage.resolved
and just add one dependency.
I tried all of the answers, and for me only removing or commenting temporarily the repositories and after running
carthage update --platform ios
after I restore the Catfile to previous state
I ended up writing my own script that builds a single dependency for me and merges it with my existing dependencies. You can find it at https://github.com/ruipfcosta/carthage-workarounds.
If the framework isn't stored in GitHub, or you are using the git
identifier, and your cartfile
looks like this:
git "ssh://git@bitbucket.org/teamname/repo-name.git" ~> 1.0
then you can update only that one running the following command
carthage update repo-name
Carthage supports updating single dependencies now.If you have something like this in your Cartfile:
github "bitstadium/HockeySDK-iOS"
Then you can update only this one dependency by running
carthage update HockeySDK-iOS
Right now the answer is no... If your run carthage help update
you'll see
Update and rebuild the project's dependencies
[--configuration Release]
the Xcode configuration to build (ignored if --no-build option is present)
[--platform all]
the platform to build for (ignored if --no-build option is present)
[--verbose]
print xcodebuild output inline (ignored if --no-build option is present)
[--no-build]
skip the building of dependencies after updating
[--use-ssh]
use SSH for downloading GitHub repositories
[--use-submodules]
add dependencies as Git submodules
[--no-use-binaries]
check out dependency repositories even when prebuilt frameworks exist (ignored if --no-build option is present)
[--color auto]
whether to apply color and terminal formatting (one of ‘auto’, ‘always’, or ‘never’)
[/path/to/your/app]
the directory containing the Carthage project
As you can see there is no mention to an option to specify only one dependency to update.
You should open an issue on the project repo asking to support that.