Skip to content

Carthage

Decentralized dependency manager for Cocoa apps that builds frameworks without touching

Permissive (OSI) · MIT
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

25

Health

Dormant

Overview

Stars

15,138

Last commit

2 years ago

Sep 2024

Repository age

12 years

since Oct 2014

Latest version

0.40.0

Sep 2024

Contributors

–

Releases

0

last 12 months

Language

Swift

Carthage adds third-party frameworks to Cocoa applications. You list dependencies in a Cartfile, run carthage update, and it builds each one and produces binary frameworks. It does not edit your project files or build settings, so you decide how to link them.

The usual flow is to run carthage update with the XCFrameworks option. You then drag the built .xcframework bundles from Carthage/Build into your Xcode target and choose Embed and Sign for apps. It also writes a Cartfile.resolved file that pins versions. It supports platform-specific framework bundles, nested dependencies, git submodules, build caching and shell completion for Bash, Zsh and Fish.

Carthage is written in Swift under the MIT license. Install it with Homebrew, MacPorts, a pkg installer or from source. It also offers CarthageKit and guidance for framework authors on shared schemes and prebuilt archives. It is an open source alternative to centrally managed dependency tools like CocoaPods.

Who it's for

iOS and macOS developers who want control over project setup

It builds frameworks but leaves your Xcode project and build settings untouched.

Skip if: You prefer a tool that edits your project and integrates dependencies for you.

Framework authors distributing prebuilt binaries

It supports archived prebuilt frameworks and XCFrameworks for consumers.

Skip if: Your users expect Swift Package Manager.

Teams using git submodules for dependencies

It supports submodules and build caching to cut rebuild time.

Skip if: You want fast onboarding with minimal manual Xcode steps.

The problem it solves

Adding third-party frameworks to a Cocoa app can mean tools that rewrite your Xcode project. Carthage resolves and builds dependencies and leaves your project structure alone.

Strengths

  • Does not modify your project files or build settings
  • Builds XCFrameworks that work across platforms
  • Cartfile.resolved pins exact dependency versions
  • Supports submodules, nested dependencies and build caching
  • Installs through Homebrew, MacPorts or a pkg installer

Trade-offs

  • No commits since September 2024 and no releases in the past year
  • You drag frameworks into Xcode and set embedding by hand
  • Building from source can be slow compared with prebuilt binaries
  • Apple platforms only

Frequently asked questions

Is Carthage free?

Yes. It is released under the MIT license.

How do I install it?

Use brew install carthage, MacPorts, the Carthage.pkg installer or build from source with make install.

Does it change my Xcode project?

No. It builds the frameworks and you add them to your project yourself.

Does it support XCFrameworks?

Yes. Run carthage update with the use-xcframeworks option to build platform-independent XCFrameworks.

Similar tools in App stores and package managers

pypiserver

App stores and package managers

Minimal self-hosted PyPI-compatible server for teams sharing private Python packages

2.1k 349 15 days ago Slowing MIT

cargo

App stores and package managers

Rust's official package manager and build tool for fetching dependencies and compiling

16k 3.3k today Active Apache-2.0

vcpkg

App stores and package managers

C/C++ package manager from Microsoft for Windows, macOS and Linux projects

28k 7.8k today Thriving MIT

nexus-public

App stores and package managers

Self-hosted binary repository manager for Maven, raw and APT artifacts, built on Java

2.7k 760 10 months ago Slowing EPL-1.0

Replaces JFrog Artifactory

flox

App stores and package managers

Reproducible, Nix-based dev environments for engineering teams, defined in one manifest

4.2k 142 today Thriving GPL-2.0

Obtainium

App stores and package managers

Android app that installs and updates apps straight from their release pages

22k 713 today Thriving GPL-3.0