Using Carthage in your Xcode Projects

Swift package manager? Not yet…

Steven Curtis
6 min readJul 20, 2022
Photo by Marco Xu on Unsplash

There are competitors to Carthage. The developers of Carthage intended their dependency manager to be the simplest way of adding frameworks to a Cocoa application while being flexible and unobtrusive. The most popular dependency manager, CocoaPods, is easier to use but requires you to use a workspace, as is the Swift Package manager (not yet ready for use in your project!). Carthage is also decentralised, and allows you to control your project structure and setup as it does not automatically modify your project files or your build settings.

Many project implementations use Alamofire to make API calls, and this is a separate (tested) framework that you can use to speed development.

Prerequisites:

  • Some basic understanding of the terminal
  • Preferably some experience of homebrew
  • Preferably some experience of VIM

Terminology

Cartfile: A description of a dependency.

Cathage: A decentralized dependency manager for Cocoa.

CocoaPods: A centralized dependency manager for Objective-C, Swift and languages that run the Objective-C runtime.

--

--

Responses (1)